Skip Menu |

This queue is for tickets about the LWP-Authen-OAuth2 CPAN distribution.

Report information
The Basics
Id: 92194
Status: new
Priority: 0/
Queue: LWP-Authen-OAuth2

Owner: Nobody in particular
Requestors: techman83 [...]

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

From techman83 [...] Thu Jan 16 04: 14:51 2014
MIME-Version: 1.0
X-Spam-Status: No, score=-2.448 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="001a11c1a2f006deca04f012db6a"
Message-ID: <CAGHRBmSE9k4LzUkXmSwMdavv5XKoBScByMtDjmPokwaUmcegUQ [...]>
X-Received: by with SMTP id pk1mr7259093wjc.36.1389863681578; Thu, 16 Jan 2014 01:14:41 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -2.448
Received: from localhost (localhost []) by (Postfix) with ESMTP id 65D87240E66 for <cpan-bug+LWP-Authen-OAuth2 [...]>; Thu, 16 Jan 2014 04:14:51 -0500 (EST)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id P92Bc2it72IL for <cpan-bug+LWP-Authen-OAuth2 [...]>; Thu, 16 Jan 2014 04:14:50 -0500 (EST)
Received: from ( []) by (Postfix) with SMTP id 0C103240DBB for <bug-LWP-Authen-OAuth2 [...]>; Thu, 16 Jan 2014 04:14:49 -0500 (EST)
Received: (qmail 29873 invoked by alias); 16 Jan 2014 09:14:49 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Thu, 16 Jan 2014 01:14:47 -0800
Received: by with SMTP id t60so2909554wes.32 for <bug-LWP-Authen-OAuth2 [...]>; Thu, 16 Jan 2014 01:14:43 -0800 (PST)
Received: by with HTTP; Thu, 16 Jan 2014 01:14:41 -0800 (PST)
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Delivered-To: cpan-bug+LWP-Authen-OAuth2 [...]
Subject: Setting Dynamic File Upload causes
Return-Path: <techman83 [...]>
X-RT-Mail-Extension: lwp-authen-oauth2
X-Original-To: cpan-bug+LWP-Authen-OAuth2 [...]
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=17BzBGFq2lx8lCDZVaNaXfivhl7ZBkBPnaVL6HPFpTc=; b=0KeWomfXIoGr/eblDFzFRd1bC4eKgQUzkQEIzidxa6QobnLjcZL9ZygKO0ONlH1i1N +BxKuDB/+Mu2uOWNZJaH9XyQBFZLVfMpyf42uZzA8aBK4HfHLEmeB88F5KFkjm7mQOYS YdXJ962TkJK6fv0Ddq9vRprgZOzlfT9V3o1BDwR6h7/udxkw4WuK3LwJVkDuzGA6FtFq Wy6rrdbqxuPFaYWOuMQ1txEeaCumn3NtxnM9gMTQ+RowfW4Ta3CsvcTsBiX5dzQ4soxO rGzjyU+Jd3wzXujRIWWy0KgaOXNrFwOUZUAV9yBS270VHxrT8vsPuj7bjaF0YWToDX+g GA9Q==
Date: Thu, 16 Jan 2014 17:14:41 +0800
To: bug-LWP-Authen-OAuth2 [...]
From: Leon Wright <techman83 [...]>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Content-Length: 826
Download (untitled) / with headers
text/plain 826b
Hi, I hit memory issues uploading youtube videos and noted that LWP by default attempts to slurp the entire file into memory. Setting dynamic file uploads is the common advice: $HTTP::Request::Common::DYNAMIC_FILE_UPLOAD = 1; However it cause causes: Can't store CODE items at /home/leon/perl5/lib/perl5/LWP/Authen/OAuth2/AccessToken/ line 9. I worked around it for now by doing this: #my $actual_request = dclone($request); my $actual_request = $request; Which worked, but I'm not fully across why dclone is being used, so this probably isn't optimal. It's entirely possible I'm misunderstanding something and happy to be told as such. Thanks, Leon -- DRM 'manages access' in the same way that jail 'manages freedom.' # cat /dev/mem | strings | grep -i cats Damn, my RAM is full of cats... MEOW!!
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1182

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to