-
-
Notifications
You must be signed in to change notification settings - Fork 64
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 Invalid header line for Content-Disposition string - incomplete continuation #108
Conversation
9e1c00d
to
a5b5d62
Compare
WDYT of having @codingStandardsIgnoreStart equivalent enabled for all tests? or set the line lenght limit to 512 or something biggger than 120, that 120 quota is very easy to reach:
|
I don't know how to fight coverage, it says coverage increased, but still making status check failed
|
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
a5b5d62
to
7cbe513
Compare
@weierophinney how to indicate it's ready for merge from the developer? I removed draft status, but seems can't request a review as that probably requires being project member. |
Which is correct:
(But there is a bug here on GitHub so sometimes you can add a reviewer without special permissions.) |
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
7cbe513
to
a55ec3d
Compare
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
a55ec3d
to
ee6b687
Compare
Updated, DCO & Travis pass. |
ping! |
another ping! I'd like this to be in the next patch release. it's critical for us, and keeping production patched (hot fixed) is not very sustainable solution. and maintaining a fork again its something I'd really like to avoid! |
@weierophinney @froschdesign @samsonasik ping https://outlook.office.com/mail/inbox seems to create such mails, so it's pretty common and wild. |
and apparently Apple Mail as well: #111 |
Chunk from PR#111 by Cédric Anne <cedric.anne@gmail.com> Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
42f2d25
to
cafc1ac
Compare
@glensc I've created issues in every package today. ;-) TBH, I am not that familiar with all that mail standards, e.g. Laminas has a huge amount of packages (including all I'd like to have another one have a look on this and then we probably get to merge this. Thanks for your patience and sorry that it might take some time to get things merged (as we are focussing on other packages currently). |
From my perspective, this PR is fine. However, as I stated that I don't know much about all this stuff, I try to get someone to review this aswell. |
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.
I had the same problem and applying this fix solves it.
Can this be merged and released, please? |
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.
LGTM 🚢
Sorry that it went under the radar 😱
Thanks @glensc - going out for release right now |
It took a while, but at least still fixed in the same year :) |
throw new Exception\InvalidArgumentException(sprintf( | ||
"Invalid header line for Content-Disposition string". | ||
" - count expected to be numeric, got %s with value %s", | ||
$type, |
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.
I think the $type
is always string|null
as explode
and list
can't return anything else.
Fix Invalid header line for Content-Disposition string - incomplete continuation
Description
https://tools.ietf.org/html/rfc2231 allows the sequence (internally $count) being missing:
However
ContentDisposition
expected it to be number, and failed to cast empty string to numeric index. This resulted in throwingInvalidArgumentException(code: 0): Invalid header line for Content-Disposition string - incomplete continuation
Additionally, seems similar logic is needed ion ContentType class, but it's partly duplicated, ContentDisposition has more logic, and the exception is presented only in ContentDisposition class.