AnsweredAssumed Answered

Webscript with guest access requiring authentication

Question asked by hiten.rastogi on Apr 17, 2018
Latest reply on May 10, 2018 by hiten.rastogi

Hi,

 

I have a webscript that have guest access enabled but it still requires me to authenticate when I try to access it on my production instance, though it work fine on my local.

 

Below is the desc file for the webscript

 

<webscript>
    <shortname>doclist</shortname>
    <description>Publicly available document list</description>
    <url>/eu/xfel/make-public/doclist</url>
    <format default="html">argument</format>
    <authentication>guest</authentication>
    <transaction allow="readonly">required</transaction>
</webscript>

 

I am hitting the webscript with the below url

 

http://localhost:8080/alfresco/s/eu/xfel/make-public/doclist?nodeRef=workspace://SpacesStore/jt0fcffa-f5c8-4892-85a3-610… 

the above one works

 

https://abc.net/alfresco/s/eu/xfel/make-public/doclist?nodeRef=workspace://SpacesStore/fw0fcffa-f5c8-4892-85a3-69ia7f85d… 

this one doesn't work. It ask me for authentication and I have to put in guest:guest as username:password

 

I have made sure that the content this webscript is trying to access has Consumer access for the Guest user and in the instance where I am having issue there is no customisation that disable the guest user access.

 

Please educate me why this is the happening.

 

Thanks

Outcomes