Bug#910360: debbugs: get_bug_log SOAP operation truncates message

Don Armstrong <[email protected]> Sat, 13 Oct 2018 10:17:16 -0700
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <20181013171716.cnihuvpx3pqlgptb__29205.4131198258$1539451158$gmane$org@qor.donarmstrong.com>
On Sat, 13 Oct 2018, Michael Albinus wrote:
> > I like this approach better, but I'd suggest that we do something like:
> >
> > attachments => [{attachment_id => 1,
> >                  content_type => 'text/plain',
> >                  content_name => 'if defined',
> >                  # or whatever the right mime headers are; I forget
> >                  },]
> >
> >
> > and then another SOAP interface which does something like:
> >
> > get_bug_attachment($bug_num,$msg_num,$attachment_id)
> 
> OK, I'll go along these lines.

Perfect, thanks!

> > Another option could be for the SOAP call just to return the entire
> > message without doing any MIME parsing; maybe that would be better?
> 
> Hmm, isn't this possible already via
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712979;mbox=yes>?

True; though I think I'd like to avoid having the URLs be an API.

> And it has the disadvantage that the whole MIME parsing is left to the
> different SOAP clients.

Right; I think this is the main argument against this option (returning
whole message).