Revision ea94470a src/gr/grnet/pithos/web/client/foldertree/File.java
b/src/gr/grnet/pithos/web/client/foldertree/File.java | ||
---|---|---|
43 | 43 |
|
44 | 44 |
import com.google.gwt.http.client.Header; |
45 | 45 |
import com.google.gwt.http.client.Response; |
46 |
import com.google.gwt.http.client.URL; |
|
46 | 47 |
import com.google.gwt.i18n.client.NumberFormat; |
47 | 48 |
import com.google.gwt.json.client.JSONObject; |
48 | 49 |
|
... | ... | |
167 | 168 |
|
168 | 169 |
for (String key : o.keySet()) |
169 | 170 |
if (key.startsWith("x_object_meta_")) |
170 |
tags.add(key.substring("x_object_meta_".length()).trim().toLowerCase());
|
|
171 |
tags.add(URL.decodePathSegment(key.substring("x_object_meta_".length())).trim().toLowerCase());
|
|
171 | 172 |
|
172 | 173 |
|
173 | 174 |
} |
... | ... | |
223 | 224 |
for (Header h : response.getHeaders()) { |
224 | 225 |
String header = h.getName(); |
225 | 226 |
if (header.startsWith("X-Object-Meta-")) |
226 |
tags.add(header.substring("X-Object-Meta-".length()).trim().toLowerCase());
|
|
227 |
tags.add(URL.decodePathSegment(header.substring("X-Object-Meta-".length())).trim().toLowerCase());
|
|
227 | 228 |
else if (header.equals("X-Object-Sharing")) { |
228 | 229 |
String rawPermissions = h.getValue(); |
229 | 230 |
parsePermissions(rawPermissions); |
Also available in: Unified diff