8528 Commits

Author SHA1 Message Date
Andrew Gaul
d9650ccdc8 Remove maven.compile.optimize
This setting has no effect.  Reference:

http://stackoverflow.com/questions/4218721/optimizing-java-compiler-during-a-maven-build
2014-08-09 07:09:33 -07:00
Andrew Phillips
a6412ad66b Addressing Checkstyle violation
Introduced in 7e4cacf
2014-08-09 09:12:43 -04:00
Andrew Gaul
7e4cacf9ea JCLOUDS-264: Allow payloads greater than 2 GB
Enabled by JDK 7.
2014-08-09 00:28:49 -07:00
Andrew Gaul
5e8bd02c93 JCLOUDS-652: Require JDK 7
Moving to Java 7 allows jclouds to use more language and library
features such as try-with-resources and HTTP client improvements.
2014-08-09 00:28:47 -07:00
Andrew Gaul
20bc145284 JCLOUDS-650: ContainerNotFoundException on putBlob
Found with Ceph s3-tests and s3proxy.
2014-08-09 00:25:10 -07:00
Fabian Lange
aa174a5d73 JCLOUDS-656: Parse Swift authentication headers case-insensitively
Also ensure they are added to the result object with the normalized
capitalization expected by downstream code.

Follow-up to 375cb207.
2014-08-08 19:10:00 -04:00
Andrew Phillips
5d3b293b69 Revert "Parse Swift authentication headers case-insensitively"
Missing JIRA issue number.

This reverts commit e532e6f260c6070673ed9bb87294c4596e9e8b88.
2014-08-08 19:09:36 -04:00
Fabian Lange
e532e6f260 Parse Swift authentication headers case-insensitively
Also ensure they are added to the result object with the normalized
capitalization expected by downstream code.

Follow-up to 375cb207.
2014-08-08 19:07:41 -04:00
Andrew Gaul
80a0256cc7 JCLOUDS-622: Remove last vestiges of InputSupplier
Guava 16 deprecated InputSupplier and a future release will remove it.
2014-08-08 15:40:33 -07:00
Andrew Gaul
b219208d6c JCLOUDS-653: correct mock expectation 2014-08-08 15:21:58 -07:00
Andrew Gaul
95cfc0d950 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:12:21 -07:00
Andrew Gaul
f26431b3e7 JCLOUDS-653: Upgrade to Guava 18.0-rc1
Release notes:

https://code.google.com/p/guava-libraries/wiki/Release18
2014-08-08 11:08:09 -07:00
Everett Toews
da2655ac82 Avoid duplicated info and just link to website 2014-08-07 09:25:37 -05:00
Jeremy Daggett
23d5290526 OpenStack Cinder general cleanup. Prefer ByteSourcePayload. 2014-08-06 15:20:03 -07:00
Andrew Gaul
59462747e7 Reset StringBuilder instead of creating new ones
This avoids unneeded garbage, especially during XML parsing.  Replaced
with:

find -name \*.java | xargs sed -i 's/^\( *[^ ]*\) = new StringBuilder();$/\1.setLength(0);/'
2014-08-06 11:22:49 -07:00
Andrew Gaul
9e9acf1f3e Address Checkstyle violations 2014-08-05 17:13:29 -07:00
Jeremy Daggett
95a3c7ec2c JCLOUDS-646: Copied Cloud Identity v1.1 classes from openstack-common and fixed incorrect Keystone package names 2014-08-05 09:01:21 -07:00
Andrew Phillips
e3d9851216 Up to 2.0.0-SNAPSHOT after the 1.8.0 release 2014-08-05 09:10:24 +02:00
Zack Shoylev
231a60675e Adds support for ImmutableMap in jclouds gson 2014-07-29 12:36:53 -05:00
Ignasi Barrera
8cb2cb449b Revert "Move jclouds-chef to the main jclouds repo"
This change will be added again after the 1.8.0 release.

This reverts commit 867c7a407c1db8f56ff3211d70481755cf71440f.
2014-07-29 00:38:46 +02:00
Ignasi Barrera
867c7a407c Move jclouds-chef to the main jclouds repo 2014-07-28 21:08:54 +02:00
Andrew Phillips
eba727fef7 'iso8601DateParseWithOptionalTZ' -> 'iso8601DateOrSecondsDateParse' in DateService
Follow-up to d57bbebe
2014-07-28 12:20:49 -04:00
Andrew Gaul
9c82ded343 Correct comment 2014-07-27 21:25:35 -07:00
Andrew Gaul
7f31cd6051 Handle possibly null message from IOException 2014-07-27 19:41:45 -07:00
Shri Javadekar
d57bbebe7e Try iso8601SecondsDateParse if iso8601DateParse fails.
S3 compatible blobStores sometimes return date in the format:
"2014-07-23T20:53:17+0000" instead of the more common
"2014-07-23T18:09:39.944Z". This caused jclouds to barf with an
IllegalArgumentException.

This commit tries to parse both the formats for S3. The exception
is thrown if both fail.

