[PEAR-BUG] Bug #18654 [Opn]: Underscores in bucket names

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18654&edit=1

 ID:               18654
 Updated by:       [email protected]
 Reported By:      josh dot adell at gmail dot com
 Summary:          Underscores in bucket names
 Status:           Open
 Type:             Bug
 Package:          Services_Amazon_S3
 Operating System: Linux
 Package Version:  0.3.3
 PHP Version:      5.3.6
 Roadmap Versions: 
 New Comment:

Thanks for the patch. That's one crazy regexp. I think I will take your
patch and rewrite the expression using extended 
syntax so it can be documented a bit better.


Previous Comments:
------------------------------------------------------------------------

[2011-07-06 19:27:38] jadell

Added #patch
bug:18654;patch:underscore_bucket_name;revision:1309976858;.

------------------------------------------------------------------------

[2011-07-06 19:18:13] jadell

Description:
------------
If the bucket has an underscore in the name (ex: 
my_test_bucket) and using virtual host request style, getting 
the URL fails with the exception:

Invalid bucket name when requestStyle is 
REQUEST_STYLE_VIRTUAL_HOST: my_test_bucket in 
/usr/share/php/Services/Amazon/S3.php on line 489

It is possible to browse to the bucket using 
http://my_test_bucket.s3.amazonaws.com.

The regex on line 208 in Bucket.php should be amended to 
include underscores as valid caharacters.

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18654&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.