Subject: | User update fails when password contains quotation marks |
Date: | Fri, 16 Oct 2009 11:28:27 +0100 |
To: | bug-VUser-Google-ProvisioningAPI [...] rt.cpan.org |
From: | Chris Reeves <csr2 [...] st-andrews.ac.uk> |
package VUser::Google::ProvisioningAPI::V2_0;
our $VERSION = '0.24';
# /usr/local/bin/perl -v
This is perl, v5.8.8 built for sun4-solaris
# uname -a
SunOS alyx 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V490
==============================================================================
We are using the following code to update a user's password (after creating the
ProvisioningAPI object in $self->{google}):
my $updateEntry = VUser::Google::ProvisioningAPI::V2_0::UserEntry->new();
$updateEntry->Password($pass);
my $userEntry = $self->{google}->UpdateUser($user, $updateEntry);
When an update is attempted to set a password containing the double-quote
character ("), we receive the following error:
File does not exist: Element type &quot;apps:login&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or &quot;/&gt;&quot;. at /usr/local/lib/perl5/site_perl/5.8.8/VUser/Google/ProvisioningAPI/V2_0.pm line 443
I'm assuming that the double-quotes aren't being correctly escaped in the XML,
or something similar. This may be a bug in the ProvisioningAPI, in the XML
module, or elsewhere. I'm filing it against the ProvisioningApi in the first
instance, but feel free to pass it on as you see fit. :-)
Thanks,
Chris
--
The University of St Andrews is a charity registered in Scotland : No SC013532