-
Notifications
You must be signed in to change notification settings - Fork 904
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
pack - URI encodes filenames #1628
Comments
I'm not an expert on NuGet so I'm not sure if this is relevant, but keep in mind that Chocolatey is based on NuGet v2. (Someone correct me if I'm wrong!) |
@Andreas-Schommer I think this would be an enhancement request. Chocolatey != NuGet, and we expect there to be differences between the two. We welcome opportunities to ensure they continue to have things that are the same, but keep in mind the expectation from us for edge cases is not that they should behave exactly alike. Does that make sense? So far I don't really see where the issue is - opening up the archive with zips isn't a runtime scenario and isn't part of a supported installation method. But let's talk about areas where this could cause issues so we can better understand the use case. |
Now this is a problem. If i pack a folder with spaces with NuGet 4.9.2.5706 then chocolatey v0.10.11 will not extract that folder. Regards |
I found a workaround. This does not work: <file src="html\**\*.html" target="content/Style Library" /> This works: <file src="html\**\*.html" target="content/Style%20Library" /> |
I'm also affected by this issue. A BTW, I'm not sure where you are seeing that choco URL encodes the filenames, but it doesn't do that with white spaces. I'm using choco 0.10.13. |
This was fixed as a part of v2.0.0, as the NuGet libraries were updated. I think this issue can be closed, as the NuGet library tests should cover this fuctionality? |
@Andreas-Schommer, @viceice, or @rgl, I realize this is a really old issue. Are any of you able to reproduce this issue still? |
don't know, I no longer have spaces, so it's no longer an issue for me. |
I'm going to go ahead and close this as stale, but we can reopen it if necessary. |
What You Are Seeing?
Choco pack encodes filenames different to nuget. Filenames are uri encoded in choco, Nuget leaves them intact.
There was an issue fixed in nuget addressing the same issue.
The created packages can be installed without problems (with nuget as well as with chocolatey).
I used nuget 4.7.0.5148 and chocolatey v0.10.11 to do the repro.
What is Expected?
Choco pack and nuget pack should handle filenames alike, filenames with special characters and spaces should be preserviced in the nupkg.
How Did You Get This To Happen? (Steps to Reproduce)
I created a nuspec file that contains files with special characters and spaces in their names:
I used nuget pack and choco pack to create the package.
When opening the nupkg created with nuget as a ZIP archive,, the filenames are the original filenames used to create the package.
When opening the nupkg created with choco as a ZIP archive, the filenames are URI encoded.
Repro.zip
This issue has been moved over from chocolatey/chocolatey.org.
The text was updated successfully, but these errors were encountered: