Bug#910360: debbugs: get_bug_log SOAP operation truncates message

Michael Albinus <[email protected]> Wed, 10 Oct 2018 09:06:38 +0200
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <[email protected]>
Don Armstrong <[email protected]> writes:

Hi Don,

> There are two main reasons why I didn't really complete this part of the
> interface:
>
> 1) Returning large attachments in get_mail_log() would be fairly
> surprising to existing users of that interface; it should really return
> some kind of record of the MIME structure which could then be retrieved
> using a second interface

I guess you mean get_bug_log.

Since it returns just empty 'attachments' as of today, and it isn't
specified anywhere what shall be in, it makes sense.

> 2) MIME messages are much more complicated than just a list of
> attachments; there could be additional messages with more attachments
> within them

Yes, although such nested attachments are rather rare in bug
communication I guess.

> So instead of completing the engineering, I punted, and provided the
> important part of the interface (access to the main text part of the
> message), and left the unimportant part for as technical debt.
>
> I'd be happy to accept a patch which modified get_mail_log to also
> include the mime structure in attachments (or something like that), and
> a second SOAP API which provided a mechanism to retrieve those
> attachments.

Will try this. It will take some days, 'tho.

> [As I think SOAP is a technical dead end, I also think that
> a REST API should probably do the same thing... but I'm really short on
> time.]

Good idea. Shall I raise a (wishlist) bug report about?

Best regards, Michael.