Task #11451 (closed)
Bug: omero/webgateway json 404
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | blocker | Milestone: | OMERO-4.4.9 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | cxallan, atarkowska, jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | Blocker 4.4.9 (1) |
Description
If users deploy web under /omero/webgateway etc then the image viewer gives a 404 for the json because the /omero/ is not included in the url.
See https://www.openmicroscopy.org/community/viewtopic.php?f=5&t=6359
(and some private message with more details).
Change History (7)
comment:1 Changed 11 years ago by atarkowska
comment:2 Changed 11 years ago by atarkowska
Why did he use [...]/omero/webgateway/render_image/14350/ rather then webclient?
comment:3 Changed 11 years ago by wmoore
We're using /webgateway/ viewer because this is a public data and a simple way of exposing image viewers (but not the webclient UI itself) is to use ^webgateway in the url filter. It's what we suggest in all our docs and what we've done ourselves on nightshade - E.g. http://users.openmicroscopy.org.uk/~rkferguson/public_share_demo.html
comment:4 Changed 11 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
comment:5 Changed 11 years ago by Will Moore <will@…>
(In [28994248b4e125b46bfb0c9d3eaa23b19c1d4bc6/ome.git] on branch develop) Use reverse('webgateway') for viewport_server. See #11451
comment:6 Changed 11 years ago by jean-marie burel <j.burel@…>
(In [019d14a5d70911172cb0b2fac59bec5ee4d1dba7/ome.git] on branch develop) Merge pull request #1490 from will-moore/webgateway_json_404_11451_develop
Use reverse('webgateway') for viewport_server. See #11451
comment:7 Changed 10 years ago by Will Moore <will@…>
(In [970005f4520148c8131ffbaa2d98268ff481ef98/ome.git]on branches master, dev_4_4) Use reverse('webgateway') for viewport_server. See #11451
This is not exactly a problem of a custom prefix. Issue is related to the viewport_server variable.
From the forum post I can see that he was trying to access image via webgateway directly and that is true that the line above has /webgateway hard-coded if any vieport_server is not set. This string definitely should be replaced by URL dispatcher. Although that problem should be easily resolved by launching full viewer from http://omero/webclient... see how viewport_server is set here.
I can confirm that we deployed teaching tool on custom prefix and JSON response is HTTP 200.