Revision 555e8e59 gss/src/gr/ebs/gss/client/FileMenu.java
b/gss/src/gr/ebs/gss/client/FileMenu.java | ||
---|---|---|
119 | 119 |
if (selection != null && selection instanceof FileResource) { |
120 | 120 |
FileResource file = (FileResource) selection; |
121 | 121 |
String dateString = AbstractRestCommand.getDate(); |
122 |
String resource = file.getPath().substring(GSS.GSS_REST_PATH.length()-1,file.getPath().length());
|
|
122 |
String resource = file.getUri().substring(GSS.GSS_REST_PATH.length()-1,file.getUri().length());
|
|
123 | 123 |
String sig = GSS.get().getCurrentUserResource().getUsername()+" "+AbstractRestCommand.calculateSig("GET", dateString, resource, AbstractRestCommand.base64decode(GSS.get().getToken())); |
124 |
link[0] = "<a class='hidden-link' href='" + file.getPath() + "?Authorization=" + URL.encodeComponent(sig) + "&Date="+URL.encodeComponent(dateString) + "' target='_blank'>";
|
|
124 |
link[0] = "<a class='hidden-link' href='" + file.getUri() + "?Authorization=" + URL.encodeComponent(sig) + "&Date="+URL.encodeComponent(dateString) + "' target='_blank'>";
|
|
125 | 125 |
link[1] = "</a>"; |
126 | 126 |
} |
127 | 127 |
} |
Also available in: Unified diff