summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorPiotr Janik2011-07-07 07:17:54 (EDT)
committer Szymon Brandys2011-07-07 07:17:54 (EDT)
commitc94a97cd89bbb32ca5cd5965281da7470d2c856a (patch)
treebd431a1699fb4d47e6867c45d682382ea393532f
parent8a9f93d54142f31d7aeb849d0e301492a1e7b0e2 (diff)
downloadorg.eclipse.orion.server-c94a97cd89bbb32ca5cd5965281da7470d2c856a.zip
org.eclipse.orion.server-c94a97cd89bbb32ca5cd5965281da7470d2c856a.tar.gz
org.eclipse.orion.server-c94a97cd89bbb32ca5cd5965281da7470d2c856a.tar.bz2
bug 351270 - [file][server] testETagHandling - java.lang.AssertionError:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351270
-rw-r--r--bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericFileHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericFileHandler.java b/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericFileHandler.java
index 70dca31..ca4cc23 100644
--- a/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericFileHandler.java
+++ b/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/file/GenericFileHandler.java
@@ -65,6 +65,6 @@ class GenericFileHandler extends ServletResourceHandler<IFileStore> {
* Returns an ETag calculated using SHA-1 hash function.
*/
public static String generateFileETag(IFileStore file) throws NoSuchAlgorithmException, IOException, CoreException {
- return HashUtilities.getHash(Long.toString(file.fetchInfo().getLastModified()), HashUtilities.SHA_1);
+ return HashUtilities.getHash(file.openInputStream(EFS.NONE, null), true, HashUtilities.SHA_1);
}
} \ No newline at end of file