Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4223 (closed)

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

Bug: cli login with bad session key should behave better

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.3
Component: Client Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-02-24 (6)

Description

~/code/git/dist $ bin/omero login
Previously logged in to localhost:4064 as josh
Server: [localhost]
Username: [moore]josh
Password:
Created session 8077ef03-c77b-4adb-96ad-b4c6f8cd3ae1 (josh@localhost:4064). Idle timeout: 10.0 min. Current group: system
~/code/git/dist $ bin/omero -s josh@localhost -k 8077ef03-c77b-4adb-96ad-b4c6f8cd3ae1 login
Overriding name since session set
Created session 8077ef03-c77b-4adb-96ad-b4c6f8cd3ae1 (josh@localhost:4064). Idle timeout: 10.0 min. Current group: system
~/code/git/dist $ bin/omero -s josh@localhost -k BAD_SESSION login
Overriding name since session set
Password check failed
Password:
Password check failed
Password:
3 incorrect password attempts
~/code/git/dist $ bin/omero -s josh@localhost -k BAD_SESSION -w ome login
Overriding name since session set
Ignoring password since key set
Password check failed
Password:

Change History (12)

comment:1 Changed 14 years ago by jmoore

  • Sprint set to 2011-02-24 (6)
  • Status changed from new to accepted

comment:2 Changed 14 years ago by jmoore <josh@…>

(In [a076ef19ff07338b3c68b4a183de8fc97ec39733/ome.git] on branch develop) Reproducing bad session failure (See #4223)

comment:3 Changed 14 years ago by jmoore <josh@…>

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [597fe675faa53c1a3cc2271a4154a90fc923b33b/ome.git] on branch develop) Improved bin/omero login handling with session key (Fix #4223)

comment:4 Changed 14 years ago by jmoore <josh@…>

(In [e8d2c22e754262d0f0fbb931607ad01a9e942981/ome.git] on branch dev_4_2) Reproducing bad session failure (See #4223)

comment:5 Changed 14 years ago by jmoore <josh@…>

(In [968a557cfc503a4cd47a8d20558bbdd518d4f805/ome.git] on branch dev_4_2) Improved bin/omero login handling with session key (Fix #4223)

comment:6 Changed 14 years ago by cblackburn

  • Resolution fixed deleted
  • Status changed from closed to reopened

Bad session key when trying to use cli import:

Traceback (most recent call last):
 File "bfpixelsstoreexternal.py", line 59, in testDV
   self.setUpTestFile("tinyTest.d3d.dv")
 File "bfpixelsstoreexternal.py", line 29, in setUpTestFile
   self.pix_id = long(self.import_image(filename)[0])
 File "/Users/cblackburn/Work/git-repos/ome/components/tools/OmeroPy/test/integration/library.py", line 155, in import_image
   raise exceptions.Exception("import failed: [%r] %s\n%s" % (args, rc, err))
Exception: import failed: [['python', './bin/omero', '-s', 'localhost', '-k', '25c22f1d-2127-45f2-814b-f5372df601c2', '-p', '4064', 'import', path('/Users/cblackburn/Work/git-repos/ome/components/tools/OmeroPy/../../../components/common/test/tinyTest.d3d.dv')]] 11
2011-02-24 13:49:14,629 DEBUG [              omero.util.TempFileManager] (MainThread) Added file /Users/cblackburn/.lock_testAQd0ni.tmp
2011-02-24 13:49:14,630 DEBUG [              omero.util.TempFileManager] (MainThread) Chose gloabl tmpdir: /Users/cblackburn
2011-02-24 13:49:14,630 DEBUG [              omero.util.TempFileManager] (MainThread) Using temp dir: /Users/cblackburn/omero/tmp/omero_cblackburn/60526
Bad session key

comment:7 Changed 14 years ago by jmoore <josh@…>

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [46fd359addd3ce4596cd091867e6195097f9620f/ome.git] on branch develop) Handling "-k session" for sessions not in ~/omero/sessions (Fix #4223 again)

comment:8 Changed 14 years ago by jmoore <josh@…>

(In [20ec0de213186516d3f1e8e753a8159bd3b264f7/ome.git] on branch develop) Another minor fix for '-k sessions' (See #4223)

comment:9 Changed 14 years ago by jmoore <josh@…>

(In [21930968a9c64b9b3a683008fcfaf975cef8bc74/ome.git] on branch develop) store.create wants (name,pass) not (server,name) (See #4223)

comment:10 Changed 14 years ago by jmoore <josh@…>

(In [d66301daf7cc368ec7da949c9cfba97c4ca87cad/ome.git] on branch dev_4_2) Handling "-k session" for sessions not in ~/omero/sessions (Fix #4223 again)

comment:11 Changed 14 years ago by jmoore <josh@…>

(In [7e6807da85b2f5159ff73a38791f56fddb05feaa/ome.git] on branch dev_4_2) Another minor fix for '-k sessions' (See #4223)

comment:12 Changed 14 years ago by jmoore <josh@…>

(In [9d3771a9cf4803bf8e0f1962aa7d23449d6be318/ome.git] on branch dev_4_2) store.create wants (name,pass) not (server,name) (See #4223)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65074 sec.)

We're Hiring!