Andrew Gaul
859eaca9fd
Do not eagerly check for existence in FilePayload
...
This is a TOCTOU violation and FilePayload.getInput already propagates
this. This commit allows external callers like jclouds-cli to
introspect on the exception type, returning a more friendly error
message in some situations.
2013-07-15 23:34:33 -07:00
Diwaker Gupta
76e5e80e5b
Introduce StripExpectHeader filter and a property to control it.
...
Some providers (specifically HP Cloud and Google Cloud Storage) do not
properly support Expect: 100-continue headers. JDK7 is stricter in its
handling of the Expect header than JDK6 -- in particular, it expects
servers to properly respond to an expect header and times out only if a
prior timeout did not exist on the underlying HTTP connection. As a
result, JDK7 tests against these providers hang and fail.
This commit introduces a new filter -- appropriate called
StripExpectHeader -- that is controlled by the property
jclouds.strip-expect-header. The property defaults to false to preserve
existing behavior but allows applications to tweak Expect header
handling.
Tested by running HPCS live tests with JDK7 -- previously most of these
tests would fail with timeouts.
Closes JCLOUDS-181
2013-07-11 15:13:11 -07:00
zack-shoylev
5b9419a499
Upgrade to gson 2.2.4
...
https://issues.apache.org/jira/browse/JCLOUDS-117
2013-07-11 13:54:52 -07:00
Andrew Gaul
1209f252ad
Deprecate Strings2.replaceAll
...
Removed in 1.7.0.
2013-06-20 11:45:10 -07:00
Andrew Bayer
1a130bffa2
[maven-release-plugin] prepare for next development iteration
2013-06-19 13:24:39 -07:00
Andrew Bayer
079f9f0bcc
[maven-release-plugin] prepare release jclouds-1.6.1-incubating-rc3
2013-06-12 17:12:14 -07:00
Andrew Bayer
7c4196dc09
Revert "[maven-release-plugin] prepare release jclouds-1.6.1-incubating-rc2"
...
This reverts commit 5c18b6a1b4a08218a0fe5aafb91a9692894c7fa4.
2013-06-12 16:49:34 -07:00
Andrew Bayer
a02218e212
Add license headers to src/test/resources where possible, more fine-grained RAT exclusions
2013-06-10 11:45:58 -07:00
Andrew Bayer
5c18b6a1b4
[maven-release-plugin] prepare release jclouds-1.6.1-incubating-rc2
2013-05-31 14:11:50 -07:00
Andrew Bayer
7828eef359
Revert "[maven-release-plugin] prepare release jclouds-1.6.1-incubating-rc1"
...
This reverts commit 57718280be4bccea9e7885c5c3c38550f818d0dd.
2013-05-31 13:48:27 -07:00
Andrew Bayer
57718280be
[maven-release-plugin] prepare release jclouds-1.6.1-incubating-rc1
2013-05-30 11:20:44 -07:00
Andrew Bayer
b2f96a67cf
JCLOUDS-31. License header cleanup
2013-05-24 11:41:25 -07:00
Andrew Phillips
a3eea35e53
JCLOUDS-75: Support '-incubating' release versions
2013-05-22 11:31:52 +02:00
Ioannis Canellos
14bdcf5087
Add @Inject to the Compute class.
2013-05-21 21:34:33 +03:00
Andrew Gaul
85e976e7f5
JCLOUDS-27: Allow repeatable Payload with InputSupplier input
...
This allows HTTP retries to work. Also remove duplicated calls to
ByteStreams.slice.
2013-05-17 10:09:36 -07:00
adriancole
7420cb7186
JCLOUDS-31. updated to ASF headers via mvn com.mycila.maven-license-plugin:maven-license-plugin:format
2013-05-16 21:33:44 -07:00
adriancole
762055a8aa
JCLOUDS-31. remove malformed, duplicate, or unnecessary headers
2013-05-16 21:33:40 -07:00
Andrew Phillips
1a9f36823a
JCLOUDS-52: Updating JcloudsVersion to search under org.apache.jclouds
...
Group ID changed from org.jclouds with JCLOUDS-15
2013-05-16 15:59:17 -04:00
Andrew Bayer
97fdc2655d
JCLOUDS-37. Fix RAT violations in incubator-jclouds, 1.6.x branch
2013-05-13 19:17:37 -07:00
Andrew Bayer
efc0e9dcd2
JCLOUDS-30. Switch to 2 space indents for POM files.
2013-05-13 13:10:06 -07:00
Andrew Bayer
ebf5286ce6
JCLOUDS-16. Switch groupId to org.apache.jclouds, change parent POM, remove old distributionManagement content, add ASF repos.
2013-05-13 13:10:05 -07:00
adriancole
0ed3d64cc7
[maven-release-plugin] prepare for next development iteration
2013-04-27 08:23:16 -07:00
adriancole
51cddcb841
[maven-release-plugin] prepare release jclouds-1.6.0
2013-04-27 08:23:15 -07:00
Everett Toews
0f1a455bc9
Removed trystack-nova provider.
...
Conflicts:
providers/trystack-nova/pom.xml
2013-04-26 12:08:54 -05:00
adriancole
f567124dbe
[maven-release-plugin] prepare for next development iteration
2013-04-22 00:01:42 -07:00
adriancole
063b795393
[maven-release-plugin] prepare release jclouds-1.6.0-rc.5
2013-04-22 00:01:40 -07:00
Andrew Gaul
bdd48ca5bf
Address Checkstyle violations
...
This commit requires temporarily disabling some checks.
2013-04-17 17:33:06 -07:00
Andrew Phillips
a055a0035c
Not making methods of core Java classes accessible in Reflection2
2013-04-17 17:32:59 -07:00
Andrew Gaul
fabb4c9f10
Address Xlint warnings
2013-04-17 17:23:20 -07:00
Andrew Gaul
f2976c2169
Deprecate duplicate getters
2013-04-13 11:58:53 -07:00
Andrew Gaul
ffc5b6479c
Deprecate ExecutorService getters
2013-04-12 14:53:37 -07:00
adriancole
bf1b7f50c9
[maven-release-plugin] prepare for next development iteration
2013-04-10 13:04:14 -07:00
adriancole
60468e5ba8
[maven-release-plugin] prepare release jclouds-1.6.0-rc.4
2013-04-10 13:04:13 -07:00
adriancole
0bf7147bf0
rename bindMappedApi -> bindSyncToAsyncApi
2013-04-10 10:10:16 -07:00
adriancole
ccc012a688
renamed ignored exception to ignored
2013-04-10 08:26:41 -07:00
adriancole
1894b093a3
naming convention and warning feedback from issue #1511
2013-04-10 08:26:33 -07:00
adriancole
294807a103
Deprecated remaining code related to RestContext, RestApiMetadata, and RestClientModule for ApiContext, HttpApiMetadata, HttpApiModule
2013-04-09 23:17:03 -07:00
adriancole
9d57af1c2e
deprecated all top-level Async apis and clients
2013-04-09 13:38:43 -07:00
adriancole
39f3dba5ef
moved all code off use of RestContext except CloudStackContext, which will use it until 1.7
2013-04-09 13:38:31 -07:00
adriancole
bf0a0aa781
added apiVersion field to BaseContextLiveTest so that CloudStack tests don't need to rely on as much injection
2013-04-09 13:38:21 -07:00
adriancole
1cc4cec79a
added type token means for buildApi() as it is in fact used
2013-04-09 13:38:07 -07:00
adriancole
a9ce7410ab
added temporary workaround for AutoCloseable which will be deleted in jclouds 1.7
2013-04-08 18:06:33 -07:00
adriancole
a7bb80bd44
issue #1501 : add Closeable annotation to all top-level apis
2013-04-08 18:06:33 -07:00
adriancole
34d94d2300
issue #1501 : allow Closeable, top-level apis to be used as opposed to RestContext
2013-04-08 18:06:32 -07:00
Adrian Cole
8e20652021
Merge pull request #1491 from maginatics/remove-input-suppliers-of-input-stream-1.6.x
...
Remove InputSuppliers.of(InputStream)
2013-04-04 16:20:34 -07:00
adriancole
0d34d0729d
[maven-release-plugin] prepare for next development iteration
2013-04-03 18:25:58 -07:00
adriancole
985f3b5c0f
[maven-release-plugin] prepare release jclouds-1.6.0-rc.3
2013-04-03 18:25:57 -07:00
Andrew Gaul
bb6c38a345
Emit Content-Length: 0 for empty PUTs
...
HttpUrlConnection reverts Content-Length: 0 on PUT without
doOutput(true), similar to POST. This commit allows Azure container
create to succeed. Closes #1420 .
2013-04-03 17:35:46 -07:00
Andrew Gaul
2c06317354
Remove InputSuppliers.of(InputStream)
...
This method breaks the contract of an InputSupplier since every call
to getInput returns the same InputStream instance. This is
particularly dangerous when one of the callers mutates or closes the
InputStream which causes all others callers to fail.
2013-04-03 13:19:48 -07:00
adriancole
bfd5b114d7
[maven-release-plugin] prepare for next development iteration
2013-03-25 20:50:05 -07:00