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

Retrieving password protected missions does not filter correctly #106

Open
jakobbuis opened this issue Jan 5, 2025 · 0 comments
Open

Retrieving password protected missions does not filter correctly #106

jakobbuis opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jakobbuis
Copy link

jakobbuis commented Jan 5, 2025

Steps to reproduce

  1. Create two missions A and B in OTS dashboard. Set a password on mission A.
  2. Make a GET request to https://example.com:8443/Marti/api/missions?passwordProtected=true
  3. Make a GET request to https://example.com:8443/Marti/api/missions?passwordProtected=false
  4. Make a GET request to https://example.com:8443/Marti/api/missions

Expected

I expect the first request to return mission A, the second request to return mission B, and the third to either throw an error like "required parameter missing", or alternatively return just mission B.

Happened

The first requests returns missions A and B, the second one too.

The third request returns no missions:

{
	"data": [],
	"nodeId": "7wlp7feuglr9ydvm7zxlx8342sknux8g",
	"type": "Mission",
	"version": 3
}
@brian7704 brian7704 added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants