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

Cannot delete Project Licenses if there is only one entry #366

Open
ashrafmr opened this issue Mar 16, 2023 · 1 comment
Open

Cannot delete Project Licenses if there is only one entry #366

ashrafmr opened this issue Mar 16, 2023 · 1 comment
Labels

Comments

@ashrafmr
Copy link

Nothing happens at all when clicking the 'Delete' button.
Tried action on Firefox and Edge browsers.

image

A POST request is sent, https://*****/api/settings/set
Body:
key=licensecheck.project-license-set

Response:
{"errors":[{"msg":"Either \u0027value\u0027, \u0027values\u0027 or \u0027fieldValues\u0027 must be provided"}]}

XHRPOSThttps://*****/api/settings/set
[HTTP/1.1 400 158ms]

Uncaught (in promise)
Response { type: "basic", url: "https://*****/api/settings/set", redirected: false, status: 400, ok: false, statusText: "", headers: Headers(7), body: ReadableStream, bodyUsed: false }

@derkoe
Copy link
Contributor

derkoe commented Jul 16, 2023

I see this only happens if there is only one project license left - this last one cannot be deleted because SonarQube does not accept the empty value.

@derkoe derkoe added the bug label Jul 16, 2023
@derkoe derkoe changed the title Cannot delete Project Licenses Cannot delete Project Licenses if there is only one entry Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants