Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating alert condition broken #891

Closed
bernd opened this issue Jan 16, 2015 · 1 comment
Closed

Creating alert condition broken #891

bernd opened this issue Jan 16, 2015 · 1 comment
Assignees
Labels
bug
Milestone

Comments

@bernd
Copy link
Member

@bernd bernd commented Jan 16, 2015

Creating an alert condition is broken.

2015-01-16 18:23:57,990 ERROR: org.graylog2.plugin.rest.AnyExceptionClassMapper - Unhandled exception in REST resource
java.lang.IllegalArgumentException: The template variable 'conditionId' has no value
    at org.glassfish.jersey.uri.UriTemplate$1ValuesFromArrayStrategy.valueFor(UriTemplate.java:1017)
    at org.glassfish.jersey.uri.UriTemplate.resolveTemplate(UriTemplate.java:706)
    at org.glassfish.jersey.uri.UriTemplate.createUriComponent(UriTemplate.java:1027)
    at org.glassfish.jersey.uri.UriTemplate.createURIWithStringValues(UriTemplate.java:961)
    at org.glassfish.jersey.uri.UriTemplate.createURIWithStringValues(UriTemplate.java:906)
    at org.glassfish.jersey.uri.UriTemplate.createURI(UriTemplate.java:871)
    at org.glassfish.jersey.uri.internal.JerseyUriBuilder._build(JerseyUriBuilder.java:906)
    at org.glassfish.jersey.uri.internal.JerseyUriBuilder.build(JerseyUriBuilder.java:823)
    at org.graylog2.rest.resources.streams.alerts.StreamAlertConditionResource.create(StreamAlertConditionResource.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

The alert condition will be created, but the generation of the url is broken.

@bernd bernd added the bug label Jan 16, 2015
@bernd bernd self-assigned this Jan 16, 2015
@bernd bernd added this to the 1.0.0 milestone Jan 16, 2015
bernd added a commit that referenced this issue Jan 16, 2015
Fixes error after creating alert condition.

Fixes #891.
@bernd
Copy link
Member Author

@bernd bernd commented Jan 16, 2015

Fixed in acacb43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant