Page 2 of 4

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Tue Aug 26, 2014 9:12 am
by tohsato
Dear Simon,

Thanks. I solved Java security setting problem on a binary OMERO.server (ver. 5.0.0-ice34-b19)
But, I failed to build with an option what you pointed out, as follows:

Code: Select all
$ ./build.py
...
BUILD SUCCESSFUL
$ ./build.py release-webstart=signed
Buildfile: /OMERO/openmicroscopy-5.0.0/build.xml
BUILD FAILED
Target "release-webstart=signed" does not exist in the project "toplevel".


Yukako.

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Tue Aug 26, 2014 9:35 am
by tohsato
Dear all,

This is an additional report.

I could use the option './build.py release-webstart-signed' on
OMERO.server ver. 5.1.0-m0.3-ice34-SNAPSHOT (latest version using 'git clone')
and ver. 5.0.3 (a dowloaded source from OMERO website),
and the option './build.py release-webstart' for ver. 5.0.0.

Yukako.

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Tue Sep 09, 2014 8:20 am
by tohsato
Dear all,

To realize an importing system of images from public user in OMERO.server to ImageJ,
I temporary added a form to input session ID on the login windows of OMERO.insight
in openmicroscopy (ver. 5.0.3).
But it's not working out.

My source codes are open on GitHub (https://github.com/yukako/openmicroscopy).
Could you give me some advices on how to change these source codes?

My codes succeeded the compilation [./build.py; ./build.py release-webstart-signed]
and login by user name and password, but didn’t response for login by session ID.
I previously executed 'omero login public_user@xxx.xxx.xxx.xxx' on my OMERO server.

I guess that 'components/blitz/src/loci/ome/io/OmeroReader.java' become a model
programming and I need to change the 'login' function
in 'components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java'.

Best,
Yukako

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Tue Sep 09, 2014 10:12 am
by jburel
Dear Yukako

You will need to also adjust the createSession method in the gateway to start join an existing session
I was about to make some code changes when I noticed that you just pushed a commit to join the session
Do you want me to test anything?
The OMEROReader should already accept sessionID so you will not need to modify it

Cheers

Jmarie

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Tue Sep 09, 2014 11:32 am
by tohsato
Dear Jmarie,

I wanted to ask some help on how to solve my problem on sessionID

The latest commit is just minor changes.

If you have made some new code changes for me, please push it and many thanks for helping.

Warm regards
Yukako

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Wed Sep 10, 2014 12:45 pm
by jburel
Dear Yukako

I have pushed 2 commits that will allow to connect using either username/password or sessionID
It is based on the latest 5.0.4 code. See https://github.com/jburel/openmicroscop ... on-dev_5_0
I have limited the changes to the ScreenLogin and OMEROGateway classes.
Let me know if you need anything.

Regards
Jmarie

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Thu Sep 11, 2014 5:33 am
by tohsato
Dear Jmarie

I really appreciate your simple cording over my purpose.
I successed to login using sessionID.

Thanks,
Yukako

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Thu Sep 11, 2014 7:05 am
by tohsato
Dear all,

I'm going to write my problem again.

Please advise me if there is a way for setting that connection using session ID
by public users is permanently available.

Our system assumes the following procedures:
1) I previously issue one session ID for any users on our website.
2) Any users import images into ImageJ from OMERO using the provided common session ID.

But, the default timeout of our system (omero.sessions.timeout) is 10 minitues.
This is a bother for any users, since they need to check a provided session ID
on our website and input it each time.

Best,
Yukako

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Thu Sep 11, 2014 7:16 am
by jmoore
Hi Yukako,

how did you create the session IDs originally?

When doing so, there are 2 different settings that you can make use of: timeToIdle and timeToLive. timeToIdle will say how long a session can go unused before it expires ("if unused for 10 minutes, reap"). timeToLive says how long a session is usable at all ("expires in 1 week").

Cheers,
~Josh.

Re: Importing 'public' images from OMERO5.server to ImageJ

PostPosted: Thu Sep 11, 2014 7:35 am
by tohsato
Dear jmoore,

I'm creating sessions IDs by omero command line interface as follows:
Code: Select all
omero sessions login public_user@xxx.xxx.xxx.xxx


What setting ways such as timeToIdle and timeToLive available?

Best,
Yukako.