# HG changeset patch # User Tim Englich # Date 1253007837 0 # Node ID 9935e1c928de56a61aae69f8f40c8e073559e0b3 # Parent 251e8904d6c283195372d8d017329db259ec3a12 Bug Fixed: Comparation for outdated Artifacts was Wrong. artifacts/trunk@86 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 251e8904d6c2 -r 9935e1c928de Changelog --- a/Changelog Mon Sep 14 13:36:35 2009 +0000 +++ b/Changelog Tue Sep 15 09:43:57 2009 +0000 @@ -1,3 +1,10 @@ +2009-09-15 Tim Englich + + * src/main/java/de/intevation/artifactdatabase/Backend.java: + Bug Fixed: Comparation for outdated Artifacts was Wrong. + * src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java (represent): + Warn-Logging Integrated for Exception analysys. + 2009-09-14 Tim Englich * src/main/java/de/intevation/artifacts/ArtifactFactory.java Edited: diff -r 251e8904d6c2 -r 9935e1c928de artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Mon Sep 14 13:36:35 2009 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Tue Sep 15 09:43:57 2009 +0000 @@ -129,7 +129,7 @@ if (!load_result.wasNull()) { // real time to life long last_access = load_result.getTimestamp(2).getTime(); - if (last_access + ttl > System.currentTimeMillis()) { + if (last_access + ttl < System.currentTimeMillis()) { artifactOutdated(id); return null; } diff -r 251e8904d6c2 -r 9935e1c928de artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java Mon Sep 14 13:36:35 2009 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java Tue Sep 15 09:43:57 2009 +0000 @@ -67,6 +67,7 @@ db.describe(identifier)); } catch (ArtifactDatabaseException adbe) { + logger.warn(adbe,adbe); Response response = getResponse(); response.setStatus( Status.CLIENT_ERROR_NOT_FOUND, adbe.getMessage());