Page 1 of 1

Ability to download attached .patch files in RAW format

Posted: 02 Nov 2015, 17:32
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 ?

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

Posted: 09 Nov 2015, 14:47
by Kunda
bump

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

Posted: 11 Nov 2015, 16:05
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)