[
https://issues.apache.org/jira/browse/CMIS-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florian Müller resolved CMIS-730.
---------------------------------
Resolution: Cannot Reproduce
Basic authentication works fine with the current code. The correct HTTP header
is set and test servers accept it as expected.
> When using Commons HTTP, authentication does not work
> -----------------------------------------------------
>
> Key: CMIS-730
> URL: https://issues.apache.org/jira/browse/CMIS-730
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client-bindings
> Affects Versions: OpenCMIS 0.10.0
> Environment: Java 1.7, httpClient 4.3,
> Reporter: Zoran Brdar
> Assignee: Florian Müller
> Labels: newbie
>
> Here's my StackOverflow communication with Florian Müller:
> http://stackoverflow.com/questions/19268287/use-apacheclienthttpinvoker-instead-of-defaulthttpinvoker
> Here's the important part:
> I have set ClientBinding to use ApacheClientHttpInvoker.
> Now I get the "Unauthorized" exception when applying credentials. This worked
> with the DefaultHTTPInvoker class. Am I missing something?? – Brlja Oct 9 at
> 13:04
>
> The ApacheClientHttpInvoker is pretty new and not very well tested. That's
> why you couldn't find any information about it. It might have bugs! Having
> that said, basic authentication has been tested and should work without any
> additional configuration. – Florian Müller Oct 9 at 14:11
>
> Florian, I have debuged the code with basic authentication, it works simillar
> (authentication) as default http. Anyways, username and password gets b64
> encoded and put as http header which is then posted. This method works with
> default http but not with Apache http. In other project of mine I use
> Client.setAuth(Credentials) and that works. I can modify AbstractApache class
> but I do not prefer it because of forward compliance. If you are close to
> development team can you check this out? – Brlja Oct 9 at 16:56
>
> Please open an issue here: issues.apache.org/jira/browse/CMIS – Florian
> Müller Oct 9 at 18:58
--
This message was sent by Atlassian JIRA
(v6.1#6144)