From a171bbc96dc4c44734d6c14265347f9db791a0cb Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Thu, 14 Jan 2016 14:06:04 +0100 Subject: [PATCH] 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. --- setup/db/db/schema-471to480.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/db/db/schema-471to480.sql b/setup/db/db/schema-471to480.sql index 58cca386bf0..b79af7f544d 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);