Commit Graph

10593 Commits

Author SHA1 Message Date
Tamas Cservenak 619466c66f JCLOUDS-1552: Do not attempt to parse empty payload (#82) 2020-09-21 15:48:03 +02:00
roded 76f9a53247
JCLOUDS-1543: remove unused imports from FetchBlobMetadataTest.java (#70)
Co-authored-by: Roded Bahat <roded.bahat@model9.io>
2020-04-22 09:49:53 +02:00
Roded Bahat a04484122a JCLOUDS-1543: change FetchBlobMetadata to retain original blob order 2020-04-17 19:22:17 +09:00
Fritz Elfert 876269427b Fix javadoc generation on JDK >= 8 (#67) 2020-04-16 22:04:07 +09:00
Timur Alperovich e66bffa521 Hash the content for fs MPU ETag if no xattr.
If there is no extended attribute support in the file system, the blobs
will not have their associated ETags available. In that case, the file
system blob store should rehash the content while producing the combined
blob and return the expected S3-style ETag.
2020-04-04 18:43:29 +09:00
ikky888 f876800370 JCLOUDS-1541: Add Middle East (Bahrain) region to the AWS EC2 and S3 providers list 2020-04-04 10:48:33 +09:00
Xavier BOURGOUIN 94f02856b7 Fix BlobMetadata null size when using ApacheHCHttp module
JClouds is apparently exclusively using the Payload object from the HTTP
response to fill in the size of the BlobMetadata (when calling
blobStore.blobMetadata(...) ) - adapt this driver accordingly otherwise
we systematically get null size BlobMetadata out of it.
2020-03-08 22:16:15 +09:00
Colm O hEigeartaigh eeb5d73a29 JCLOUDS-1540 - Update Snakeyaml 2020-03-03 17:43:26 +09:00
majaseremet 7b5db15778 JCLOUDS-1533 - Fix upload with SAS token when blob name contains slash (#61) 2020-02-17 15:29:15 +01:00
Ian Springer 8949bc10d3 JCLOUDS-1538: fix typo in rfc1123SimpleDateFormat (#60) 2020-01-24 09:35:18 -05:00
Markus Alexander Kuppe f8a7f7741b
JCLOUDS-1529: Do not export org.jclouds.json.gson.internal (#56)
Do not export packages matching org.jclouds.json.gson.internal*
because it causes a use constraint violation with OSGi between
jclouds-core and jclouds-gson.

https://issues.apache.org/jira/browse/JCLOUDS-1529
2019-11-28 10:35:44 +01:00
Andrew Gaul f34cdb98d5 Fix TOCTOU issue when getting blob during removal
Fixes gaul/s3proxy#318.
2019-11-09 12:09:31 +09:00
Xavier BOURGOUIN b6534eddde Fix infinite socket timeout when using ApacheHCHttpCommandExecutorServiceModule (#51)
Because the Java type BasicHttpParams wasn't matching the one returned
by provider "newBasicHttpParams" (which is returning a HttpParams type), it was configuring the Apache HTTP client with default settings (including connection and socket timeout), ignoring the ones of JClouds which were must safer in this regard (JCloudsones are currently 60sec for both, while Apache HC ones are -1, so infinite). It also prevented to override those default/infinite timeout settings with JClouds ones.
2019-10-23 11:45:32 +02:00
Ignasi Barrera 71c7f528b4 Upgrade to 2.2.1-SNAPSHOT 2019-10-21 10:41:48 +02:00
Ignasi Barrera fb8db4937f Apache jclouds 2.2.0-rc1 release 2019-10-13 10:51:16 +02:00
Ignasi Barrera a2cbdd3385 Etag is not supported in OSX 2019-10-13 10:32:50 +02:00
Xavier BOURGOUIN c445547ea8 Fix null content-length header on HEAD requests
https://issues.apache.org/jira/projects/JCLOUDS/issues/JCLOUDS-1505
2019-10-10 09:59:38 -07:00
Andrew Phillips 6ef0937c67 Update README copyright dates 2019-09-19 19:19:16 -04:00
Simone Locci fa1962b223 Add OS disk type in template options (#46)
* Add OS disk type in template options

* Fix review and code style
2019-09-18 16:34:34 +02:00
Simone Locci 6a076fe0c8 Add azure disk sku (#45)
* Add azure disk SKU

* Add tests

* Fix review adding a disk type enum

* Fix review using storage account type enum
2019-09-17 17:48:32 +02:00
Colm O hEigeartaigh 7b1efdc307 JCLOUDS-1512 - Use SecureRandom in Sha512Crypt 2019-08-22 09:14:30 -07:00
Roded Bahat dfeafcc6fb JCLOUDS-1510: ParseSax use charset constant for all String creations
This commit prevents the convertStreamToStringAndParse method from
failing XML validation on environments in which the default charset is
not compatible with UTF-8.
2019-08-19 04:59:51 -07:00
Simone Locci fcf72e5ea5 Add tag support to azure disks 2019-08-09 12:24:49 +02:00
Roded Bahat a248697c06 JCLOUDS-1509: read AWS response data with the UTF-8 charset explicitly
AWS response data is encoded in UTF-8. Creating a String from said data
using the JVM's default charset results in incorrect encoding on
environments in which the JVM's default charset is not UTF-8.

https://issues.apache.org/jira/browse/JCLOUDS-1509
2019-08-08 15:32:25 +03:00
Olaf Flebbe 51da020d2e JCLOUDS-1500: Update gson to 2.8.5 (#29) 2019-07-03 09:11:26 +02:00
Sergi Castro 5fd4d7a1eb Add new Azure Dubai region (#40) 2019-07-01 23:16:37 +02:00
Ignasi Barrera 753bd8d781
Add OSGi exports to jclouds-gson (#38)
* Add OSGi exports to jclouds-gson

* Proper generation of OSGi directives in the manifest file

* Fixes

* Remove commented bits
2019-06-21 10:38:36 +02:00
Ignasi Barrera c6dc6951af
Do not tie duplicate class finder to a specific version of jclouds 2019-06-20 11:25:12 +02:00
Ignasi Barrera a11e3f2ce8
Plugin config in pluginManagement for proper reuse in child projects (#39) 2019-06-18 12:08:59 +02:00
Ignasi Barrera b8606a10dd
JCLOUDS-1166: Relocate the gson internal packge to be able to keep using it (#35)
* JCLOUDS-1166: Relocate the gson internal packge to be able to keep using it

* Fixes

* Fix import order and shaded jar

* More fixes

* Proper dependency configuration

* Fix typos

* Bring back duplicate exclusions
2019-06-17 17:43:29 +02:00
Ignasi Barrera cd7b3b9b36
Proper exception to catch for methods with unchecked exception 2019-06-17 09:59:17 +02:00
Ignasi Barrera 215df85105
Fix type of location coordinates (#36) 2019-06-15 09:01:13 +02:00
Aliaksandra Kharushka f5806d0488 JCLOUDS-1428: Support for SAS token based Authentication for Azure Blob Storage
removed ACL check for SAS Auth AzureBlobs
2019-05-27 22:05:12 +09:00
Daniel Estévez 8778a3d254 Implements listAll operation for VirtualNetworkAPI (#33)
* Implements listAll operation for VirtualNetworkAPI

Fixes test with proper method call

* Fixes resourcegroup param is now nullable
2019-05-22 09:12:58 +02:00
Andrew Gaul a70ca2d25c Convert a handful of HTTP URLs to HTTPS 2019-05-21 20:52:22 +09:00
Daniel Estévez 32c773279f Implements listAll method for LoadBalancersAPI (#32) 2019-05-21 11:49:11 +02:00
Daniel Estévez e0be4d7b27 Implements listAll method in NetworkSecurityGroupApi (#31)
* Implements listAll method in NetworkSecurityGroupApi

* Adds Mock and Live tests for new method
2019-05-21 11:48:07 +02:00
Daniel Estévez f2e955dadf Adds methods listAll and listByLocation to VirtualMachineAPI (#21)
* Adds methods listAll and listByLocation to VirtualMachineAPI

Adds Mock tests fixes

* Minor comments

* Overrides test to avoid case sensitive comparation

* Adds comment to justify overriding base test method

* Enables list by location to improve performance in listNodes abstraction

* Returns all available VMs if no regions are specified
2019-05-17 09:41:38 +02:00
Daniel Estévez e1c64244cb Checks provisioning state in Rule resource instead of Group (#30)
* Checks provisioning state in Rule resource instead of Group

* comments by @nacx to proper check and delete rules

* Fixes log message deleting rule
2019-05-17 08:59:01 +02:00
Sergi Castro 3e855c26be
Add ARM architecture to ec2 image and the related instance types 2019-05-14 09:00:31 +02:00
Olaf Flebbe 92a3c68838 JCLOUDS-1497: Fix checkstyle-suppressions for jcloud-labs (#27)
* Fix NoWhitespaceBefore Checkstyle Violation

* checkstyle updates: remove suppressionsfilter from checkstyle.xml

* suppressions now done in maven-checkstyle-plugin
2019-05-07 11:49:54 +02:00
Olaf Flebbe f1d4f900bf JCLOUDS-1499: Disable sonatype snapshot repository for plugins (#28) 2019-05-07 10:21:03 +02:00
Dori Polotsky 1c57d07f70 JCLOUDS-847: Poor upload performance for putBlob
This change improves the performance of writing to sockets with the
default Java URL connection HTTP client, by enlarging the buffer used
for socket writes from an implicit hard-coded 4KB / 8KB buffer to a
configurable 32KB buffer.

The buffer size is now controlled by the following property with the
following default value:

jclouds.output-socket-buffer-size: 32768

The implementation is based on a variant of ByteStreams.copy (written as
ByteStreams2.copy) which accepts the buffer size as an argument, unlike
the original Guava code that uses a hard-coded size.

The change was done directly within the loop that copies the input
stream to the output stream, and not by wrapping a BufferedOutputStream
around the existing output stream, in order to avoid copying the payload
twice.

On some platforms this change can improve both the putBlob throughput
and the total CPU consumption.
2019-04-27 15:16:08 +09:00
Olaf Flebbe d51d6e44bc JCLOUDS-1496: Update maven-compiler-plugin for increased JDK compatibility (#25)
* JCLOUDS-1496: Update maven-compiler-plugin for increased JDK compatibility

* increase maven-compiler-plugin version

* A space change to trigger jenkins again

* Another space change to trigger jenkins again
2019-04-24 16:12:45 +02:00
Olaf Flebbe 2fbf10c9c9 JCLOUDS-1495: maven plugins are not correctly referred to (#24) 2019-04-10 19:54:09 -07:00
Andrew Gaul a1c9ce8217 JCLOUDS-1494: Add S3 Deep Archive tier
Also test Glacier tier now that Amazon allows creating objects with
this storage class.
2019-04-06 18:46:14 +09:00
Dani Estevez c2670079fa Adds new Azure regions for South Africa 2019-03-21 11:37:50 -04:00
d065488 ba5a2418a5 JCLOUDS-1428 - Support for SAS token based Authentication for Azure Blob Storage - removed sp and se tokens from the check 2019-03-19 22:28:41 +09:00
Dani Estevez 6fda1736ad Adds EU North 1 region (Stockholm) 2019-03-15 12:00:20 -04:00
Dani Estevez 1c9322e41c Adds China North West Region (Ningxia) 2019-03-15 12:00:20 -04:00