Revision ea94470a src/gr/grnet/pithos/web/client/FilePropertiesDialog.java

b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
52 52
import com.google.gwt.event.dom.client.ClickEvent;
53 53
import com.google.gwt.event.dom.client.ClickHandler;
54 54
import com.google.gwt.http.client.Response;
55
import com.google.gwt.http.client.URL;
55 56
import com.google.gwt.i18n.client.DateTimeFormat;
56 57
import com.google.gwt.resources.client.ImageResource;
57 58
import com.google.gwt.user.client.Window;
......
447 448
				}
448 449
            };
449 450
            updateFile.setHeader("X-Auth-Token", app.getToken());
451
            for (String t : file.getTags()) {
452
        		updateFile.setHeader("X-Object-Meta-" + URL.encodePathSegment(t.trim()), "~");
453
            }
450 454
            if (newTags != null)
451 455
                for (String t : newTags)
452 456
                	if (t.length() > 0)
453
                		updateFile.setHeader("X-Object-Meta-" + t.trim(), "true");
454
                for (String t : file.getTags())
455
            		updateFile.setHeader("X-Object-Meta-" + t.trim(), "~");
457
                		updateFile.setHeader("X-Object-Meta-" + URL.encodePathSegment(t.trim()), "true");
456 458
            if (published != null)
457 459
                updateFile.setHeader("X-Object-Public", published.toString());
458 460
            if (newPermissions != null) {

Also available in: Unified diff