Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 6.0.5 GA
-
Fix Version/s: 6.1.0 CE RC1
-
Component/s: DM > Document Library Display
-
Labels:None
-
Branch Version/s:6.0.x
-
Similar Issues:
Description
The document library edit does not work when the context is changed and on using a JCR hook.
The problem happens because CMD is going as empty string to the edit file action.
On looking at edit_file_entry.jsp i found the hidden variable CMD in the form is not instantiated to anything. So i put a default value for it "Update".
If i use this logic it fails at the JCRHook. The class DLFileEntryLocalService tries to delete the version of file if it already exists and if the version does not exist it catches NoSuchFileException and ignores it. The problem is JCRHook was throwing back SystemException and not NoSuchFileException and hence the code was failing. I changed JCRHook to throw back NoSuchFileException and it works.
Please refer the patch i have attached

patches for edit file jsp and JCRhook