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

Search bar: Keyword time range time zone not set #18809

Closed
grotlue opened this issue Mar 26, 2024 · 1 comment · Fixed by #18879
Closed

Search bar: Keyword time range time zone not set #18809

grotlue opened this issue Mar 26, 2024 · 1 comment · Fixed by #18879

Comments

@grotlue
Copy link
Contributor

grotlue commented Mar 26, 2024

Expected Behavior

When setting the keyword time range for the first time the time zone should be set accordingly

Current Behavior

The first time updating the keyboard time range the /fields and /validate calls fail as the timezone is not set.
The second time it is set.

Screenshot 2024-03-26 at 15 56 54

Request body:

{"timerange":{"type":"keyword","timezone":"","keyword":"Last five minutes"}}

Response:

{
    "type": "ApiError",
    "message": "Cannot construct instance of `org.graylog2.plugin.indexer.searches.timeranges.KeywordRange`, problem: Invalid timeZone: \n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 75] (through reference chain: org.graylog.plugins.views.search.rest.AutoValue_FieldTypesForStreamsRequest$Builder[\"timerange\"])"
}

Possible Solution

Steps to Reproduce (for bugs)

  1. visit /search
  2. Click on time range button
  3. Select Keyword
  4. Click Update time range

Context

Your Environment

  • Graylog Version:
  • Java Version:
  • OpenSearch Version:
  • MongoDB Version:
  • Operating System:
  • Browser version:
@kmerz
Copy link
Member

kmerz commented Mar 27, 2024

In order to reproduce it, it is important to not change the keyword in the keyword tab in the timerange picker. What is interesting too, that there is no preview at this point.

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