Skip to content

Update OSI API#228

Merged
goneall merged 1 commit intomasterfrom
issue224
Oct 26, 2025
Merged

Update OSI API#228
goneall merged 1 commit intomasterfrom
issue224

Conversation

@goneall
Copy link
Member

@goneall goneall commented Oct 26, 2025

Fixes #224

@goneall
Copy link
Member Author

goneall commented Oct 26, 2025

@xsuchy @swinslow @jlovejoy - FYI OSI changed their URLs for licenses and made several breaking changes to their API. The LicenseListPublisher currently in the license-list-XML repo is generating bad data for the cross-refs / URLs for the OSI. Then changes are recent so the published licenses should be fine. We just need to fix this before the next release.

This PR addresses the changes and should work with the new APIs and URLs.

I'll create a release and update the license-list-XML repo in the next couple days.

@goneall goneall merged commit 38def82 into master Oct 26, 2025
1 check passed
@goneall goneall deleted the issue224 branch October 26, 2025 03:49
* @return normalized URL
*/
public static String normalizeOsiUrl(String url) {
return url.toLowerCase() // OSI changed the case on URLs like Apache-2.0 (now apache-2.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old variant still works. Do you have an idea if this is just for the transition period?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old variants seem to redirect to the new version. In the API, they only store the latest URLs (not the previous variants), so we have to normalize. A bit of historical context - we use to check the URL's directly, but the OSI website would fail due to rate limiting, so we now use their API which is much friendlier to their website infrastructure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSI Tests are Failing

2 participants