← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1336603] [NEW] swift object url encoding issue when name has spaces

 

Public bug reported:

Two issues:

(1) Unable to 'View Details' for object with spaces in its name
I create an empty object with name: 'a b c'. In the table it shows up the same 'a b c', and in the 'Edit Object', it is encoded: a%20b%20c.

However, if I try to 'View Details' for this item, it gives me an error:

Recoverable error: Object HEAD failed:
http://<whatever>/v1/AUTH_d7fbc9508550489887f6f28e59086661/test_container/a%2520b%2520c
404 Not Found

(2) Inconsistent object name whether it is created new or cloned
If I create an object called 'abc'.  Clone it (becomes 'abc copy').   Clone the new item (becomes 
abc%20copy copy).  Clone the new item again (becomes abc%2520copy%20copy copy).  

The table will look like this:
abc	 
abc copy	 
abc%20copy copy	 
abc%2520copy%20copy copy

However, this is different from when I did 'a b c.'  I expect the table
*not* to show the encoded spaces.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1336603

Title:
  swift object url encoding issue when name has spaces

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Two issues:

  (1) Unable to 'View Details' for object with spaces in its name
  I create an empty object with name: 'a b c'. In the table it shows up the same 'a b c', and in the 'Edit Object', it is encoded: a%20b%20c.

  However, if I try to 'View Details' for this item, it gives me an
  error:

  Recoverable error: Object HEAD failed:
  http://<whatever>/v1/AUTH_d7fbc9508550489887f6f28e59086661/test_container/a%2520b%2520c
  404 Not Found

  (2) Inconsistent object name whether it is created new or cloned
  If I create an object called 'abc'.  Clone it (becomes 'abc copy').   Clone the new item (becomes 
  abc%20copy copy).  Clone the new item again (becomes abc%2520copy%20copy copy).  

  The table will look like this:
  abc	 
  abc copy	 
  abc%20copy copy	 
  abc%2520copy%20copy copy

  However, this is different from when I did 'a b c.'  I expect the
  table *not* to show the encoded spaces.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1336603/+subscriptions


Follow ups

References