Skip Menu |

This queue is for tickets about the SharePoint-SOAPHandler CPAN distribution.

Report information
The Basics
Id: 99351
Status: open
Priority: 0/
Queue: SharePoint-SOAPHandler

People
Owner: Nobody in particular
Requestors: jf3579 [...] att.com
Cc:
AdminCc:

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



Subject: 401 Unauthorized on cp only
Date: Tue, 7 Oct 2014 16:34:04 +0000
To: "bug-SharePoint-SOAPHandler [...] rt.cpan.org" <bug-SharePoint-SOAPHandler [...] rt.cpan.org>
From: "FINNEGAN, JAMES" <jf3579 [...] att.com>
Hi, hoping you can help. I am able to use the modules you have written to display information on the Shared Documents sharepoint. However when I go to copy anything I'm getting a 401 Unauthorized error. Here is the output from my script where you can see it dumped the fdls contents correctly (There is 1 file out on the sharepoint), but then the error on the cp? If you can think of anything I'm doing wrong please let me know. #!/usr/bin/perl use Authen::NTLM qw(ntlmv2); use Data::Dumper; use SharePoint::SOAPHandler; use CopyTree::VendorProof; use CopyTree::VendorProof::LocalFileOp; delete $ENV{'https_proxy'}; my $sharepointobj = SharePoint::SOAPHandler ->new; my $localfileobj = CopyTree::VendorProof::LocalFileOp ->new; $sharepointobj->sp_creds_domain('operations.web.myworksite.com:443'); $sharepointobj->sp_creds_user('MYDOMAIN\myuserid'); $sharepointobj->sp_creds_password('Mypassword'); $sharepointobj->sp_authorizedroot('https://operations.web.myworksite.com:443/sites/CAPCOET3/Jimboski'); my $cpobj = CopyTree::VendorProof ->new; print Dumper $sharepointobj->fdls('', 'Shared Documents'); $cpobj -> src('/opt/app/Reports/Excel/Reports_TABS1007.xlsx', $localfileobj); $cpobj -> dst('Shared Documents/Reports_TABS1007.xlsx', $sharepointobj); $cpobj -> cp; print Dumper $sharepointobj->fdls('', 'Shared Documents'); Response: $VAR1 = 'Shared Documents/Reports_TABS1006.xlsx'; $VAR2 = 'Shared Documents/Forms'; 401 Unauthorized at /opt/app/perl/lib/perl5/SharePoint/SOAPHandler.pm line 374.
CC: jf3579 [...] att.com
Subject: Re: [rt.cpan.org #99351] 401 Unauthorized on cp only
Date: Sun, 2 Nov 2014 21:48:32 -0700
To: bug-SharePoint-SOAPHandler [...] rt.cpan.org
From: y s <dbmolester [...] gmail.com>
Hi there, First of all, thanks for trying out the module! It's been a long time since I've touched this, thanks to us moving away from sharepoint's shared documents. At first glace, everything you've entered seems okay - I'm guessing it has to do with authentication methods that's different from the sharepoint that I tested on and your particular version of sp. I'll look at the src tomorrow and see. Btw, I'm assuming that manual copy works okay, and it's just the module that's acting up? Y On 10/7/14, FINNEGAN, JAMES via RT <bug-SharePoint-SOAPHandler@rt.cpan.org> wrote: Show quoted text
> Tue Oct 07 12:34:37 2014: Request 99351 was acted upon. > Transaction: Ticket created by jf3579@att.com > Queue: SharePoint-SOAPHandler > Subject: 401 Unauthorized on cp only > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: jf3579@att.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=99351 > > > > Hi, hoping you can help. I am able to use the modules you have written to > display information on the Shared Documents sharepoint. However when I go > to copy anything I'm getting a 401 Unauthorized error. Here is the output > from my script where you can see it dumped the fdls contents correctly > (There is 1 file out on the sharepoint), but then the error on the cp? If > you can think of anything I'm doing wrong please let me know. > > > > #!/usr/bin/perl > > use Authen::NTLM qw(ntlmv2); > use Data::Dumper; > use SharePoint::SOAPHandler; > use CopyTree::VendorProof; > use CopyTree::VendorProof::LocalFileOp; > > delete $ENV{'https_proxy'}; > > my $sharepointobj = SharePoint::SOAPHandler ->new; > my $localfileobj = CopyTree::VendorProof::LocalFileOp ->new; > > $sharepointobj->sp_creds_domain('operations.web.myworksite.com:443'); > $sharepointobj->sp_creds_user('MYDOMAIN\myuserid'); > $sharepointobj->sp_creds_password('Mypassword'); > $sharepointobj->sp_authorizedroot('https://operations.web.myworksite.com:443/sites/CAPCOET3/Jimboski'); > > my $cpobj = CopyTree::VendorProof ->new; > > print Dumper $sharepointobj->fdls('', 'Shared Documents'); > > $cpobj -> src('/opt/app/Reports/Excel/Reports_TABS1007.xlsx', > $localfileobj); > $cpobj -> dst('Shared Documents/Reports_TABS1007.xlsx', $sharepointobj); > $cpobj -> cp; > > print Dumper $sharepointobj->fdls('', 'Shared Documents'); > > > Response: > $VAR1 = 'Shared Documents/Reports_TABS1006.xlsx'; > $VAR2 = 'Shared Documents/Forms'; > 401 Unauthorized at /opt/app/perl/lib/perl5/SharePoint/SOAPHandler.pm line > 374. > >