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

Rest interface can not handle licenses which do not exist in the database #534

Open
maxhbr opened this issue May 15, 2019 · 1 comment
Open
Labels
bug Something isn't working REST
Milestone

Comments

@maxhbr
Copy link
Contributor

maxhbr commented May 15, 2019

There are ways to link a license to a release, without actually adding the license to the DB. (e.g. via REST or the import from SPDX attachment)

If one then requests the release via rest one gets a response of the following pattern:

{
  "name" : "Angular",
  "version" : "2.3.0",
[...]
  "_embedded" : {
    "sw360:licenses" : [ null, null ],
[...]
  }
}

without usable license information.

@maxhbr maxhbr added the REST label May 15, 2019
@mcjaeger mcjaeger added the bug Something isn't working label Mar 5, 2020
@mcjaeger mcjaeger added this to the Backlog milestone Mar 5, 2020
@nam-np
Copy link
Contributor

nam-np commented May 31, 2021

Same response:
image

And the UI:
Edit release
image

Release summary:
image

nam-np added a commit to nam-np/sw360 that referenced this issue May 31, 2021
smrutis1 added a commit that referenced this issue Jun 4, 2021
…not-existed

Fix: Rest interface can not handle licenses which do not exist in the database #534

reviewed-by: kumar.ravindra@siemens.com
tested-by: kumar.ravindra@siemens.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working REST
Projects
None yet
Development

No branches or pull requests

3 participants