[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15103313#comment-15103313
 ] 

ASF subversion and git services commented on CLOUDSTACK-9238:
-------------------------------------------------------------

Commit f79b3e1c2ad747d2aea6530c6672737915af13ab in cloudstack's branch 
refs/heads/master from [~remibergsma]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=f79b3e1 ]

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 <git...@remi.nl>


> URL fields in database are to small. Cause malformed URLs
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-9238
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9238
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.6.0, 4.7.0, 4.8.0
>            Reporter: Wido den Hollander
>            Assignee: Wido den Hollander
>              Labels: s3, template, templates, url, urls
>             Fix For: 4.8.0
>
>
> In for example the 'volume_store_ref' table the 'download_url' field is a 
> VARCHAR(255).
> This is to short for URLs. Same goes for the 'object_datastore_ref' table and 
> the 'url' field.
> With pre-signed S3 URLs this will cause issues.
> The fix would be to change the database fields to a VARCHAR(2048). No 
> code-change is required.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to