Object Keys
What is an object key?
The object key
(or key name) uniquely identifies the object in an OORT Storage bucket. Object metadata
is a set of name-value pairs.
When you create an object, you specify the key name, which uniquely identifies the object in the bucket. For example, on the OORT console, when you highlight a bucket, a list of objects in your bucket appears. These names are the object keys
. The object key name
is a sequence of Unicode characters with UTF-8 encoding of up to 1,024 bytes long.
Object naming rules
You can use any UTF-8 character in an object key name. However, using certain characters in key names can cause problems with some applications and protocols. The following guidelines help you maximize compliance with DNS, web-safe characters, XML parsers, and other APIs.
Safe characters
The following character sets are generally safe for use in key names.
Alphanumeric characters |
|
Special characters |
|
Characters that might require special handling
The following characters in a key name might require additional code handling and likely need to be URL encoded or referenced as HEX. Some of these are non-printable characters that your browser might not handle, which also requires special handling:
Ampersand ("&")
Dollar ("$")
ASCII character ranges 00–1F hex (0–31 decimal) and 7F (127 decimal)
'At' symbol ("@")
Equals ("=")
Semicolon (";")
Plus ("+")
Space – Significant sequences of spaces might be lost in some uses (especially multiple spaces)
Comma (",")
Caret ("^")
Left curly brace ("{")
Right curly brace ("}")
Percent character ("%")
Grave accent / back tick ("`")
Right square bracket ("]")
Left square bracket ("[")
Tilde ("~")
'Pound' character ("#")
Characters to avoid
Avoid the following characters in a key name because of significant special handling for consistency across all applications.
Forward slash ("/")
Colon (":")
Backslash ("\")
Question mark ("?")
Vertical bar / pipe ("|")
'Greater Than' symbol (">")
'Less Than' symbol ("<")
Quotation marks (""")
Asterisk ("*")
Non-printable ASCII characters (128–255 decimal characters)
XML related object key constraints
As specified by the XML standard on end-of-line handling, all XML text is normalized such that single carriage returns (ASCII code 13) and carriage returns immediately followed by a line feed (ASCII code 10) are replaced by a single line feed character. To ensure the correct parsing of object keys in XML requests, carriage returns and other special characters must be replaced with their equivalent XML entity code when they are inserted within XML tags. The following is a list of such special characters and their equivalent entity codes:
' as
'
” as
"
& as
&
< as
<
> as
>
\r as
or
\n as
or

The following example illustrates the use of an XML entity code as a substitution for a carriage return. This DeleteObjects
request deletes an object with the key
parameter: /some/prefix/objectwith\rcarriagereturn
(where the \r is the carriage return).
Last updated