Ability to download attached .patch files in RAW format

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Kunda
Posts: 9
Joined: 01 Jul 2015, 22:15

Ability to download attached .patch files in RAW format

Post by Kunda »

1) We want to create a script that crawls a mantisbt issue
2) finds an attached .patch file
3) and either downloads it or displays it in RAW format (pure text) so it can be then piped in to a diff to automatically patch a project's trunk

Is this possible?

Also, Is it possible to do step 2 and 3 via the CLI ?
Kunda
Posts: 9
Joined: 01 Jul 2015, 22:15

Re: Ability to download attached .patch files in RAW format

Post by Kunda »

bump
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Ability to download attached .patch files in RAW format

Post by atrol »

A client side solution could be implemented by using the Mantis SOAP API or by direct access of the database (if attachments are stored in database) or by any client that sends HTTP requests and interprets the answers.
A server side solution could be implemented in PHP using the internal Mantis API or by direct access of the database and the filesystem (if attachments are stored on disk)
Please use Search before posting and read the Manual
Post Reply