-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 7.0.2, 7.0.3, 7.0.4, 7.1.0, 7.4.1
-
Component/s: Server - Administration
-
6
-
Severity 2 - Major
-
17
Issue Summary
Unable to open admin/findspaceattachments.jsp admin screen.
Steps to Reproduce
- Install a new Confluence instance
- Navigate to <base-url>/admin/findspaceattachments.jsp
Expected Results
Find Space Attachment Storage Location screen should open according to https://confluence.atlassian.com/doc/hierarchical-file-system-attachment-storage-704578486.html
Actual Results
Oops - an error has occurred , screen is displayed
Cause
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [61] in the jsp file: [/admin/findspaceattachments.jsp] The method getDirectoryForSpace(Optional<Long>) in the type HierarchicalMultiStreamAttachmentDataFileSystem is not applicable for the arguments (Option<Long>) 58: AttachmentDataFileSystem delegateAttachmentDataFileSystem = ((TrackingAttachmentDataFileSystem) attachmentDataFileSystem).getDelegate(); 59: if (delegateAttachmentDataFileSystem instanceof HierarchicalMultiStreamAttachmentDataFileSystem) 60: { 61: spaceDir = ((HierarchicalMultiStreamAttachmentDataFileSystem) delegateAttachmentDataFileSystem).getDirectoryForSpace(Option.some(space.getId())); 62: if (spaceDir != null) 63: { 64: %> An error occurred at line: [61] in the jsp file: [/admin/findspaceattachments.jsp] Type mismatch: cannot convert from Option<Long> to Optional<Long> 58: AttachmentDataFileSystem delegateAttachmentDataFileSystem = ((TrackingAttachmentDataFileSystem) attachmentDataFileSystem).getDelegate(); 59: if (delegateAttachmentDataFileSystem instanceof HierarchicalMultiStreamAttachmentDataFileSystem) 60: { 61: spaceDir = ((HierarchicalMultiStreamAttachmentDataFileSystem) delegateAttachmentDataFileSystem).getDirectoryForSpace(Option.some(space.getId())); 62: if (spaceDir != null) 63: { 64: %> Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
Stack Trace:[hide]
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [61] in the jsp file: [/admin/findspaceattachments.jsp]
The method getDirectoryForSpace(Optional<Long>) in the type HierarchicalMultiStreamAttachmentDataFileSystem is not applicable for the arguments (Option<Long>)
58: AttachmentDataFileSystem delegateAttachmentDataFileSystem = ((TrackingAttachmentDataFileSystem) attachmentDataFileSystem).getDelegate();
59: if (delegateAttachmentDataFileSystem instanceof HierarchicalMultiStreamAttachmentDataFileSystem)
60: {
61: spaceDir = ((HierarchicalMultiStreamAttachmentDataFileSystem) delegateAttachmentDataFileSystem).getDirectoryForSpace(Option.some(space.getId()));
62: if (spaceDir != null)
63: {
64: %>
An error occurred at line: [61] in the jsp file: [/admin/findspaceattachments.jsp]
Type mismatch: cannot convert from Option<Long> to Optional<Long>
58: AttachmentDataFileSystem delegateAttachmentDataFileSystem = ((TrackingAttachmentDataFileSystem) attachmentDataFileSystem).getDelegate();
59: if (delegateAttachmentDataFileSystem instanceof HierarchicalMultiStreamAttachmentDataFileSystem)
60: {
61: spaceDir = ((HierarchicalMultiStreamAttachmentDataFileSystem) delegateAttachmentDataFileSystem).getDirectoryForSpace(Option.some(space.getId()));
62: if (spaceDir != null)
63: {
64: %>
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)
Notes
Not reproducible with 6.15 release
Workaround
If there is no workaround at the moment