cancel
Showing results for 
Search instead for 
Did you mean: 

Problem downloading blob with url

djoncour_
Champ on-the-rise
Champ on-the-rise

Hello,

I have a problem when I want to download a blob with a url like this on my website

localhost:8080/nuxeo/nxfile/default/*/blobholder:0/*

I use authentification CAS2_AUTH and ANONYMOUS_AUTH. But when I am connect to this for the first time, I can't download it but a windows is prompt with differents repositories. And when I come back on website i can download it. But I want to download it without a windows is prompted for the first login.

This is my configuration

<extension
    target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
    point="chain">
    <authenticationChain>
        <plugins>
            <plugin>BASIC_AUTH</plugin>
            <plugin>PORTAL_AUTH</plugin>
            <plugin>CAS2_AUTH</plugin>
            <plugin>ANONYMOUS_AUTH_FOR_CAS2</plugin>
        </plugins>
    </authenticationChain>
</extension>

It's very strange because if I delete the AUNONYMOUS_AUTH and If I connect to my wrbsite without connected on nuxeo I can download it. But if I let this line I have the problem that I describe on top of this topic.

And my log I have this following error but I don't want to give anonymous read rights for this document

ERROR [org.nuxeo.ecm.core.api.CoreSession] Permission 'Read' is not granted to 'guest' on document
ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/nuxeo]] Session event listener threw exception
java.lang.IllegalStateException: Please end the HttpSession via org.jboss.seam.web.Session.instance().invalidate()
at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleAnonymousException(NuxeoSecurityExceptionHandler.j
ava:89)
at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler.handleException(NuxeoSecurityExceptionHandler.java:71)

I really don't ubderstand what is my problem, If my configuration is bad or something like that. Thanks for your help.

1 ACCEPTED ANSWER

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

HF29 includes a fix to a similar problem: https://jira.nuxeo.com/browse/NXP-12491 it worths a try to check if it fixes your problem too.

Thierry

View answer in original post

5 REPLIES 5

Thierry_Martins
Star Collaborator
Star Collaborator

what version of Nuxeo and hotfixes are you using?

djoncour_
Champ on-the-rise
Champ on-the-rise

Hello Thierry,

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

HF29 includes a fix to a similar problem: https://jira.nuxeo.com/browse/NXP-12491 it worths a try to check if it fixes your problem too.

Thierry

Thanks a lot for your help Thierry.

djoncour_
Champ on-the-rise
Champ on-the-rise

Hello Thierry,

Now, I use the 5.6 version with HF29, nuxeo-platform-login-cas2-5.6.jar and the same configuration which is written in this ticket [https://jira.nuxeo.com/browse/NXP-12491][1]. Now I can download a document by a direct link with Firefox and Chrome but not with IE 9 10 and 11. When Itry to download one, I automatically redirect on logout CAS page. But with IE 8 it works fine.

Thank you for your help

David [1]: https://jira.nuxeo.com/browse/NXP-12491

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.