Details
-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
6.3, 7.1
-
Unknown
-
Description
The javadoc for com.xpn.xwiki.store.AttachmentRecycleBinStore says:
* @param attachment Optional attachment template. If <code>null</code>, return information about all deleted * attachments from the database. Otherwise, filter by the document and filename provided in the passed * attachment.
however the org.xwiki.store.legacy.store.internal.FilesystemAttachmentRecycleBinStore who implements that interface does not support passing in "null" as attachment argument; instead it throws n NPE.
This causes ADMINTOOL-12 (the second half) ... not sure if this should be fixed in the FilesystemAttachmentRecycleBinStore, or instead the javadoc should be updated (it seems loading 'DeletedAttachment' via HQL is the preferred solution to query for attachments anyway ?)
Attachments
Issue Links
- blocks
-
ADMINTOOL-12 Shrink Recycle Bin works only with main wiki and gives an error in attempt to purge all documents in recycle bin
- Closed
- duplicates
-
XWIKI-9065 XWiki.DeletedAttachments shows nothing when filesystem attachments are enabled.
- Closed