Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Cannot add same query to pack more than once (results in 5xx) #2202

Open
nyanshak opened this issue Mar 4, 2020 · 1 comment
Open

Cannot add same query to pack more than once (results in 5xx) #2202

nyanshak opened this issue Mar 4, 2020 · 1 comment
Labels

Comments

@nyanshak
Copy link
Contributor

nyanshak commented Mar 4, 2020

What version of fleet are you using (fleet version --full)?

2.4.0

What operating system are you using?

Docker image: kolide/fleet:2.4.0

What did you do?

  1. create query 'my_awesome_query'
  2. create pack 'my_pack'
  3. (through the UI) add 'my_awesome_query' to pack, with snapshot false and interval 3600
  4. (through the UI) add 'my_awesome_query' to pack again, with snapshot true, and interval 43200

What did you expect to see?

Query added to pack twice with different schedules / intervals.

Alternately: 400 error page explaining that adding a query to a pack more than once is not supported. I don't think a 5xx response is correct.

What did you see instead?

5xx error page

@zwass zwass added the Bug label Mar 4, 2020
@zwass
Copy link
Contributor

zwass commented Mar 4, 2020

Sounds like a bug.

As a workaround, I believe you can do this if you create the pack with fleetctl.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants