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

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

BUG:QA 7822 - group_owner save

Reported by: omero-qa Owned by: wmoore
Priority: minor Milestone: 5.1.0
Component: from QA Version: 4.4.10
Keywords: n.a. Cc: atarkowska, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

It's possible to go to url E.g. group_owner/save/4/ without POST (mostly because you got an exception on POST - See #11875 and you then refresh etc). In which case you get an exception - below.

https://www.openmicroscopy.org/qa2/qa2/qa/feedback/7822/

Traceback (most recent call last):

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/omeroweb/decorators.py", line 377, in wrapped
    retval = f(request, *args, **kwargs)

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/omeroweb/decorators.py", line 414, in wrapper
    context = f(request, *args, **kwargs)

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/omeroweb/webadmin/views.py", line 646, in manage_group_owner
    return HttpResponseRedirect(reverse(viewname="wamyaccount", args=["edit", group.id]))

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/django/core/urlresolvers.py", line 391, in reverse
    *args, **kwargs)))

  File "/opt/omero/omero/OMERO.server-4.4.9-ice33-b98/lib/python/django/core/urlresolvers.py", line 337, in reverse
    "arguments '%s' not found." % (lookup_view_s, args, kwargs))

NoReverseMatch: Reverse for 'wamyaccount' with arguments '('edit', 1002L)' and keyword arguments '{}' not found.


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'sessionid': '2e518b1fd3be261b8dd20b4e3c987ecb'},
META:{'DOCUMENT_ROOT': '/var/www/html',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=2e518b1fd3be261b8dd20b4e3c987ecb',
 'HTTP_DNT': '1',
 'HTTP_HOST': 'nightshade.openmicroscopy.org',
 'HTTP_REFERER': 'https://nightshade.openmicroscopy.org/webclient/login/?url=%2Fwebadmin%2Fgroup_owner%2Fsave%2F1002%2F',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:26.0) Gecko/20100101 Firefox/26.0',
 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',
 'PATH_INFO': u'/webadmin/group_owner/save/1002/',
 'PATH_TRANSLATED': '/opt/omero/omero/OMERO-CURRENT/var/omero.fcgi/webadmin/group_owner/save/1002/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.42.2.145',
 'REMOTE_PORT': '54264',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/webadmin/group_owner/save/1002/',
 'SCRIPT_FILENAME': '/opt/omero/omero/OMERO-CURRENT/var/omero.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '134.36.65.231',
 'SERVER_ADMIN': 'root@localhost',
 'SERVER_NAME': 'nightshade.openmicroscopy.org',
 'SERVER_PORT': '443',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.15 (CentOS) Server at nightshade.openmicroscopy.org Port 443</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.15 (CentOS)',
 'SSL_TLS_SNI': 'nightshade.openmicroscopy.org',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x4a865d0>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x4b35990>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 0)}>

Change History (5)

comment:1 Changed 6 years ago by wmoore

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

comment:2 follow-up: Changed 6 years ago by jamoore

  • Cc jburel added
  • Milestone changed from Unscheduled to 5.1.0

PR merged. Moving into the current develop milestone. Is there any re-arranging that needs to be done between milestone:Unscheduled and milestone:5.1.0, Will?

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

(In [dbd7073faa1c18ec73cb5b5044a1ae03db5d67e1/ome.git] on branch develop) Redirect to group_owner/edit. See #11911

comment:4 Changed 6 years ago by Josh Moore <josh@…>

(In [d7f97889cec30b0642a6444a532cfa5ad6ebb0f5/ome.git] on branch develop) Merge pull request #1996 from will-moore/group_owner_save_11911

Redirect to group_owner/edit. See #11911

comment:5 in reply to: ↑ 2 Changed 6 years ago by wmoore

Replying to jamoore:

PR merged. Moving into the current develop milestone. Is there any re-arranging that needs to be done between milestone:Unscheduled and milestone:5.1.0, Will?

Nothing obvious I can see - Any spare time for 5.1.0 will be put towards OMERO.figure.

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

We're Hiring!