Skip Menu |

This queue is for tickets about the Net-ICAP CPAN distribution.

Report information
The Basics
Id: 111686
Status: resolved
Priority: 0/
Queue: Net-ICAP

People
Owner: corliss [...] digitalmages.com
Requestors: andreas.a.lamprecht [...] atos.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Offset is not increased while generating ICAP "Encapsulated" header
Date: Tue, 2 Feb 2016 19:14:47 +0000
To: "bug-Net-ICAP [...] rt.cpan.org" <bug-Net-ICAP [...] rt.cpan.org>
From: "Lamprecht, Andreas" <andreas.a.lamprecht [...] atos.net>
Hi! I think i found a bug in the Net::ICAP::Message module. In the _genEncap function, the offset values for the various parts of the "Encapsulated" header should always be based on the last value. What is missing to my mind is a "+" in front of the "=" in the two lines where you calculate the length of the various parts So instead of $offset = length($t) + 2; it should be $offset += length($t) + 2; Hope this helps! Greetings Andreas Company: Atos IT Solutions and Services GmbH Legal form: Gesellschaft mit beschränkter Haftung Company seat: Vienna Commercial registry file nr.: FN 357865y Commercial Court: Handelsgericht Wien DVR: 4003754 ATU UID: 66190855 ARA Nr: 17961 Important Note: This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Thanks for catching that, this is now fixed in v0.04, which is being uploaded to CPAN now. If you can test it and provide feedback, I'd appreciate it.