Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3850

RepositoryStartupServlet constructs FileStore incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10, 2.8.1
    • 2.10, 2.8.1
    • jackrabbit-webapp
    • None

    Description

      The RepositoryStartupServlet in trunk (I am using release/tag 2.8.0 in testing) incorrectly constructs FileStore by passing 256*1024*1024 in the maxFileSizeMB parameter; as documented, this parameter's value is multiplied by 1048576 again in FileStore(BlobStore, File, NodeState, int, int, boolean) which causes the integer to overflow.

      The overflow causes the FileStore's maxFileSize to be 0, which unsurprisingly causes a crash later on in initialization of the store. A simple patch is attached to resolve this issue.

      Attachments

        1. JCR-3850.patch
          0.9 kB
          Erik Arvidson

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              earvidson Erik Arvidson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: