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