You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2016/01/16 19:37:13 UTC

[1/2] git commit: updated refs/heads/master to f79b3e1

Repository: cloudstack
Updated Branches:
  refs/heads/master b1034ed62 -> f79b3e1c2


CLOUDSTACK-9238: Increase URL fields to 2048 charachters from 255

255 characters is to small for various URLs like S3 pre-signed URLs.

This causes one or more characters to be chopped of the end of the URL
and this renders them useless.

Internally in the code all URLs are passed as Strings and they are not
sized limited. This was purely in the database.

Other URL fields in the database were already 2048 characters.

This limit was introduced in the 4.1 to 4.2 upgrade when Object storage
like S3 and Swift was introduced in CloudStack for Secondary Storage.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a171bbc9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a171bbc9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a171bbc9

Branch: refs/heads/master
Commit: a171bbc96dc4c44734d6c14265347f9db791a0cb
Parents: b1034ed
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Thu Jan 14 14:06:04 2016 +0100
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Thu Jan 14 14:06:04 2016 +0100

----------------------------------------------------------------------
 setup/db/db/schema-471to480.sql | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a171bbc9/setup/db/db/schema-471to480.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-471to480.sql b/setup/db/db/schema-471to480.sql
index 58cca38..b79af7f 100644
--- a/setup/db/db/schema-471to480.sql
+++ b/setup/db/db/schema-471to480.sql
@@ -20,3 +20,10 @@
 --;
 
 ALTER TABLE `cloud`.`nicira_nvp_router_map` DROP INDEX `logicalrouter_uuid` ;
+
+ALTER TABLE `cloud`.`volume_host_ref` MODIFY COLUMN `url` varchar(2048);
+ALTER TABLE `cloud`.`object_datastore_ref` MODIFY COLUMN `url` varchar(2048);
+ALTER TABLE `cloud`.`image_store` MODIFY COLUMN `url` varchar(2048);
+ALTER TABLE `cloud`.`template_store_ref` MODIFY COLUMN `url` varchar(2048);
+ALTER TABLE `cloud`.`volume_store_ref` MODIFY COLUMN `url` varchar(2048);
+ALTER TABLE `cloud`.`volume_store_ref` MODIFY COLUMN `download_url` varchar(2048);


[2/2] git commit: updated refs/heads/master to f79b3e1

Posted by re...@apache.org.
Merge pull request #1341 from wido/CLOUDSTACK-9238

CLOUDSTACK-9238: Increase URL fields to 2048 charachters from 255255 characters is to small for various URLs like S3 pre-signed URLs.

This causes one or more characters to be chopped of the end of the URL
and this renders them useless.

Internally in the code all URLs are passed as Strings and they are not
sized limited. This was purely in the database.

Other URL fields in the database were already 2048 characters.

This limit was introduced in the 4.1 to 4.2 upgrade when Object storage
like S3 and Swift was introduced in CloudStack for Secondary Storage.

* pr/1341:
  CLOUDSTACK-9238: Increase URL fields to 2048 charachters from 255

Signed-off-by: Remi Bergsma <gi...@remi.nl>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f79b3e1c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f79b3e1c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f79b3e1c

Branch: refs/heads/master
Commit: f79b3e1c2ad747d2aea6530c6672737915af13ab
Parents: b1034ed a171bbc
Author: Remi Bergsma <gi...@remi.nl>
Authored: Sat Jan 16 19:36:47 2016 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Sat Jan 16 19:36:47 2016 +0100

----------------------------------------------------------------------
 setup/db/db/schema-471to480.sql | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------