Use of uninitialized value $value in XMLRPC.pm

UNCONFIRMED
Unassigned

Status

()

Bugzilla
WebService
UNCONFIRMED
11 months ago
11 months ago

People

(Reporter: jan.hollevoet, Unassigned)

Tracking

5.0.3

Details

(Reporter)

Description

11 months ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce:

Using XMLRPC interface, the following request is sent:
###############
#   REQUEST   #
###############

POST /xmlrpc.cgi HTTP/1.1
Host: pvatst01:8080
Content-Length: 633
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: Python/Bugzilla
Connection: keep-alive
Content-Type: text/xml

<?xml version='1.0'?>
<methodCall>
<methodName>Bug.search</methodName>
<params>
<param>
<value><struct>
<member>
<name>bug_id</name>
<value><string>21570</string></value>
</member>
<member>
<name>columnlist</name>
<value><string>id bug_severity priority product component assigned_to bug_status resolution short_desc cf_epic cf_sprintteam cf_sprintnumber qa_contact target_milestone cf_multiple_target cf_storypoints cf_needsexplicittest keywords cf_issuetype</string></value> </member> <member> <name>Bugzilla_token</name> <value><string>124-vs3k5X6HqH</string></value>
</member>
</struct></value>
</param>
</params>
</methodCall>. This gives the following response:

################
#   RESPONSE   #
################

HTTP/1.1 200 OK
Date: Wed, 28 Dec 2016 10:56:49 GMT
Server: Apache/2.4.6 (Scientific Linux) mod_perl/2.0.10 Perl/v5.16.3
SOAPServer: SOAP::Lite/Perl/1.17
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
ETag: 2lB0YqqQaBgybYjUluI9lg
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/xml

1421
<?xml version="1.0" 
encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>bugs</name><value><array><data><value><struct><member><name>priority</name><value><string>None</string></value></member><member><name>cf_relnote</name><value><string>---</string></value></member><member><name>creator</name><value><string>******</string></value></member><member><name>blocks</name><value><array><data
/></array></value></member><member><name>assigned_to_detail</name><value><struct><member><name>real_name</name><value><string>*****</string></value></member><member><name>email</name><value><string>*****</string></value></member><member><name>name</name><value><string>*****</string></value></member><member><name>id</name><value><int>105</int></value></member></struct></value></member><member><name>last_change_time</name><value><dateTime.iso8601>20161109T15:48:21</dateTime.iso8601></value></member><member><name>is_cc_accessible</name><value><boolean>1</boolean></value></member><member><name>keywords</name><value><array><data
/></array></value></member><member><name>creator_detail</name><value><struct><member><name>real_name</name><value><string>****</string></value></member><member><name>email</name><value><string>****</string></value></member><member><name>name</name><value><string>****</string></value></member><member><name>id</name><value><int>105</int></value></member></struct></value></member><member><name>cf_waivedfrom</name><value><array><data
/></array></value></member><member><name>cc</name><value><array><data
/></array></value></member><member><name>see_also</name><value><array><data
/></array></value></member><member><name>groups</name><value><array><data
/></array></value></member><member><name>assigned_to</name><value><string>****</string></value></member><member><name>url</name><value><string
/></value></member><member><name>cf_relnotetxt</name><value><string
/></value></member><member><name>qa_contact</name><value><string>****</string></value></member><member><name>creation_time</name><value><dateTime.iso8601>20151006T12:14:35</dateTime.iso8601></value></member><member><name>whiteboard</name><value><string
/></value></member><member><name>id</name><value><int>21570</int></value></member><member><name>cf_platforms</name><value><array><data
/></array></value></member><member><name>depends_on</name><value><array><data
/></array></value></member><member><name>cf_sprintteam</name><value><string>INF</string></value></member><member><name>cf_multiple_target</name><value><array><data
/></array></value></member><member><name>cf_greenbarstatus</name><value><string>---</string></value></member><member><name>cf_fixed_on_branch</name><value><array><data
/></array></value></member><member><name>qa_contact_detail</name><value><struct><member><name>real_name</name><value><string>*****</string></value></member><member><name>email</name><value><string>*****</string></value></member><member><name>name</name><value><string>*****</string></value></member><member><name>id</name><value><int>22</int></value></member></struct></value></member><member><name>resolution</name><value><string
/></value></member><member><name>cf_verified_on_branch</name><value><array><data
/></array></value></member><member><name>classification</name><value><string>Unclassified</string></value></member><member><name>alias</name><value><array><data
/></array></value></member><member><name>op_sys</name><value><string>-</string></value></member><member><name>status</name><value><string>NEW</string></value></member><member><name>cc_detail</name><value><array><data
/></array></value></member><member><name>summary</name><value><string>EPIC: 
ATS - Keyword
development</string></value></member><member><name>cf_storypoints</name><value><string
/></value></member><member><name>is_open</name><value><boolean>1</boolean></value></member><member><name>platform</name><value><string>-see
other
field-</string></value></member><member><name>severity</name><value><string>normal</string></value></member><member><name>cf_sprintnumber</name><value><string
/></value></member><member><name>cf_needsexplicittest</name><value><string>---</string></value></member><member><name>flags</name><value><array><data
/></array></value></member><member><name>version</name><value><string>unspecified</string></value></member><member><name>cf_issuetype</name><value><string>epic</string></value></member><member><name>cf_products</name><value><array><data
/></array></value></member><member><name>cf_salesforcenr</name><value><string
/></value></member><member><name>component</name><value><string>robot</string></value></member><member><name>is_creator_accessible</name><value><boolean>1</boolean></value></member><member><name>target_milestone</name><value><string>asap</string></value></member><member><name>is_confirmed</name><value><boolean>1</boolean></value></member><member><name>product</name><value><string>tst/ats</string></value></member></struct></value></data></array></value></member></struct></value></param></params></methodResponse> 

Note 
- this was done with the python-bugzilla module (https://pypi.python.org/pypi/python-bugzilla/1.2.2). 
- I replace mail adresses, user name, name in the response with ****





Actual results:

The response is ok, but in the error log of apache the following errors are seen 

[Wed Jan 04 12:02:50.156681 2017] [cgi:error] [pid 10238] [client 192.168.107.182:34900] AH01215: [Wed Jan  4 12:02:50 2017] xmlrpc.cgi: Use of uninitialized value $value in substitution (s///) at Bugzilla/WebService/Server/XMLRPC.pm line 36, <DATA> line 1.
[Wed Jan 04 12:02:50.156745 2017] [cgi:error] [pid 10238] [client 192.168.107.182:34900] AH01215: [Wed Jan  4 12:02:50 2017] xmlrpc.cgi: Use of uninitialized value $value in substitution (s///) at Bugzilla/WebService/Server/XMLRPC.pm line 36, <DATA> line 1.
... (a lot)



Expected results:

No error in the error.log of the web server.
(Reporter)

Updated

11 months ago
Summary: Use of uninitialized value $value XMLRPC.pm → Use of uninitialized value $value in XMLRPC.pm
You need to log in before you can comment on or make changes to this bug.