Opened 17 years ago
Closed 17 years ago
#740 closed defect (fixed)
Missing AnyToAny item causes ItemNotFoundException when viewing a transformation
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | BASE 2.4.1 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
A transformation may have AnyToAny links to other items (files). Due to a bug in Base1PluginExcecuter (#739) there may be AnyToAny-links that lead to a missing item. This causes an exception in the common/list_anytoany.jsp JSP page:
net.sf.basedb.core.ItemNotFoundException: Item not found: File[id=3] at net.sf.basedb.core.File.getById(File.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at net.sf.basedb.core.Item.getById(Item.java:661) at net.sf.basedb.core.AnyToAny.getTo(AnyToAny.java:533) at org.apache.jsp.common.anytoany.list_005fanytoany_jsp._jspService(list_005fanytoany_jsp.java:216)
The exception causes the page to not display correctly. The proper way to handle this problem is to catch the expection and display a note about the missing item.
Change History (2)
comment:1 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [3707]) Fixes #740: Missing AnyToAny item causes ItemNotFoundException when viewing a transformation