cancel
Showing results for 
Search instead for 
Did you mean: 

LOGIN_FAILURE with " in password, escaping is not helping.

Former Member
0 Kudos

hi,

i want to connect to SAP using JCO and the following user:

login: testuser

password: foo"bar

I get LOGON_FAILURE. I have already tried to escape the quotation with \" and with
\" but nothing works.

Help would be appreciated:)

thanks

best regards

simon:)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Simon,

you can try the URLEncoder.encode method. See link below with example.

<a href="http://www.javapractices.com/Topic96.cjp">URL Escape</a>

I wouldn't recommend using such characters in passwords though. Maybe you should try and change the password.

regards,

Dion

Former Member
0 Kudos

Hello:)

Thanks for the reply. However, I have already tried to mask,encode etc. this password, everything failed.

I have read some posts about the ", that if it is found in the passwd, the passwd ist cut off at that position.

I have also read something about qouting whole passwords when they contain question marks or sth.(e.g. "foo?").

Those are my assumption only. I have not found any definite answer, so I am still looking.

any help is more than welcome:)

best regards

simon:)