Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44500

OneDriveItem integer size can't store more than 2 GB

    XMLWordPrintable

    Details

    • 21 Status:
      Resolved
    • 20 status:
      Resolved
    • Test Plan:
      Hide

      -Upload files that sum more than 2 GB into OneDrive.

      -Create an item that can attach OneDrive files, i.e. an announcement.

      -Go to Attachments and select OneDrive tab.

      -The list of files should be displayed.

       

      Show
      -Upload files that sum more than 2 GB into OneDrive. -Create an item that can attach OneDrive files, i.e. an announcement. -Go to Attachments and select OneDrive tab. -The list of files should be displayed.  

      Description

      When OneDrive files are attached to Sakai through the cloud-storage implementation, their size is limited to integer max size (about 2 GB). It is a limit easily reachable using the huge storage of OneDrive.

      So trying to attach a file from any OneDrive storage with some files that sum more than 2 GB does not work. The list of files to attach is empty.

      The reason is that the variable "size" in OneDriveItem.java is Integer. It should be Long at least.

      It is a one line change, but due to the current pandemic I'm very busy at work and I will not be able to do a PR in a while, so if anybody wants to fix it, please do it.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  daniel.merino Daniel Merino Echeverría
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration