<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap:break-word">
Dear Jianguo
<div><br>
</div>
<div>I've just reviewer our documentation to make it more clear. Changes will be visible within a few days.</div>
<div><br>
</div>
<div>Raised issues come down to the regular expression. This is something you need to be careful and really understand what you are doing. The best is to start from Python documentation
<a href="http://docs.python.org/2/library/re.html">http://docs.python.org/2/library/re.html</a></div>
<div>If you just want public user has access to images using web gateway viewer only please set filter to:&nbsp;'/webgateway' just drop caret</div>
<div><br>
</div>
<div>
<div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
Kind regards</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
Ola</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<br>
</div>
</div>
</div>
<div>
<div>On 28 Oct 2013, at 14:25, Jianguo Rao &lt;<a href="mailto:JIANGUO.RAO@igmm.ed.ac.uk">JIANGUO.RAO@igmm.ed.ac.uk</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi Will,<br>
<br>
Thanks for join the helper team!<br>
<br>
I can confirm that it makes a BIG difference.<br>
If I set<br>
omero config set omero.web.public.url_filter '^/(?!webadmin)'<br>
I can view<br>
<a href="http://your_host/omero/webgateway/img_detail/IMAGE_ID/">http://your_host/omero/webgateway/img_detail/IMAGE_ID/</a><br>
without login.<br>
<br>
BUT if I set<br>
omero config set omero.web.public.url_filter '^/webgateway'<br>
view<br>
http://your_host/omero/webgateway/img_detail/IMAGE_ID/<br>
will redirect to login page!<br>
<br>
I can also confirm that the both configurations lead to the same system error messages already reported earlier, when visited /omero/webgateway/. I just done a retest to confirm these.<br>
<br>
<br>
BR,<br>
<br>
Jianguo<br>
<br>
<br>
<br>
Quoting Will Moore &lt;will@lifesci.dundee.ac.uk&gt; on Mon, 28 Oct 2013 13:57:39 &#43;0000:<br>
<br>
<blockquote type="cite">Hi Jianguo,<br>
<br>
What happens now when you go to your_host/omero/webgateway/ ?<br>
<br>
I don't think the url regex configuration will change the original error you are getting?<br>
Only allowing 'webgateway'...<br>
<br>
$ bin/omero config set omero.web.public.url_filter '^/webgateway'<br>
<br>
shouldn't cause a problem when visiting<br>
<br>
http://your_host/omero/webgateway/img_detail/IMAGE_ID/<br>
<br>
Then you won't be allowing access to /webclient/ for public users.<br>
<br>
Cheers,<br>
<br>
&nbsp;&nbsp;Will.<br>
<br>
<br>
On 28 Oct 2013, at 12:29, Jianguo Rao wrote:<br>
<br>
<blockquote type="cite">Dear Ola,<br>
<br>
As I said, your suggest configuration is works fine. But it seems I have a new issue-- the urls such as:<br>
http://your_host/omero/webclient/<br>
http://your_host/omero/<br>
etc.<br>
will, all automatically login as public user and it seems public user has blocked other user from login.<br>
<br>
After some experiments, I find a way for other user to login, using the following url:<br>
http://your_host/omero/webclient/loglin/<br>
<br>
Hope this is useful for other OMERO users.<br>
<br>
BR,<br>
<br>
Jianguo<br>
<br>
<br>
<br>
<br>
<br>
Quoting Aleksandra Tarkowska &lt;A.Tarkowska@dundee.ac.uk&gt; on Mon, 28 Oct 2013 09:34:25 &#43;0000:<br>
<br>
<blockquote type="cite">Dear Jianguo<br>
<br>
Lets clarify how your config should look like by default:<br>
<br>
1. Please stop omeroweb:<br>
<br>
$ bin/omero web stop<br>
<br>
2. Check the configuration:<br>
<br>
omero.web.debug=True<br>
omero.web.public.enabled=True<br>
omero.web.public.password=PASSWORD<br>
omero.web.public.server_id=1<br>
omero.web.public.url_filter=^/(?!webadmin)<br>
omero.web.public.user=USERNAME<br>
omero.web.server_list=[[&quot;localhost&quot;, 4064, &quot;omero&quot;]]<br>
<br>
3. Please make sure you set those values correctly, then start omeroweb<br>
<br>
$ bin/omero web start<br>
<br>
4. Then go to:<br>
<br>
1. open http://your_host/omero/webclient/img_detail/IMAGE_ID/ &nbsp;&lt;- it should show image strait away<br>
<br>
Please remember IMAGE_ID must be valid image owned by PUBLIC USER<br>
<br>
If this doesn't work please send me all log files stored in OMERO_DIR/var/log<br>
<br>
Kind regards<br>
Ola<br>
<br>
<br>
<br>
The University of Dundee is a registered Scottish Charity, No: SC015096<br>
<br>
</blockquote>
--<br>
<br>
<br>
--<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
<br>
_______________________________________________<br>
ome-devel mailing list<br>
ome-devel@lists.openmicroscopy.org.uk<br>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br>
</blockquote>
<br>
_______________________________________________<br>
ome-devel mailing list<br>
ome-devel@lists.openmicroscopy.org.uk<br>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
-- <br>
<br>
-- <br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
<br>
_______________________________________________<br>
ome-devel mailing list<br>
ome-devel@lists.openmicroscopy.org.uk<br>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br>
</blockquote>
</div>
<br>
</div>
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>