Page 1 of 1

Publishing images

PostPosted: Mon Nov 06, 2017 2:50 pm
by saleht
hi guys,

i already did configuration for sharing functionality

i did what was written at the Documentation

Code: Select all
$ bin/omero config set omero.web.public.enabled True

$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'


but the problem is if i published an image to my public group,and open the link, i have to log in first

i want people opening my shared image without any login and it should open in omero_viewer
is this possible

thy for ur quick answer ;)

cheers, Saleh

Re: Publishing images

PostPosted: Mon Nov 06, 2017 2:54 pm
by kennethgillen
Did you add your `public-omero-user` to the group you wish to be open to the public?

cf https://docs.openmicroscopy.org/omero/5 ... ublic-user

Kenny

Re: Publishing images

PostPosted: Mon Nov 06, 2017 3:07 pm
by saleht
Hi Kenny,

actually not, because i was not able to see this new user on GUI

do i have to create public user from gui first then
do this
$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'

or these two commands will create this user automatically
Saleh

Re: Publishing images

PostPosted: Mon Nov 06, 2017 3:15 pm
by kennethgillen
saleht wrote:do i have to create public user from gui first then
do this
$ bin/omero config set omero.web.public.user 'user'

$ bin/omero config set omero.web.public.password 'pass'

or these two commands will create this user automatically
Saleh


Hi Saleh,

You will need to create the new user, which can be done via the webclient UI, or the OMERO.cli.

If you see the step "Create a member of this group" at https://docs.openmicroscopy.org/omero/5 ... ublic-user

Those commands will only tell OMERO which user to use - they won't create anything.

Best,

Kenny

Re: Publishing images

PostPosted: Tue Nov 07, 2017 8:49 am
by saleht
Hi kenny

thx for your support, now actully i did everything correct but still i have to log in to see the shared image

i create a user
i create a group (read only )
i add this user to this group
i did the commands
Code: Select all
bin/omero config set omero.web.public.enabled True

$ bin/omero config set omero.web.public.user 'share'

$ bin/omero config set omero.web.public.password '*****'
$ bin/omero config set omero.web.public.url_filter '^/webgateway'

my config is

Code: Select all
ldap.base=*********
omero.data.dir=/mnt/ExtVol/OMERO
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=omero_user
omero.jvmcfg.append=-Dcom.sun.jndi.ldap.connect.pool.timeout=500
omero.ldap.base=**********
omero.ldap.config=true
omero.ldap.new_user_group=default
omero.ldap.password=********
omero.ldap.referral=follow
omero.ldap.sync_on_login=false
omero.ldap.urls=ldap://ldaps.ad.hhu.de:389
omero.ldap.user_mapping=omeName=sAMAccountName,firstName=givenName,lastName=sn,email=mail
omero.ldap.username=******
omero.mail.config=true
omero.mail.host=mail.hhu.de
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_webtagging_tagsearch", "omero_fpbioimage", "omero_gallery", "omero_mapr", "omero_webtagging_autotag", "omero_iviewer"]
omero.web.debug=false
omero.web.mapr.config=[{"menu": "key1", "config": {"default": ["Key1"], "all": ["Key1", "Key2"], "ns": ["openmicroscopy.org/mapr/key1"], "label": "Key1"}}]
omero.web.open_with=[["Image viewer", "webindex", {"supported_objects": ["image"], "script_url": "webclient/javascript/ome.openwith_viewer.js"}], ["omero_figure", "new_figure", {"supported_objects": ["images"], "target": "_blank", "label": "OMERO.figure"}], ["omero_fpbioimage", "fpbioimage_index", {"supported_objects": ["image"], "script_url": "fpbioimage/openwith.js", "label": "FPBioimage"}], ["omero_iviewer", "omero_iviewer_index", {"supported_objects": ["images", "dataset", "well"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}]]
omero.web.public.enabled=True
omero.web.public.password=********
omero.web.public.server_id=1
omero.web.public.url_filter=^/webgateway
omero.web.public.user=share
omero.web.ui.center_plugins=[["Auto Tag", "omero_webtagging_autotag/auto_tag_init.js.html", "auto_tag_panel"]]
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}], ["Tag Search", "tagsearch"], ["Gallery", "webgallery_index", {"target": "_blank", "title": "Open Gallery in new tab"}], ["mapr", {"query_string": {"experimenter": -1}, "viewname": "maprindex_key1"}, {"title": "Key1 browser"}]]
omero.web.viewer.view=omero_iviewer.views.index


and one more thing
if i tried opening the shared image by double clicking i am getting a message:
"Viewer opened without image. data-set or well id "
and not opening the image

Saleh

Re: Publishing images

PostPosted: Tue Nov 07, 2017 10:23 pm
by wmoore
Hi,

Just to confirm. You have created a user with username 'share' and the same password as in config?
This user will only be able to access public urls that match the regex url filter, in your case

Code: Select all
omero.web.public.url_filter=^/webgateway


Using /webgateway means that you can make the 'webgateway' image viewer public (but not the webclient UI). E.g. https://nightshade.openmicroscopy.org/w ... l/3933597/
You will need that image to be in the same group that the public 'share' user is a member of.

If you want the whole webclient UI to be publicly available, try

Code: Select all
$ bin/omero config set omero.web.public.url_filter '^/(webadmin/myphoto/|webclient/(?!(script_ui|ome_tiff|figure_script))|webgateway/(?!(archived_files|download_as)))'

(see the public docs page for an explanation of this.


The bug in opening iviewer has been reported at https://trello.com/c/IduyAGNN/8-bug-web ... id-ignored.

Regards,

Will.

Re: Publishing images

PostPosted: Tue Nov 21, 2017 1:43 pm
by saleht
Hi will,

thank you for the info, i will try the command which you wrote