-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary cache of canonicalized form leadingn to unexpecte…
…d behavior. Updated unit tests
- Loading branch information
1 parent
4b812de
commit 6eb2a01
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,6 +306,13 @@ public void testGetCoordinates() throws Exception { | |
Assert.assertEquals("pkg:generic/acme/[email protected]", purl.getCoordinates()); | ||
} | ||
|
||
@Test | ||
public void testGetCoordinatesNoCacheIssue89() throws Exception { | ||
PackageURL purl = new PackageURL("pkg:generic/acme/[email protected]?key1=value1&key2=value2"); | ||
purl.canonicalize(); | ||
Assert.assertEquals("pkg:generic/acme/[email protected]", purl.getCoordinates()); | ||
} | ||
|
||
@Test | ||
public void testNpmCaseSensitive() throws Exception { | ||
// e.g. https://www.npmjs.com/package/base64/v/1.0.0 | ||
|