Skip Menu |
 

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 123827
Status: new
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: andy [...] hmc.edu
Cc:
AdminCc:

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



X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:99
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Exchange-Antispam-Report-Test: UriScan:(65518286179614);
X-Spam-Score: -1.399
X-MS-Publictraffictype: Email
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5701924028A for <cpan-bug+SOAP-Lite [...] hipster.bestpractical.com>; Wed, 6 Dec 2017 10:01:26 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id he3EFOFN7IMk for <cpan-bug+SOAP-Lite [...] hipster.bestpractical.com>; Wed, 6 Dec 2017 10:01:24 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id A1CF224024B for <bug-SOAP-Lite [...] rt.cpan.org>; Wed, 6 Dec 2017 10:01:24 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id B008511DA2B for <bug-SOAP-Lite [...] rt.cpan.org>; Wed, 6 Dec 2017 07:01:15 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 0623811D9BB for <bug-SOAP-Lite [...] rt.cpan.org>; Wed, 6 Dec 2017 07:01:06 -0800 (PST)
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0100.outbound.protection.outlook.com [104.47.38.100]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 390D111D8A2 for <bug-SOAP-Lite [...] rt.cpan.org>; Wed, 6 Dec 2017 07:00:56 -0800 (PST)
Received: from MWHPR04MB3773.namprd04.prod.outlook.com (10.172.169.139) by MWHPR04MB3774.namprd04.prod.outlook.com (10.172.169.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 6 Dec 2017 15:00:54 +0000
Received: from MWHPR04MB3773.namprd04.prod.outlook.com ([10.172.169.139]) by MWHPR04MB3773.namprd04.prod.outlook.com ([10.172.169.139]) with mapi id 15.20.0282.012; Wed, 6 Dec 2017 15:00:54 +0000
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] hmc2.onmicrosoft.com
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=andy [...] hmc.edu;
X-MS-Exchange-Antispam-Srfa-Diagnostics: SSOS;
Delivered-To: cpan-bug+SOAP-Lite [...] hipster.bestpractical.com
Subject: "Unspecified namespace for type" on value for attribute named "type" but not in XSI namespace
Thread-Index: AQHTbqI3xlTm6Gp3pUe5YZ8EyRyT5g==
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmc2.onmicrosoft.com; s=selector1-hmc-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=If9TVCWYs4dQ7DUkgpVBHGWGE+I/c+Ugu2AS3qJOXGw=; b=xluQ/M+aECnvz+kjrQ9omI39TJW0QxOZj6pFvdWun1cAVf3h+amhX97zspNzTuISEHTBuhNT9DSXhJ5YIDUyjnsI7QGhJWBLbf5kq7kyw3I/IMMlx2nI7KzUqzr8wBkXG2O4FGa7vDxBCwagFS+J2xukDqD18/saeC4XuWTfpdc=
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, FROM_EDU_TLD 0, NO_URI_HTTPS 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __OEM_PRICE 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_OUTLOOK 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NS , __URI_WITH_PATH 0, __zen.spamhaus.org_ERROR '
Date: Wed, 6 Dec 2017 15:00:54 +0000
X-Originatororg: hmc.edu
X-MS-Office365-Filtering-Correlation-ID: 4b3fff45-a3af-45f0-c5c2-08d53cba2605
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.12.6.145117
X-MS-Exchange-Crosstenant-ID: 4c62793b-adf4-4d79-bb39-5dba9701b03f
To: "bug-SOAP-Lite [...] rt.cpan.org" <bug-SOAP-Lite [...] rt.cpan.org>
Content-Transfer-Encoding: quoted-printable
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231022)(10201501046)(3002001)(6041248)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011);SRVR:MWHPR04MB3774;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR04MB3774;
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286);SRVR:MWHPR04MB3774;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39830400002)(346002)(376002)(366004)(189003)(199004)(102836003)(88552002)(14454004)(33656002)(97736004)(3280700002)(3660700001)(25786009)(68736007)(575784001)(478600001)(81166006)(86362001)(81156014)(8676002)(6506006)(305945005)(413944005)(7736002)(74316002)(2906002)(53936002)(77096006)(9686003)(6306002)(55016002)(5640700003)(786003)(101416001)(6436002)(5660300001)(316002)(2900100001)(2501003)(75432002)(99286004)(6116002)(7696005)(6916009)(8936002)(2351001)(105586002)(106356001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR04MB3774;H:MWHPR04MB3773.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en;
X-MS-Exchange-Crosstenant-Network-Message-ID: 4b3fff45-a3af-45f0-c5c2-08d53cba2605
X-Spam-Status: No, score=-1.399 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_FAIL=0.001, URI_NOVOWEL=0.5] autolearn=no
Received-SPF: None (protection.outlook.com: hmc.edu does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: 1;MWHPR04MB3774;6:4JWihfitRVsg725H5mLXP8QQjyW/Ewv45Y6vELUM74yO5jVH7qI7vI1GZD7Zs/HN79XgYOHG26vxr4ghpoPon7YN4w/nYZLtXUxCfE8efwEVO3OuNpq1JOHeYdHP98K0MMIy8j4Et8hqNmNyIb3eTVuPC6HubPU3O3608Gyx611JOlJQ0WPDUn2A7iKPyYG85spV+RqLY8DmueVjSgymkavZe1ZaM6jjQTvG64lZ+qq/VIoCjt7eE6BLWskGGIk1KmVieD2CUby0YzRgSN2mWGBcbrh06n/TmR0R4ODT4QfS2LgJc0CXVagthjzPNZl2Pi8NzXkAJjv4dRZDXFfQfGS/dfTLWmMfhft5JmKfi+Q=;5:WCD08hbcDOnUnVJIvUYLFhAegJQzBPljNwAn5TtPFi3t8CKOa+AfHj9jq6/raFyIX7SKm5DvobeY/0VqHBlssgqzsz9mBWt+c8GNsPPwgaMqQ/Dl+R9Mk3INjeTkZR4+Wnd8P9Jv7OvtkneBNAcyriJXLDIb9QT8PpsnVXcWVBs=;24:cqGx+9maiP+LzdgSvNiF0ek7bL0k0eE3mzOxa9yMmM1HAnBgL1ZHoDZtfFwQj8B1zLaZRok01PVjp46XQQZP1IrZNhmsZFVUbXGs0GV8Z68=;7:PgVmIbmHoG8LsmAD6mmzai+hcgf5wYEV9LAJnshA0OS3NjgNKLLv6e6b7pUYh1cd+vBeYBbDXYhAwCRfeUpVWw50yjzKnvimGDq3kS4sHrQgFenIsvEyCSbpuvX9CLdNo2BUa8W12/9y7xvPGRgfIayjpdO9DFzYEZaLd5pfr76l+nMB3AUI0HZWzHok75FBAZDsmJ1QiPE8ZKv3Ehsif48/3ysR4fc+PysKaKcyEIweuUUn+Dkt1igt5EP4w+hv
X-MS-Traffictypediagnostic: MWHPR04MB3774:
Content-Language: en-US
Message-ID: <MWHPR04MB377395A66B14DD8AD81A4FE1D4320 [...] MWHPR04MB3773.namprd04.prod.outlook.com>
X-MS-Tnef-Correlator:
X-Microsoft-Antispam-PRVS: <MWHPR04MB3774D5DC724E25B439CE92D8D4320 [...] MWHPR04MB3774.namprd04.prod.outlook.com>
Return-Path: <andy [...] hmc.edu>
X-MS-Exchange-Crosstenant-Originalarrivaltime: 06 Dec 2017 15:00:54.0570 (UTC)
X-Original-To: cpan-bug+SOAP-Lite [...] hipster.bestpractical.com
X-RT-Mail-Extension: soap-lite
X-Forefront-PRVS: 05134F8B4F
Thread-Topic: "Unspecified namespace for type" on value for attribute named "type" but not in XSI namespace
X-MS-Has-Attach:
X-Originating-Ip: [2620:102:2001:100:5d41:223a:95b6:c97e]
Accept-Language: en-US
X-MS-Exchange-Transport-Crosstenantheadersstamped: MWHPR04MB3774
From: Andy Davenport <andy [...] hmc.edu>
X-RT-Original-Encoding: iso-8859-1
X-RT-Interface: Email
Content-Length: 2851
Download (untitled) / with headers
text/plain 2.7k
Dear SOAP::Lite folk, I am getting "Unspecified namespace for type" from "decode_object" in Lite.pm and I think it is wrongly requiring a namespace on the value for an attribute in my SOM. I think this is a bug at around line 2225 in "decode_object" in Lite.pm. SOAP::Lite complains thusly when decoding the SOM returned by a successful SOAP call: Unspecified namespace for type 'WID' <?xml version='1.0' encoding='UTF-8'?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wd:Change_Other_IDs_Response xmlns:wd="urn:com.workday/bsvc" wd:version="v29.1"><wd:Custom_Identifier_Event_Reference><wd:ID wd:type="WID">b1e0015e98d501192f06811d0b53cc25</wd:ID></wd:Custom_Identifier_Event_Reference></wd:Change_Other_IDs_Response></env:Body></env:Envelope> at [...] Here is the same thing wrapped: <?xml version='1.0' encoding='UTF-8'?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Body> <wd:Change_Other_IDs_Response xmlns:wd="urn:com.workday/bsvc" wd:version="v29.1"> <wd:Custom_Identifier_Event_Reference> <wd:ID wd:type="WID">b1e0015e98d501192f06811d0b53cc25</wd:ID> </wd:Custom_Identifier_Event_Reference> </wd:Change_Other_IDs_Response> </env:Body> </env:Envelope> at [...] The culprit seems to be the un-namespace-qualified value "WID" for attribute wd:type here: <wd:ID wd:type="WID">b1e0015e98d501192f06811d0b53cc25</wd:ID> I believe that the code at around line 2225 in "decode_object" in Lite.pm demands a namespace (either explicit or default) of *values* for attributes when the localpart name of the attribute is "type" or "arrayType" *regardless* of the namespace of the name of the attribute. I don't think it should do that. I believe that a fix similar to this is warranted: SOAP/Lite.pm *** 2220,2229 **** --- 2220,2230 ---- $1 =~ /^[xX][mM][lL]/ || $uris{$1} && do { $attrs{SOAP::Utils::longname($uris{$1}, $2)} = do { my $value = $attrs{$_}; + $uris{$1} ne 'http://www.w3.org/2001/XMLSchema-instance' || $2 ne 'type' && $2 ne 'arrayType' ? $value : SOAP::Utils::longname($value =~ m/^($SOAP::Constants::NSMASK?):(${SOAP::Constants::NSMASK}(?:\[[\d,]*\])*)/ ? ($uris{$1} || die("Unresolved prefix '$1' for attribute value '$value'\n"), $2) : ($uris{''} || die("Unspecified namespace for type '$value'\n"), $value) Thank you. Andy Davenport Harvey Mudd College andy@hmc.edu -------------------------------- SOAP-Lite-1.22 This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Linux xxxxxxxx.hmc.edu 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.