In the core repository there is a Python script bin/get-bugzilla-attachments-by-mimetype This can download all sorts of interesting bug attachments ("bugdocs") for testing purposes from various bug trackers, currently including bugs.freedesktop.org, openoffice.org bugzilla and bugzilla.redhat.com. There are more bug trackers that contain interesting attachments, and support for these should be added: - Novell bugzilla - Launchpad - whatever is used by KOffice/Calligra - whatever is used by AbiWord/Gnumeric - anything else likely to contain ODF or other office format bugdocs This requires no LO code or C++ knowledge whatsoever.
For launchpad, this: https://help.launchpad.net/API/launchpadlib is the way to go.
FWIW, IIRC the reason I didn't just implement it (as was my first attempt) get-bugzilla-attachment-by-mimetype with python-bugzilla or similar was that classic issuezilla didn't support xmlrpc and there were little glitches on different bugzilla's. Other's milage may vary. Currently problem with novell bugzilla IIRC is that it doesn't provide the body of the attachment in the default query like the redhat and fdo ones do out-of-the-box, so probably just a little tweak needed to do that
Created attachment 60015 [details] Patch implementing required tasks Attaching the patch adding support for Novell, KDE (for KOffice/Calligra), GNOME (for Gnumeric), AbiSource (for AbiWord) bugzillas and Launchpad.
Launchpad developers said that they don't have enough man power to improve the bug searching capabilities of launchpad api[1]. [1] https://bugs.launchpad.net/launchpad/+bug/982832
Gökçen Eraslan committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=04101329727b355752f31684d27bd86f71b88640 fdo#46538 Easyhack: Add support for more bug trackers to get-bugzilla-attachments-by-mimetype
This is working great btw, thanks.
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillPython SkillInfra ) [NinjaEdit]