Skip Menu |

This queue is for tickets about the WebService-Autotask CPAN distribution.

Report information
The Basics
Id: 83162
Status: resolved
Priority: 0/
Queue: WebService-Autotask

People
Owner: Nobody in particular
Requestors: m.steinborn [...] fachin-friedrich.de
Cc:
AdminCc:

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



Subject: Non 7-bit-ASCII charcters are not working
Date: Wed, 6 Feb 2013 15:00:19 +0000
To: "bug-WebService-Autotask [...] rt.cpan.org" <bug-WebService-Autotask [...] rt.cpan.org>
From: "Steinborn, Markus | Fachin & Friedrich" <m.steinborn [...] fachin-friedrich.de>
Hi, We are using WebService-Autotask version 1.003 on CentOS 5.9, which is shipped with perl 5.8. Nearly all is working well, but Entities with non 7-bit ASCII characters (like 'ä', 'ö', 'ü' and 'ß', but also 'é' and likewise) are causing problems. We can not create or update an entity containing such characters. The most simple demonstration ist o create an account by hand containing such character and trying to update it (if you prefer without making any change) like done in the following script: #!/usr/bin/perl use WebService::Autotask; use Data::Dumper; $at = WebService::Autotask->new({ username => 'xxxxxxxxxxxxxxx', password => 'xxxxxxxxxx' }); # This search gives me exactly one account: my $tmp = $at->query({ entity => 'Account', query => [ { name => 'Adressnummer', udf => 1, expressions => [{op => 'Equals', value => 10554 }] }, ] }); # The above command is working and returning the non 7-bit-character apprently in LATIN1-Encoding. # print Dumper($tmp); # I've checked it, looks ok # Just to make shure we got an account die unless $tmp; # Update it $at->update($tmp); print $at->{error}; # prints out: # # ATWSError: Conversion from type 'Byte()' to type 'String' is not valid. # ATWSError: Error updating entity for record number [1]. # The problem is that $tmp->["AccountName"} contains at leat one non 7-bit ASCII # character ("ä" in this case). We got the same error message if we try to insert such an entity. Neither creating nor updating is successfull if at least one non-7-bit-character is used. Because updating such an ntity without making any change also does not work, we believe that WebService-Autotask has a bug. Any help is appreciated. Yours faithfully Markus Steinborn
Subject: AW: [rt.cpan.org #83162] AutoReply: Non 7-bit-ASCII charcters are not working
Date: Wed, 27 Feb 2013 10:02:43 +0000
To: "bug-WebService-Autotask [...] rt.cpan.org" <bug-WebService-Autotask [...] rt.cpan.org>
From: "Steinborn, Markus | Fachin & Friedrich" <m.steinborn [...] fachin-friedrich.de>
Addition: We have been able to find and to fix the bug, see the following tar file for an bug fixed version: https://rapidshare.com/#!download|444p2|3894917066|WebService-Autotask-1.004.tar.gz|13|0|0 The problem have been that UTF-8 strings have been BASE64-encoded by SOAP::Lite, and that does not work. Mit freundlichen Grüßen aus Brakel Markus Steinborn --- Markus Steinborn Diplom-Informatiker Fachin & Friedrich Systems and Services KG Am Sudheimer Weg 3 33034 Brakel Büro:                           05272 / 39 0 18 - 160 Zentrale:         05272 / 39 0 18 - 0 Telefax:                       05272 / 39 0 18 - 9 Web:    http://www.fachin-friedrich.de Mail:     m.steinborn@fachin-friedrich.de Geschäftsführer:           Björn Friedrich Handelsregister:           HRA5175 beim Amtsgericht Paderborn USt-ID Nr.:                   DE814720258   Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
On Wed Feb 06 10:00:44 2013, m.steinborn@fachin-friedrich.de wrote: Show quoted text
> We are using WebService-Autotask version 1.003 on CentOS 5.9, which is > shipped with perl 5.8. Nearly all is working well, but Entities > with non 7-bit ASCII characters (like 'ä', 'ö', 'ü' and 'ß', but > also 'é' and likewise) are causing problems. We can not create or > update an entity containing such characters.
This should be fixed in WebService::Autotask 1.5 (just uploaded). All input is now assumed to be UTF-8 (since that's the only portable method), and tagged as such for SOAP::Lite encoding to XML.