We have moved and *archived* this repository. Pls. continue at the new place at https://github.com/eclipse/sw360 ... A software component catalogue application - designed to work with FOSSology.
Other
35
stars
20
forks
source link
License import broken if todos added via GUI are present #625
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.
Importing the same lics-archive twice: works and nothing changes.
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.
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.
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