splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

leading/trailing whitespaces in conf properties cannot be retrieved

Open niyue opened this issue 10 years ago • 2 comments

Some conf file properties store leading/trailing white spaces in them, and these white spaces are meaningful in an application, and should be returned to the client as it is, however, current SDK will strip white spaces in these properties, which makes client application fails to work correctly.

For example:

` [mystanza] my_property = foobar _ _ _\

`

In this case, there are three trailing white spaces and one carriage return character for my_property. In some applications, these white spaces are significant, for example, they could be users' passcode and should be compared character by character, and the property value should be returned to client as it is.

sdk version: 1.5.0 platform: Mac OS X 10.11.3 python: 2.7.10 splunk version: 6.2.2

niyue avatar Feb 16 '16 07:02 niyue

PR sent. Please review, thanks.

niyue avatar Feb 16 '16 07:02 niyue

Closing due to inactivity.

snickers2029 avatar Feb 23 '18 18:02 snickers2029