Bug 624845

Summary: bugzilla.updateAttachMimeType returns error
Product: [Community] Bugzilla Reporter: Matěj Cepl <mcepl>
Component: WebServiceAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.6Keywords: TestCaseNeeded
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-18 05:20:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matěj Cepl 2010-08-17 21:47:40 UTC
Description of problem:

When I post this XML-RPC call:

<methodCall>
<methodName>bugzilla.updateAttachMimeType</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>attach_id</name>
<value>
<i4>436535</i4>
</value>
</member>
<member>
<name>mime_type</name>
<value>
<string>text/plain</string>
</value>
</member>
<member>
<name>nomail</name>
<value>
<boolean>1</boolean>
</value>
</member>
</struct>
</value>
</param>
<param>
<value>
<string>mcepl</string>
</value>
</param>
<param>
<value>
<string>kyrios</string>
</value>
</param>
</params>
</methodCall>

I got this response:

<?xml version="1.0" encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultString</name><value><string>Insecure dependency in parameter 1 of DBI::db=HASH(0xcd37560)-&gt;prepare method call while running with -T switch at /loader/0xc40d730/Bugzilla/Extension/RedHat/WebService/CompatBugzilla.pm line 3130.
</string></value></member><member><name>faultCode</name><value><int>-32000</int></value></member></struct></value></fault></methodResponse>

and no change in the MIME type of the attachment happens.

Comment 1 David Lawrence 2010-08-18 05:20:21 UTC
Committed fix and should be in the next code update.