Page MenuHomePhorge

Debug messages end up in IMAP stream
Closed, ResolvedPublic

Description

Debug information from libcalendaring ends up in the IMAP communication.

Possible solutions are:

  • patch libcalendaring to not have any debugoutput
  • recompile libcalendaring with QT_NO_DEBUG_OUTPUT QT_NO_WARNING_OUTPUT
  • patch libkolab or the calling application to install a custom QtMsgHandler
  • catch this in wallace and Roundcube

Because only a messagehandler makes sure that no debug output makes it to stderr and is thus captured by when piping something through a command line utitlity
such as kolab-format, the best solution is to install a custom message handler in libkolab (nothing uses libcalendaring without libkolab).

Potentially relevant issues:
https://issues.kolab.org/show_bug.cgi?id=4934
https://issues.kolab.org/show_bug.cgi?id=4580
https://issues.kolab.org/show_bug.cgi?id=3742

Details

Ticket Type
Task

Event Timeline

mollekopf raised the priority of this task from 40 to High.Apr 22 2016, 3:03 PM

I was not able to catch this debug information in PHP, I'm not sure it's possible/simple in python. So, my preferred solution would be to fix libkolab/libcalendaring. In my opinion it would be reasonable to get rid of it on packaging level.

A patch has been added to libkolab 0.6.3 and libkolab 0.7 (which has never been released apparently).

To apply the fix build with the cmake flag: -DINTERCEPT_DEBUGMESSAGES=TRUE

The default value of INTERCEPT_DEBUGMESSAGES is set to USE_LIBCALENDARING, meaning it will default to true for server builds.

mollekopf moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 22 2016, 4:50 PM

This will need to be packaged and tested in a setup where this actually happens.

mollekopf moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 28 2016, 1:12 PM
mollekopf moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Apr 29 2016, 2:15 PM
mollekopf claimed this task.