Project

General

Profile

Actions

Bug #7625

closed

FilterForms throw error when 'no preference' is chosen

Added by Jakub Judiny about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - GUI
Target version:
Start date:
01/31/2023
Due date:
% Done:

0%

Estimated time:
To be discussed:

Description

In basic type of FilterForms, when <<no preference>> is chosen in detectors/categories field, the whole form throws:

pynspect.gparser.PynspectGrammarSyntaxError: Syntax error at 'LexToken(RBRACK,']',1,15)

because the parser wants to interpret the "" string as a detector/category.

Actions #1

Updated by Jakub Judiny about 1 year ago

  • Status changed from In Progress to Resolved
Actions #2

Updated by Rajmund Hruška about 1 year ago

  • Category set to Development - GUI
  • Status changed from Resolved to In Review
  • Target version changed from Backlog to 2.11
  • To be discussed deleted (Yes)

Merged into devel and deployed on mentat-alt.

Actions #3

Updated by Rajmund Hruška about 1 year ago

  • Status changed from In Review to In Progress

Based on what Pavel Kácha said on today's meeting, I tried sending the POST request by myself. If 'detectors' is specified in the parameters, the filter is created and when I try to edit the filter, I get Internal Server Error. I believe it will be the same for 'categories'. So the issue is only solved in the GUI.

...group=5&name=TEST+FILTER+%28TO+BE+DELETED%29&description=test+filter&type=basic&filter=&detectors=&sources=&enabled=False&valid_from=&valid_to=&...

Actions #4

Updated by Jakub Judiny about 1 year ago

  • Status changed from In Progress to Resolved
Actions #5

Updated by Rajmund Hruška about 1 year ago

  • Status changed from Resolved to In Review
Actions #6

Updated by Rajmund Hruška about 1 year ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF