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

Opened 9 years ago

Closed 8 years ago

BUG: Split View Figure etc. scripts should check if scripts are enabled

Reported by: atarkowska Owned by: wmoore
Priority: major Milestone: Unscheduled
Component: Web Version: OMERO-5.1.3
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

If Scripts are disabled in a scripting service General Metadata Panel still shows buttons to allow run Split View Figure etc. from the menu in right-hand pane. This ends up with HTTP500

Traceback (most recent call last):

  File "/opt/hudson/workspace/OMERO-5.1-latest-vmicroscope/src/dist/lib/python/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/opt/hudson/workspace/OMERO-5.1-latest-vmicroscope/src/dist/lib/python/omeroweb/decorators.py", line 471, in wrapped
    retval = f(request, *args, **kwargs)

  File "/opt/hudson/workspace/OMERO-5.1-latest-vmicroscope/src/dist/lib/python/omeroweb/decorators.py", line 521, in wrapper
    context = f(request, *args, **kwargs)

  File "/opt/hudson/workspace/OMERO-5.1-latest-vmicroscope/src/dist/lib/python/omeroweb/webclient/views.py", line 3559, in figure_script
    raise AttributeError("No script found for path '%s'" % scriptPath)

AttributeError: No script found for path '/omero/figure_scripts/Split_View_Figure.py'

Ideally would be to check if script is enabled

Change History (5)

comment:1 Changed 9 years ago by jamoore

  • Milestone changed from 5.2.0 to OMERO-5.2.0

Splitting due to milestone decoupling.

comment:2 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.1 to OMERO-5.2.2

Milestone OMERO-5.2.1 deleted

comment:3 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to OMERO-5.2.1

Milestone OMERO-5.2.2 deleted

comment:4 Changed 8 years ago by jburel

No crash in insight but a script disable is still available in the right handle panel

comment:5 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.3 to Unscheduled
  • Resolution set to duplicate
  • Status changed from new to closed
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.65917 sec.)

We're Hiring!