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

Not able to upload a large file (2 GB) via Jackrabbit to an Oracle Database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.14.0
    • None
    • None

    Description

      I have configured Jackrabbit datastore to Oracle database. I use JCR API and when I upload file greater or equal 2GB I get following error(attachment log.txt).

      The problem is in class 'org.apache.jackrabbit.core.util.db.ConnectionHelper' and method 'execute' where is called method setBinaryStream. There stream size is cast to int. That caused a problem when stream size is bigger than max int (2GB or grater). You should use this method there instead of casting. Oracle JDBC also handles long binary stream size.

      Attachments

        1. log.txt
          16 kB
          Mateusz Kluska

        Activity

          People

            Unassigned Unassigned
            kluska_mat Mateusz Kluska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: