Bug 1010273 - Bug.update_attachment causes error when updating filename using key 'file_name'
Summary: Bug.update_attachment causes error when updating filename using key 'file_name'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.4
Assignee: Simon Green
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-20 12:20 UTC by Simon Green
Modified: 2018-12-09 06:29 UTC (History)
3 users (show)

Fixed In Version: 4.4.0009
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-04 00:46:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 917483 0 None None None Never

Description Simon Green 2013-09-20 12:20:12 UTC
When I was reviewing this new feature I failed to test the changing of the file name. The documentation states to use 'file_name' as the parameter but internally it is 'filename'. 

So I get the error:
The requested method 'Bugzilla::Attachment::set_file_name' was not found.

I will create a patch that converts 'file_name' to 'filename' before set_all() so that we can keep the param naming for attachments consistent.

Comment 2 Simon Green 2013-10-04 00:46:15 UTC
This change is now live. If there are any issues, do not reopen this bug.
Instead, you should create a new bug and reference this bug.

  -- simon


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