maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Silvio Assuncao (JIRA)" <>
Subject [jira] [Created] (WAGON-485) Integer Filesize
Date Mon, 09 Jan 2017 19:01:00 GMT
Silvio Assuncao created WAGON-485:

             Summary: Integer Filesize
                 Key: WAGON-485
             Project: Maven Wagon
          Issue Type: Bug
          Components: wagon-ssh
    Affects Versions: 2.10
            Reporter: Silvio Assuncao
            Priority: Critical

ScpWagon class parse a String value to Integer (Filesize) but if you have a large file (3.6GB)
the file size is 3865470566 in bytes, the number is more than the MAX_VALUE of Integer.

Changed to parse using Long, because the `resource.setContentLength` receive a long value

Please check the pull-request

This message was sent by Atlassian JIRA

View raw message