Bug 624845 - bugzilla.updateAttachMimeType returns error
Summary: bugzilla.updateAttachMimeType returns error
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 3.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: PnT DevOps Devs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-17 21:47 UTC by Matěj Cepl
Modified: 2013-06-24 01:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-18 05:20:21 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.