Problem downloading blob with url
I have a problem when I want to download a blob with a url like this on my website
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.
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.
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. 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