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 #4537 (closed)

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

Bug: bin/omero group add should handle ValidationExceptions

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.3
Component: General Version: n.a.
Keywords: n.a. Cc: atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-03-10 (7)

Description

+ python dist/bin/omero login -s 10.2.1.198 -p 4064 -u root -w ome
Created session b9303ff9-b1f4-48e4-ab58-4bfd224eada7 (root@10.2.1.198:4064). Idle timeout: 10.0 min. Current group: system
+ python dist/bin/omero group add web_group --perms=rwrw--
Using session b9303ff9-b1f4-48e4-ab58-4bfd224eada7 (root@10.2.1.198:4064). Idle timeout: 10.0 min. Current group: system
Traceback (most recent call last):
 File "dist/bin/omero", line 123, in <module>
   rv = omero.cli.argv()
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero/cli.py",> line 1151, in argv
   cli.invoke(args[1:])
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero/cli.py",> line 704, in invoke
   stop = self.onecmd(line, previous_args)
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero/cli.py",> line 773, in onecmd
   self.execute(line, previous_args)
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero/cli.py",> line 853, in execute
   args.func(args)
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero/plugins/group.py",> line 71, in add
   id = admin.createGroup(g)
 File "<http://hudson.openmicroscopy.org.uk/job/OMERO-trunk-components/./component=web,label=linux/ws/src/dist/lib/python/omero_api_IAdmin_ice.py",> line 267, in createGroup
   return _M_omero.api.IAdmin._op_createGroup.invoke(self, ((group, ), _ctx))
omero.ValidationException: exception ::omero::ValidationException

Change History (2)

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

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [9b548c0214834404ac4ae66f14d2418549af1ec2/ome.git] on branch develop) Adding --ignore-existing to bin/omero {group,user} add (Fix #4537)

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

(In [6a599accd50d31e3454d503f7750cd5e76917163/ome.git] on branch dev_4_2) Adding --ignore-existing to bin/omero {group,user} add (Fix #4537)

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.82827 sec.)

We're Hiring!