Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

License import broken if todos added via GUI are present #625

Open
bs-jokri opened this issue Oct 9, 2017 · 2 comments
Open

License import broken if todos added via GUI are present #625

bs-jokri opened this issue Oct 9, 2017 · 2 comments
Labels

Comments

@bs-jokri
Copy link

bs-jokri commented Oct 9, 2017

From @heydenreich on July 8, 2016 14:48

Problem:
When manually adding todos via the UI, the todo gets assigned todoId=0. If more than one todo with the same todoId=0 are present in the system, the lics-import of a new license archive crashes.

This problem has been discussed with Siemens, but is not fixed yet. There were several suggestions how to deal with it. The most promising seems to be using the couchdbId as reference in the .lics file and add the todoId "only" as extra property. Then there would be no need to check for uniqueness of todoIds any more.

Copied from original issue: bsinno/sw360#236

@bs-jokri
Copy link
Author

bs-jokri commented Oct 9, 2017

From @heydenreich on July 8, 2016 14:59

Other scenarios work fine:

  1. Importing the same lics-archive twice: works and nothing changes.
  2. Import a lics archive and then import a lics-archive which contains a license with a shortname/id that is already in the system: license is not imported again. Existing license in the database is not modified.
  3. Import a lics archive and then import a lics-archive which contains a new license not in the system as well as licenses that are already in the system: new license is imported (with todos, obligations, license type if these are new, too). Modified licenses are not importet.

@bs-jokri bs-jokri added the bug label Oct 9, 2017
@bs-jokri
Copy link
Author

bs-jokri commented Oct 9, 2017

From @maxhbr on April 28, 2017 11:59

related to #139

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

1 participant