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
git am cannot parse the mbox when PGP signatures are present #221
Comments
@jgunthorpe This is likely introduced by 01b9cbb. Previously, this header would not have been copied in as we restricted the possible headers one could use. Is there any particular reason to include the signature in the downloaded mbox? If not, I'm inclined to think the correct behavior here would be to special case |
I don't think git am can currently validate the gpg signature so I don't think there is any reason to provide it at this time. Stripping/rewriting content-type, content-length and content-encoding is probably the right thing to do if the body is being rewritten. |
We don't GPG signatures, therefore this header is incorrect. Stop passing it through. Test for the other dropped header are also included. Signed-off-by: Stephen Finucane <stephen@that.guru> Acked-by: Veronika Kabatova <vkabatov@redhat.com> Closes: getpatchwork#221 (cherry picked from commit 2209369) Signed-off-by: Daniel Axtens <dja@axtens.net>
Should be reopened since this broke non-manual application of the patch. If you don't supply a signature the Content type of the mbox has to be mangled accordingly. Patch to test with: https://patchwork.kernel.org/patch/10921937/ |
I think this is the same breakage reported here.. It kind of looks like the patch may not understand the extended Content-type header being used here:
|
Actually |
Here is an example from the kernel mailing list:
https://patchwork.kernel.org/patch/10656215/mbox/
The original mbox is attached to this issue.
Patchwork removed all the MIME encoding and signature but retained the Content-Type header saying it is in multipart/signed format.
'git am' knows how to parse this header and gets confused when the mailbox is no longer in the right format.
patchworks should also drop the content-type header if it is going to do this kind of reformatting.
orig.mbox.gz
The text was updated successfully, but these errors were encountered: