Revision b964f3a7
b/gss/src/gr/ebs/gss/client/SearchResults.java | ||
---|---|---|
176 | 176 |
if(getSelectedFiles().size() == 1){ |
177 | 177 |
FileResource file = getSelectedFiles().get(0); |
178 | 178 |
String dateString = AbstractRestCommand.getDate(); |
179 |
String resource = URL.decodeComponent(file.getPath().substring(GSS.GSS_REST_PATH.length()+file.getOwner().length()+6,file.getPath().length()-file.getName().length()));
|
|
179 |
String resource = file.getPath().substring(GSS.GSS_REST_PATH.length()-1,file.getPath().length());
|
|
180 | 180 |
String sig = GSS.get().getCurrentUserResource().getUsername()+" "+AbstractRestCommand.calculateSig("GET", dateString, resource, AbstractRestCommand.base64decode(GSS.get().getToken())); |
181 | 181 |
Window.open(file.getPath() + "?Authorization=" + URL.encodeComponent(sig) + "&Date="+URL.encodeComponent(dateString), "_blank", ""); |
182 | 182 |
} |
Also available in: Unified diff