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

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

chmod gatewaytests

Reported by: wmoore Owned by: wmoore
Priority: critical Milestone: OMERO-4.4
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: atarkowska, cxallan, jamoore, cneves
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-04-10 (12)

Description

Need gateway tests to test chmod and canEdit() and canAnnotate() behavior.

Change History (4)

comment:2 Changed 12 years ago by wmoore

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

In branch https://github.com/will-moore/openmicroscopy/commits/chmod_web_8434

Added chmodGroup to Blitz gateway: https://github.com/will-moore/openmicroscopy/commit/904f2bf75eeaccfc05f9522c87e610055bc05ca9

Also added test of this method that fails due to callback not returning:
https://github.com/will-moore/openmicroscopy/commit/83af3fb027a66fe38fbbb2d057030bc2b4bd01d9

$ python test/gatewaytest/chmod.py ChmodGroupTest.testChmod
...
======================================================================
ERROR: testChmod (__main__.ChmodGroupTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/gatewaytest/chmod.py", line 112, in testChmod
    self.doChange(group_Id, READWRITE)
  File "test/gatewaytest/chmod.py", line 39, in doChange
    cb.loop(20, 500)
  File "/Users/will/Desktop/OMERO/dist/lib/python/omero/callbacks.py", line 242, in loop
    5000L, waited)
LockTimeout: exception ::omero::LockTimeout
{
    serverStackTrace = None
    serverExceptionClass = None
    message = Command unfinished after 10.0 seconds
    backOff = 5000
    seconds = 10.0
}

comment:3 Changed 12 years ago by Will Moore <will@…>

(In [69eafea5dfd7e82721c6f6d923ac590c4ac2c53a/ome.git] on branch develop) Blitz canEdit, canAnnotate with failing tests. See #8439

Added these methods to BlitzObjectWrapper?, delegating to
the object's permissions.canEdit() etc.

Gateway tests fail, with canEdit() and canAnnotate()
returning True with another user's data in
a readonly 'rwr---' group.

comment:4 Changed 12 years ago by Will Moore <will@…>

(In [83af3fb027a66fe38fbbb2d057030bc2b4bd01d9/ome.git] on branch develop) Add failing test of cmd.Chmod group. See #8439

The cmd.Chmod callback never returns. Even when left for several minutes.

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

We're Hiring!