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

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: Edit no name

Reported by: jburel Owned by: wmoore
Priority: critical Milestone: OMERO-4.4.7
Component: Web Version: n.a.
Keywords: n.a. Cc: ux@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Select an object w/o name. This can happen since it is not a required field.

Traceback (most recent call last):

  File "/home/omero/slave/workspace/OMERO-merge-develop/src/dist/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/omero/slave/workspace/OMERO-merge-develop/src/dist/lib/python/omeroweb/decorators.py", line 377, in wrapped
    retval = f(request, *args, **kwargs)

  File "/home/omero/slave/workspace/OMERO-merge-develop/src/dist/lib/python/omeroweb/decorators.py", line 414, in wrapper
    context = f(request, *args, **kwargs)

  File "/home/omero/slave/workspace/OMERO-merge-develop/src/dist/lib/python/omeroweb/webclient/views.py", line 1416, in manage_action_containers
    form = ContainerNameForm(initial={'name': ((o_type != ("tag")) and obj.getName() or obj.textValue)})

  File "/home/omero/slave/workspace/OMERO-merge-develop/src/dist/lib/python/omero/gateway/__init__.py", line 1079, in __getattr__
    raise AttributeError("'%s' object has no attribute '%s'" % (self._obj.__class__.__name__, attr))

Change History (6)

comment:1 Changed 11 years ago by spli

This might be related:

Clicking on the icon of a plate with no name expands the tree to show the plate acquisitions as expected, but causes a non-fatal Javascript warning:

Firefox

TypeError: obj is undefined @ https://gretzky.openmicroscopy.org.uk/static/3rdparty/jquery.jstree/jquery.jstree.js:814

IE8

Message: 'nodeValue' is null or not an object
Line: 814
Char: 6
Code: 0
URI: https://gretzky.openmicroscopy.org.uk/static/3rdparty/jquery.jstree/jquery.jstree.js

comment:2 Changed 11 years ago by wmoore

Can you explain how you get this error? If I look at the DB, then name (E.g. for Dataset is "not null")

omero=# \d dataset
              Table "public.dataset"
   Column    |          Type          | Modifiers 
-------------+------------------------+-----------
 id          | bigint                 | not null
 description | text                   | 
 permissions | bigint                 | not null
 name        | character varying(255) | not null
 version     | integer                | 
 creation_id | bigint                 | not null
 external_id | bigint                 | 
 group_id    | bigint                 | not null
 owner_id    | bigint                 | not null
 update_id   | bigint                 | not null

comment:3 Changed 11 years ago by jburel

empty String probably

comment:4 Changed 11 years ago by wmoore

OK, I get the same error if I use the API to set the name of a Project to empty string, then try editing the name in web.

comment:5 Changed 11 years ago by wmoore

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

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

(In [cf2f6ed650df5adc06aa795b75d447aa9f071433/ome.git] on branch develop) Fix Edit name of . See #10063

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

We're Hiring!