Closed Bug 411996 Opened 17 years ago Closed 13 years ago

A command-line tool to attach files to bugzilla without a browser.

Categories

(Bugzilla :: Attachments & Requests, enhancement)

3.0.2
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: igor, Unassigned)

References

Details

This is based on a discussion at #developers

It would be nice if there would be a command-line tool to attach files to bugzilla. Ideally it should allow to use a SSH/PGP keys or SSL certificates for authentication for use from scripts and to avoid exposing unencrypted passwords. This would allow for better integration with mercurial.
Right now I can use curl to do the attchments since the tool allows to send post data. But that requires either to add a bugzilla username/password to a script or to extract the current authentication cookies from a browser session.  
I will try to create a perl script using curl that can attach a file of a particular mimetype to a bugzilla bug using the login cookies. It should be straightforward to emulate the form submitting.
    
Assignee: attach-and-request → igor
Version: unspecified → 3.0.2
Depends on: 412074
I am not working on this.
Assignee: igor → attach-and-request
You can use the Bug.add_attachment method from our WebServices since Bugzilla 4.0. No need for a special tool here.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.