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 #1704 (new)

Opened 14 years ago

Last modified 14 years ago

BUG: ISession.update is broken wrt defaultPermissions and perhaps other — at Version 6

Reported by: jamoore Owned by: jamoore
Priority: critical Milestone: OMERO-Beta4.2
Component: Security Version: 4.1
Keywords: n.a. Cc: carlos@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.5d
Sprint: 2010-03-19 (5)

Description (last modified by jmoore)

Looks like the call to setDefaultPermissions in the session candidate is being ignored and then overriden by the original session value.

Be sure to see the SpecialObjectsPermTest commits from #1794

Change History (6)

comment:1 Changed 14 years ago by jmoore

In [22]: ss = s.getSessionService()

In [23]: sess = ss.getSession(s.ice_getIdentity().name)

In [24]: sess.defaultPermissions.val  
Out[24]: 'rw----'

In [25]: sess.defaultPermissions = omero.rtypes.rstring("rwrw--")

...

In [27]: sess = ss.updateSession(sess)

In [28]: sess.defaultPermissions.val
Out[28]: 'rw----'

comment:2 Changed 14 years ago by jmoore

  • Component changed from Services to Security

comment:3 Changed 14 years ago by jmoore

  • Summary changed from ISession.update is broken wrt defaultPermissions and perhaps other to BUG: ISession.update is broken wrt defaultPermissions and perhaps other
  • Type changed from Bug to Task

comment:4 Changed 14 years ago by jmoore

  • Sprint set to 2010-03-19 (5)

comment:5 Changed 14 years ago by jmoore

  • Remaining Time set to 0.5

comment:6 Changed 14 years ago by jmoore

  • Description modified (diff)
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.69889 sec.)

We're Hiring!