Project

General

Profile

Actions

Bug #5046

closed

Bug with xmlrpc::client, basic auth and long authentication strings

Added by herwinw (Herwin Quarantainenet) over 13 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
1.9.2-p290 (and earlier releases)
Backport:
[ruby-core:38164]

Description

XMLRPC::Client has support for basic auth. This tries to encode the
combination of the username and password with the base64 algorithm using
Array.pack. If however your username and password exceed a certain
length the truncate algorithm of Array.pack kicks in and adds a newline
character in the result, which creates HTTP headers that are invalid.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0