Skip Menu |

This queue is for tickets about the Net-Google-Drive-Simple CPAN distribution.

Report information
The Basics
Id: 100789
Status: resolved
Priority: 0/
Queue: Net-Google-Drive-Simple

People
Owner: Nobody in particular
Requestors: stephm [...] pobox.com
Cc:
AdminCc:

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



Subject: File Upload to Google Drive fails.
Date: Mon, 08 Dec 2014 16:05:35 -0800
To: bug-Net-Google-Drive-Simple [...] rt.cpan.org, m [...] perlmeister.com
From: Stephen Montsaroff <stephm [...] pobox.com>
OS: Windows 7 (64)/Cygwin 1.7.32 Perl version: 5.14 Net::Google::Drive::Simple: 0.11 The file upload method in Net::Google::Drive::Simple fails with a 403 HTTP error. This has been test on several scripts, including the distributed test script file_upload_test.pl. Other Net::Google::Drive::Simple operations, such as find children appear to work. An empty file is created on google drive. Also, there is a bug in error handling in the module, as a call to is_error on a response returns an undefined. Below is a quick example output. Attached is the source of the test code, and a more detailed dump (produced by enabling logging). Show quoted text
> perl file_upload_test.pl test.file.txt /test
Failed with 403: Forbidden at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518. Failed with 403: Forbidden at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518. Failed with 403: Forbidden at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518. Failed with 403: Forbidden at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 518. Can't call method "is_error" on an undefined value at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 243. -- SzsSignature Stephen Montsaroff , Ph.D stephm@pobox.com Swimming Bear Consulting 711 23rd Ave. E 206/568-1641 (h) Seattle, WA 98112 206/437-2427 (c)

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

On Mon Dec 08 19:05:50 2014, stephm@pobox.com wrote: Show quoted text
> OS: Windows 7 (64)/Cygwin 1.7.32 > The file upload method in Net::Google::Drive::Simple fails with a 403 > HTTP error.
Interesting, your script works fine on my Linux distro, I just uploaded a file without problems with it. Since you said that you were able to read the content of your gdrive without getting a 403 error, I presume your ~/.google-drive.yml file has the correct tokens, but please double-check. I wonder if it's related to the Cygwin platform, unfortunately, I don't have a test environment with this setup, is there a way you can verify that your script works on something more unix-y?
Subject: Re: [rt.cpan.org #100789] File Upload to Google Drive fails.
Date: Tue, 16 Dec 2014 22:18:20 -0800
To: bug-Net-Google-Drive-Simple [...] rt.cpan.org
From: Stephen Montsaroff <stephm [...] pobox.com>
WRT to the error message bug, it has been changed, but not I think fixed. Now, I get 2014/12/16 22:16:10 Out of retries. Can't locate object method "message" via package "Net::Google::Drive::Simple" at /usr/lib/perl5/site_perl/5.14/Net/Google/Drive/Simple.pm line 244. I am still looking into the security type issues. Show quoted text
-------- Original Message -------- Subject: [rt.cpan.org Michael_Schilli via RT00789] File Upload to Google Drive fails. From: Michael_Schilli via RT <bug-Net-Google-Drive-Simple@rt.cpan.org> To: stephm@pobox.com Date: Saturday, December 13, 2014 10:23:17 PM
Subject: Re: [rt.cpan.org #100789] File Upload to Google Drive fails.
Date: Thu, 18 Dec 2014 21:16:09 -0800
To: bug-Net-Google-Drive-Simple [...] rt.cpan.org
From: Stephen Montsaroff <stephm [...] pobox.com>
I am afraid I don't have a unix box at my disposal. I have tried and used PERL "native to windows" (e.g. Strawberry), with the same problems. Show quoted text
-------- Original Message -------- Subject: [rt.cpan.org Michael_Schilli via RT00789] File Upload to Google Drive fails. From: Michael_Schilli via RT <bug-Net-Google-Drive-Simple@rt.cpan.org> To: stephm@pobox.com Date: Saturday, December 13, 2014 10:14:38 PM
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100789 > > > On Mon Dec 08 19:05:50 2014, stephm@pobox.com wrote:
>> OS: Windows 7 (64)/Cygwin 1.7.32 >> The file upload method in Net::Google::Drive::Simple fails with a 403 >> HTTP error.
> Interesting, your script works fine on my Linux distro, I just uploaded a file without problems with it. > > Since you said that you were able to read the content of your gdrive without getting a 403 error, I presume your ~/.google-drive.yml file has the correct tokens, but please double-check. > > I wonder if it's related to the Cygwin platform, unfortunately, I don't have a test environment with this setup, is there a way you can verify that your script works on something more unix-y? >