[ome-devel] How to migrate OMERO.figure

Christophe TREFOIS christophe.trefois at uni.lu
Tue Nov 25 16:30:00 GMT 2014


Hi Will,

You are correct. I get a 403 Denied error, and upon further inspection I get a 404 on ome.csrf.js.

I guess I am missing that file, but I’m not sure why…

Could you elucidate?

Thank you,

—
Christophe


On 18 Nov 2014, at 17:41, William Moore <will at lifesci.dundee.ac.uk<mailto:will at lifesci.dundee.ac.uk>> wrote:

Hi Christophe,

 It sounds like POST requests were failing, possibly due to the upgrade to 5.0.6 where the server now protects against csrf attacks.

It may be that OMERO.figure was not adding the csrf token to these POSTs.
Is it possible that the OMERO.figure page was not refreshed after upgrading OMERO?
This would mean that the required ome.csrf.js Javascript file wouldn't have been loaded.
Or maybe something else is failing here.

I'm afraid there's no real error handling for the AJAX calls within OMERO.figure yet, but
you may be able to get more details from the browser console.
I don't know what browser you're on, but all modern browsers will have some developer tools
that allow you to see AJAX or other errors, usually under the Console or Network tabs.
You can see response codes, error messages etc.

If you have an opportunity to try the upgrade again sometime, hopefully a full refresh of the page
will fix the issue, or if not then let us know if you can get any more error info.

 Thanks,

   Will.



On 18 Nov 2014, at 16:19, Christophe TREFOIS <christophe.trefois at uni.lu<mailto:christophe.trefois at uni.lu>> wrote:

Hi Will,

What happened was that when I click Export PDF, nothing happened. There were also no activities in the main OMEROweb.
Further, when clicking “Save”, nothing happened at all, eg nothing was saved.

I quickly returned to 5.0.5 then, as this is our prod env and I did not want to leave it “not working” for a longer while.

Also, do you have any instructions on putting the plugin centrally?  How about the export to pdf.py, is it also possible to put it in a central place?
Is this a valid approach for all plugins? If there is a dev doc I have overseen, please forgive :)

Thank you for your help,

--
Christophe

From: William Moore [mailto:will at lifesci.dundee.ac.uk<http://lifesci.dundee.ac.uk/>]
Sent: mardi 18 novembre 2014 00:11
To: Christophe TREFOIS
Cc: ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
Subject: Re: [ome-devel] How to migrate OMERO.figure

Hi Christophe,

 How does the PDF generation fail?

If the "Export PDF" button is enabled then the script has been found.
If you click this but the blue 'Download' button never appears, you can go to the main webclient
and click on the 'Activities' button (beside the top-right search field) to see more
details on all scripts.


You may prefer to put the /figure app in a separate location, in any directory that's on your $PYTHONPATH
then you won't have to move it on each OMERO upgrade.

Anyway, let me know if you have any more details on what's failing,

 Cheers,

   Will.



On 17 Nov 2014, at 22:34, Christophe TREFOIS <christophe.trefois at uni.lu<mailto:christophe.trefois at uni.lu>> wrote:


Dear Will,

Do you know how to properly migrate OMERO.figure from 5.0.5 – 5.0.6 ?

It seems I copied over content from lib/python/omeroweb/figure and re-imported the .py script.

Yet, I can’t seem to save or to generate PDFs any Figure in 5.0.6 then.

Reverting back 5.0.5 seems to work.

Any suggestions?

Kind Regards,

--
Christophe
_______________________________________________
ome-devel mailing list
ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20141125/d87b38bc/attachment.html>


More information about the ome-devel mailing list