04-17-2018 06:18 AM
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
the above one works
this one doesn't work. It ask me for authentication and I have to put in guest:guest as usernameassword
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
04-19-2018 04:04 AM
Hi Mikel,
I tried bypassing the apache by accessing the tomcat directly but to no avail. I was still prompted for authentication.
Any other that I can try ??
04-19-2018 06:41 AM
It's hard to tell.... If you got same code, same Alfresco version, same auth configuration and nothing in between.
What about tomcat configuration? you could inpect both server.xml files to see if you got a valve or something causing your trouble.
05-10-2018 05:32 AM
Hi Mikel,
Sorry for the late reply.
I did some testing and it wasn't pretty clear as to why this is happening as on some instances that are behind the same apache server. I also checked the Valve in <TOMCAT_HOME>/conf/server.xml and didn't find any custom changes.
Finally I have to change the authentication in the webscript desc.xml file that fetches the list of children of a folder from
<authentication>guest</authentication>
to
<authentication user=guest>none</authentication>
and now it is working correctly.
Explore our Alfresco products with the links below. Use labels to filter content by product module.