Added unit tests for the same.
2014-07-26 22:19:54 -07:00
Andrew Gaul
9677ed18eb Remove loop to gather metrics
This loop dramatically increases integration test run-time for no
discernible benefit.
2014-07-26 11:08:16 -07:00
Andrew Gaul
322ea1cbb3 Allow Javadoc to reference imports
These style errors continue to creep in due to IDE misconfiguration so
we might as well stop checking for it.
2014-07-26 11:03:58 -07:00
Andrew Gaul
1e1eb5a092 Add deleteContainerIfEmpty to BlobStore
This matches how most blobstores operate: delete container is a single
operation, not a compound operation which recursively deletes blobs.
Azure is the only provider which allows deleting a non-empty
container.
2014-07-25 23:02:39 -07:00
Andrew Gaul
10262df81c Add symbolic error codes for Atmos 2014-07-24 16:30:42 -07:00
Andrew Gaul
5c8bdcdfbb Remove ByteSources.asByteSource
This method breaks the contract of ByteSource which specifies that
openStream can produce multiple independent streams.
2014-07-24 13:02:13 -07:00
Jeremy Daggett
957f6f16c7 JCLOUDS-567: Upgrade Apache HttpClient to 4.3.4 2014-07-24 08:40:12 -07:00
Andrew Phillips
5732bdcd94 Escaping regex special chars (esp. '\') in delimiter matching
Uncovered by 370194b
2014-07-22 13:35:52 -04:00
Andrew Phillips
365ac21f1e Addressing a Checkstyle violation 2014-07-22 13:35:43 -04:00
Andrew Gaul
d1bd551edf Add support for filesystem last modified 2014-07-21 12:25:04 -07:00
Jeremy Daggett
0d77d8c2b1 JCLOUDS-554: Update Nova default API to v2 2014-07-21 10:50:46 -07:00
Andrew Gaul
f17c876d8d Replace const.txt file input with synthetic inputs
This commit replaces file resource-based test inputs with in-memory
equivalents.  This is more consistent and efficient than the previous
approach.  Also resized some test inputs to be partSize + 1 instead of
2 * partSize.  Tested against aws-s3, blobstore, core, cloudfiles-us,
and filesystem.
2014-07-19 18:35:25 -07:00
Andrew Gaul
370194b2be Enable more filesystem integration tests
Other tests will require Java 7 xattr support.
2014-07-19 12:17:23 -07:00
Andrew Gaul
dd3dc9790e Close streams in integration tests
Also remove bogus delete workaround.  Previously unclosed
FileInputStream caused test failures on Windows which cannot delete
open files.  Found with Kohsuke's file-leak-detector.
2014-07-19 05:25:20 -07:00
Andrew Gaul
0c005f8094 Address Checkstyle violations 2014-07-19 03:39:07 -07:00
Andrew Gaul
0df905a870 JCLOUDS-622: add Strings2.toString(InputSupplier)
We did not deprecate this in 1.7.x as previously thought.
2014-07-18 21:48:08 -07:00
Aled Sage
1fb286809e JCLOUDS-549: Fix NPE in LoginCredentials.toString
- also deprecates LoginCredentails.get(Password|PrivateKey)
- use getOptionalPassword and getOptionalPrivateKey instead
2014-07-18 14:09:18 +01:00
Andrew Gaul
fb60d76704 JCLOUDS-622: Remove most vestiges of InputSupplier
Guava 16 deprecated InputSupplier and a future release will remove it.
2014-07-16 16:07:59 -07:00
Jeremy Daggett
1a3ad75efd JCLOUDS-40: Unasync Rackspace Cloud Identity 2014-07-16 08:47:39 -07:00
Andrea Turli
717a545baa [JCLOUDS-474] refactor SoftLayer support 2014-07-16 11:05:48 +02:00
Andrew Gaul
09cf57101d Reduce Swift integration test input size
Previously testMultipartChunkedFilenames uploaded 55 MB and now it
uploads 5 MB.
2014-07-15 18:21:42 -07:00
Andrew Gaul
86de7923a1 Improve use of ByteSource 2014-07-15 18:21:42 -07:00
Werner Buck
22c5fbbd78 JCLOUDS-625: Set VolumeBuilder id to nullable in VolumeImpl
VolumeBuilder does not allow null id while VolumeImpl allows it to be nullable.
2014-07-16 00:43:47 +02:00
Jeremy Daggett
801aecafea JCLOUDS-40: Unasync OpenStack Nova API 2014-07-15 14:29:09 -07:00
Andrew Gaul
086fb9c728 JCLOUDS-629: SshjSshClient Payload without length
sshj treats -1 as an unknown length and uses a less efficient copying
mechanism.
2014-07-15 13:11:37 -07:00
Andrew Gaul
a8b106c2bb JCLOUDS-622: remove calls to InputSupplier methods
Guava 16 deprecated these methods and Guava 18 will remove them.
2014-07-15 03:09:58 -07:00