This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269081 - Expand recognized mavenLicenseURL values
Summary: Expand recognized mavenLicenseURL values
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2016-11-22 21:37 UTC by Jesse Glick
Modified: 2016-11-29 09:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed patch (4.49 KB, patch)
2016-11-22 21:42 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2016-11-22 21:37:00 UTC
Some mavenLicenseURL values are not canonical:

$ curl -sIL http://opensource.org/licenses/Apache-2.0 | egrep 'Location|HTTP/'
HTTP/1.1 301 Moved Permanently
Location: https://opensource.org/licenses/Apache-2.0
HTTP/1.1 200 OK

Generally the canonical form seems to be:

    https://opensource.org/licenses/<NAME>

We should use refreshed URLs so that POMs specifying these <license> URLs will be honored, and so that the Generate » License… dialog will insert the recommended value.
Comment 1 Jesse Glick 2016-11-22 21:42:00 UTC
Created attachment 162986 [details]
Proposed patch
Comment 2 Tomas Stupka 2016-11-24 13:15:25 UTC
fixed in jet-main #0dc29dd28fe9
Comment 3 Quality Engineering 2016-11-26 03:58:49 UTC
Integrated into 'main-silver', will be available in build *201611260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0dc29dd28fe9
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #269081 - Expand recognized mavenLicenseURL values
Comment 4 Jesse Glick 2016-11-28 20:54:54 UTC
Thanks. Should this not now be resolved as fixed? (With milestone Dev? Or Next?)
Comment 5 Jesse Glick 2016-11-28 20:56:31 UTC
BTW it is best to use `hg import` to apply patches with original metadata intact.
Comment 6 Tomas Stupka 2016-11-29 09:22:41 UTC
indeed, it should. thanks