Skip to content
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

Fix Nupkg/Nuspec UTF-16 encoding and support uppercase dependencies #231

Merged
merged 9 commits into from
Feb 18, 2024

Conversation

sverdlov93
Copy link
Contributor

@sverdlov93 sverdlov93 commented Feb 4, 2024

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

When parsing Nuget nuspec files sometimes they can be utf16 files so we need to encode them because Golang's Unmashall doesn't support utf-16 encoding.
The previous fix wasn't enough for all cases.
Added a real utf16 example to test this.
Also, fixed an issue where Nuget dependencies with uppercase letters couldn't be resolved.

should fix jfrog/jfrog-azure-devops-extension#475

Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 changed the title Add UTF-16 encoding to Xml Unmarshall Fix UTF-16 encoding to Xml Unmarshall and support uppercase dependencies Feb 4, 2024
@sverdlov93 sverdlov93 changed the title Fix UTF-16 encoding to Xml Unmarshall and support uppercase dependencies Fix Nupkg/Nuspec UTF-16 encoding and support uppercase dependencies Feb 4, 2024
@sverdlov93 sverdlov93 added the bug Something isn't working label Feb 4, 2024
Signed-off-by: Michael Sverdlov <[email protected]>
@fourpastmidnight
Copy link

What's going on with this PR, as I haven't seen any movement on this for about 2 weeks? I'm looking for this fix, as I'm gearing up to go to production soon and would like to know if I'll be able to use the JFrog Restore task in my build pipelines.

Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 merged commit 154fcd1 into dev Feb 18, 2024
25 of 26 checks passed
@sverdlov93 sverdlov93 deleted the utf16-encode branch February 18, 2024 09:51
@fourpastmidnight
Copy link

Awesome, glad to see this has been completed. Has this been formally released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants