-
Notifications
You must be signed in to change notification settings - Fork 576
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
Replace CRLF with LF on release files #59
base: main
Are you sure you want to change the base?
Conversation
This resolves NEXUS-21834 which prevents APT repositories from working when running under Windows
Hi @gschizas ! Can you please attach the example of a corrupted file to the ticket? Regards, |
The problem seems to be mostly in the PGP signing. You'll see that some lines end with CR+LF (lines 1-3 and 17-28) and some with just LF (lines 3-16) |
Hi there, i guess that i run into the same issue here. May i ask when the fix will be merged @aornatovskyy ? Im using Nexus Repository for a Yocto Linux and got problems with the lineendings like gschizas. Regards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t
I managed to do a workaround, using URL rewrite. Add this to web.config:
And then it just works! The REQUEST_URI does most of the heavy lifting. It should work for most cases, but if it doesn't, it's easy to extend the regular expression, or even hardcode the URL for the repo. This is still just a workaround, but it's one that works without any changes to the code. |
Thanks for your solution. After I had read your post I came up with another idea. We routed the ../InRelease file for all our apt-repositories to a 404 error page. This way the "apt-get update" command results in using the normal "release" file instead of the corrupted "InRelease" that is produced by the repo. Now apt-get update works again. That could be a cleaner workaround instead of modifying the file itself. |
This resolves NEXUS-21834 which prevents APT repositories from working when running under Windows