Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-59104

Unable to open admin/findspaceattachments.jsp admin screen.

    XMLWordPrintable

    Details

      Description

      Issue Summary

      Unable to open admin/findspaceattachments.jsp admin screen.

      Steps to Reproduce

      1. Install a new Confluence instance
      2. 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              richatkins Richard Atkins
              Reporter:
              oraissi Omar Raissi
              Votes:
              7 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: