Revision 5f91f72d src/gr/grnet/pithos/web/client/DeleteFileDialog.java

b/src/gr/grnet/pithos/web/client/DeleteFileDialog.java
50 50
import com.google.gwt.event.dom.client.ClickHandler;
51 51
import com.google.gwt.event.dom.client.KeyCodes;
52 52
import com.google.gwt.http.client.Response;
53
import com.google.gwt.http.client.URL;
53 54
import com.google.gwt.user.client.Command;
54 55
import com.google.gwt.user.client.Event.NativePreviewEvent;
55 56
import com.google.gwt.user.client.ui.AbstractImagePrototype;
......
135 136
        if (iter.hasNext()) {
136 137
            File f = iter.next();
137 138
            String path = f.getUri();
138
            DeleteRequest deleteFile = new DeleteRequest(app.getApiPath(), f.getOwner(), path) {
139
            DeleteRequest deleteFile = new DeleteRequest(app.getApiPath(), f.getOwner(), URL.encode(path)) {
139 140
                @Override
140 141
                public void onSuccess(Resource result) {
141 142
                    deleteFile(iter);

Also available in: Unified diff