Opened 16 years ago

Closed 16 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:


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(
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  at java.lang.reflect.Method.invoke(
  at net.sf.basedb.core.Item.getById(
  at net.sf.basedb.core.AnyToAny.getTo(
  at org.apache.jsp.common.anytoany.list_005fanytoany_jsp._jspService(

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 Changed 16 years ago by Nicklas Nordborg

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 Changed 16 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [3707]) Fixes #740: Missing AnyToAny? item causes ItemNotFoundException? when viewing a transformation

Note: See TracTickets for help on using tickets.