chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoran Brdar (JIRA)" <>
Subject [jira] [Created] (CMIS-730) When using Commons HTTP authentication does not work
Date Mon, 21 Oct 2013 08:52:41 GMT
Zoran Brdar created CMIS-730:

             Summary: When using Commons HTTP authentication does not work
                 Key: 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

Here's my StackOverflow communication with Florian Müller:

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: –  Florian Müller Oct 9 at

This message was sent by Atlassian JIRA

View raw message