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, |
|
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