djangid / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Encoding of http basic passwords #208

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use an umlaut for a password. example:
given().
   auth().basic("someUser", "äöüß").
expect().
   statusCode(200).
when().
   post("/someUrl");

What is the expected output? What do you see instead?
I would like an option to set the character encoding of the authentication 
credentials. I have already set the encoderConfig and decoderConfig to use 
UTF-8 as the default content charset.
I couldnt find an appropriate option yet. 

What version of the product are you using? On what operating system?
Rest Assured 1.7
Operating system Windows 7

Original issue reported on code.google.com by roth.ben...@gmail.com on 23 Nov 2012 at 3:05

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Additional info:
The authentication gets rejected by the server.
If I use a password without any umlaute the euthentication is successful.

Original comment by roth.ben...@gmail.com on 23 Nov 2012 at 3:12

GoogleCodeExporter commented 8 years ago
Interesting! As a work-around try using auth().preemptive().basic(..) and see 
if you run into the same error.

Thanks for reporting.

Original comment by johan.ha...@gmail.com on 27 Nov 2012 at 7:37

GoogleCodeExporter commented 8 years ago
I already did try that. The result is the same. 

Original comment by roth.ben...@gmail.com on 27 Nov 2012 at 8:10

GoogleCodeExporter commented 8 years ago
Alright, I'll look into to it when I find time. Feel free to help out if you 
like.

Original comment by johan.ha...@gmail.com on 5 Dec 2012 at 9:12