Bug#983365: [PATCH] Re: Bug#983365: linphone-desktop: chat messages
Dennis Filder
d.filder at web.de
Wed Mar 3 17:55:14 GMT 2021
Control: tag -1 + patch upstream - help
Control: reassign -1 linphone
On Sun, Feb 28, 2021 at 11:07:31PM +0100, Bernhard Schmidt wrote:
> an updated liblinphone has been uploaded to sid yesterday. Could you
> please try liblinphone10 and liblinphone++10 from sid (4.4.21-2) and
> report back? If it does not work you might need libsoci-core4.0 and
> libsoci-sqlite3-4.0 from unstable as well (4.0.1-4).
I finally found the bug: libsoci_sqlite3 sometimes returns string
where liblinphone unconditionally expects int, long, double etc. which
led to silent std::bad_cast exceptions. I can't say who is actually
to blame (I feel soci should do that conversion already as it knows
what type the user requested, or at least not throw silently), but the
attached patches remedy the issue through some conditional string
conversion and make chat history actually work again in the GUI. They
should really have separated the sqlite3 database code better from the
MySQL code.
I put this in two separate patches to make it easier to remove the
changes to the code for the legacy DB migration in case it causes
problems.
Regards,
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-string-conversions.patch.gz
Type: application/gzip
Size: 2892 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-voip-maintainers/attachments/20210303/792427a4/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-string-conversions-legacydb.patch.gz
Type: application/gzip
Size: 1627 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-voip-maintainers/attachments/20210303/792427a4/attachment-0001.gz>
More information about the Pkg-voip-maintainers
mailing list