[
https://issues.apache.org/jira/browse/JCLOUDS-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrian Cole updated JCLOUDS-264:
--------------------------------
Description:
The default http driver uses java's HttpUrlConnection, which uses an integer to
determine fixed length of content. This means that it cannot be used to send
>2GB content. The current workaround is to use an http driver that supports
>2GB payloads in a single request.
This issue will conditionally allow the default driver to support >2GB payloads
in a single request. It will do so via conditionally using
setFixedLengthStreamingMode(long) on Java 7 and
setFixedLengthStreamingMode(int) on Java 6:
https://gist.github.com/andrewgaul/6439757
was:
We can use reflection to call setFixedLengthStreamingMode(long) on Java 7 and
setFixedLengthStreamingMode(int) on Java 6:
https://gist.github.com/andrewgaul/6439757
> Support > 2 GB single-part blobs when running default http driver on Java 7
> ---------------------------------------------------------------------------
>
> Key: JCLOUDS-264
> URL: https://issues.apache.org/jira/browse/JCLOUDS-264
> Project: jclouds
> Issue Type: Improvement
> Components: jclouds-blobstore
> Affects Versions: 1.6.2, 1.7.0
> Reporter: Andrew Gaul
> Assignee: Adrian Cole
> Fix For: 1.8.2
>
>
> The default http driver uses java's HttpUrlConnection, which uses an integer
> to determine fixed length of content. This means that it cannot be used to
> send >2GB content. The current workaround is to use an http driver that
> supports >2GB payloads in a single request.
> This issue will conditionally allow the default driver to support >2GB
> payloads in a single request. It will do so via conditionally using
> setFixedLengthStreamingMode(long) on Java 7 and
> setFixedLengthStreamingMode(int) on Java 6:
> https://gist.github.com/andrewgaul/6439757
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)