-
Notifications
You must be signed in to change notification settings - Fork 484
fix(licenseref): changing shortname of 3DFX license to 'Glide' #809
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change 3DFX
globally to Glide
Hi @max-wittig, this is showing up as Glide on my side: |
Are you running this as a fresh install? I'm assuming If you run a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works after running fo-cleanold --delete-everything
and fresh reinstall
actually, if we cannot upgrade existing instances, this is a no go then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work for existing instances of fossology
I think I've found the problem. fossology/install/fossinit.php Line 413 in 34cc66a
This entire section ignores It will take a couple of weeks for me to test this properly. Watch this space. |
66f4c0d
to
6a86482
Compare
The latest commit resolves the licenseref updating issue. I've done a bit of refactoring here as there were a few issues with the current implementation:
I've run a number of tests using both blocks of modified code (update and insertion of licenses), and this appears to be working well. I would welcome some extra testing though. Note that the changes to the Sqlite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
I tested it stand alone / fresh install -> OK, but I think we need to test an update of an existing instance. |
I suggest testing with an >=30d old existing instance, i.e., before rf_pk=571, rf_name='RSA-Cryptoki' was inserted. Then add a new license that probably get automatically rf_pk=571. Now updating the instance and check if the new license still exists. |
@steffen-weber this will cause the newly-created license to be overwritten, as it will have the same I'm not sure if this is fixable given the current design. Although |
Overwriting user's licenses sounds bad. How about this strategy?
The |
That could work. Do we have a |
@timurphy no problem with keeping this PR open, but let us know if you feel like you are going ahead with this or not. I think changing the SPDX conformant Id to glide is an important fix. |
@mcjaeger sorry, I haven't had time to make the changes. I'll try to get a PR in for this in the next few weeks. |
@timurphy : Can you please rebase this branch with master (merge conflicts) |
8510e2e
to
2e3fde2
Compare
c8d4474
to
40775c5
Compare
I've made the changes and tested on a fresh install, upgrade on system having rf_shortname '3DFX' and upgrade on system having rf_shortname 'Glide'. I'm not familiar with the way |
code looks good to me |
Fixes #744. SPDX:RDF output now contains the correct license ref:
<spdx:licenseInfoInFile rdf:resource="http://spdx.org/licenses/Glide"/>