if(getSelectedFiles().size() == 1){\r
FileResource file = getSelectedFiles().get(0);\r
String dateString = AbstractRestCommand.getDate();\r
- String resource = file.getPath().substring(GSS.GSS_REST_PATH.length()-1,file.getPath().length());\r
+ String resource = URL.decodeComponent(file.getPath().substring(GSS.GSS_REST_PATH.length()+file.getOwner().length()+6,file.getPath().length()-file.getName().length()));\r
String sig = GSS.get().getCurrentUserResource().getUsername()+" "+AbstractRestCommand.calculateSig("GET", dateString, resource, AbstractRestCommand.base64decode(GSS.get().getToken()));\r
Window.open(file.getPath() + "?Authorization=" + URL.encodeComponent(sig) + "&Date="+URL.encodeComponent(dateString), "_blank", "");\r
}\r