Skip to content

Commit

Permalink
do not validate the lastSeen property as being in the past
Browse files Browse the repository at this point in the history
this breaks due to a race condition creating the timestamp and validating the field. if both happens within the same millisecond it's not "past"

fix #2002
fix graylog-labs/graylog2-web-interface#1726
  • Loading branch information
kroepke committed Mar 31, 2016
1 parent 1f2eda7 commit 3a9f015
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import javax.validation.constraints.Size;

public interface Collector {
Expand All @@ -38,7 +37,6 @@ public interface Collector {
String getCollectorVersion();

@NotNull
@Past
DateTime getLastSeen();

@NotNull
Expand Down

0 comments on commit 3a9f015

Please sign in to comment.