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

Final MIME delimiter requires following linefeed [rt.cpan.org #65710] #223

Closed
oalders opened this Issue Mar 31, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@oalders
Member

oalders commented Mar 31, 2017

Migrated from rt.cpan.org#65710 (status was 'open')

Requestors:

From richard.barnes@msci.com on 2011-02-14 11:59:23:

HTTP::Message parses MIME messages.  As part of the parsing process, the
subroutine _parts strips of the final delimiter and any following text
using the line:

	    $str =~ s/\r?\n--\Q$b\E--\r?\n.*//s;

where $str holds the message and $b the boundary.

This pattern requires at least a \n after the boundary in order to match.

I am trying to interact with a web service, using the XML::Compile::SOAP
modules, which use HTTP::Message, where the MIME response ends
immediately after the final --boundary-- delimiter without any further
line-ending.

According to rfc2045 (and following), no characters following the final
delimiter are necessary and the linefeed is not part of the delimiter:

     multipart-body := [preamble CRLF]
                       dash-boundary transport-padding CRLF
                       body-part *encapsulation
                       close-delimiter transport-padding
                       [CRLF epilogue]

     transport-padding := *LWSP-char
                          ; Composers MUST NOT generate
                          ; non-zero length transport
                          ; padding, but receivers MUST
                          ; be able to handle padding
                          ; added by message transports.

     close-delimiter := delimiter "--"

I'm using HTTP::Message 5.835, perl 5.10.1, Cygwin_NT-6.1

Thanks,
Richard

From tom@eborcom.com on 2014-09-20 13:23:32:

Thank you for reporting this bug.  It duplicates https://rt.cpan.org/Ticket/Display.html?id=79239 which has since been fixed.
@colinnewell

This comment has been minimized.

Show comment
Hide comment
@colinnewell

colinnewell Apr 12, 2017

Contributor

This appears to be a dead issue.

Contributor

colinnewell commented Apr 12, 2017

This appears to be a dead issue.

@genio genio added the Duplicate label Apr 12, 2017

@genio

This comment has been minimized.

Show comment
Hide comment
@genio

genio Apr 12, 2017

Member

This issue is a duplicate of libwww-perl/HTTP-Message#71 which we think is fixed.

Member

genio commented Apr 12, 2017

This issue is a duplicate of libwww-perl/HTTP-Message#71 which we think is fixed.

@genio genio closed this Apr 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment