* Helmut Grohne: " Bug#1033055: tryton-server-uwsgi.postinst: is very fragile"
  (Thu, 16 Mar 2023 12:44:22 +0100):

Hi Helmut,

thanks for testing the package and your patch, will have a look at it shortly.

Cheers,
Mathias

> Source: tryton-server
> Version: 6.0.29-1
> Severity: important
> Tags: patch
> 
> Hi Matthias,
> 
> I noticed that tryton-server-uwsgi.postinst is quite fragile. When I
> tried to install it, I got this failure:
> 
> | /var/lib/dpkg/info/tryton-server-uwsgi.postinst: 46: [:
> | postgresql://tryton@/: unexpected operator sed: -e expression #1, char 56:
> | unterminated `s' command dpkg: error processing package tryton-server-uwsgi
> | (--configure): installed tryton-server-uwsgi package post-installation
> | script subprocess returned error exit status 1 Processing triggers for
> | man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+deb11u5) ...
> | Errors were encountered while processing:
> |  tryton-server-uwsgi
> | E: Sub-process /usr/bin/dpkg returned an error code (1)  
> 
> Admittedly, this was using 6.0.29-1~11bullseye+1, but it applies to
> unstable as well, so I'll report here.
> 
> While investigating this in encountered multiple issues:
> 
>  * A general lack of quoting. It is much safer to quote shell variables
>    to avoid unintentional word splitting. This actually seems to be
>    causing the problem above.
>  * Fragile parsing of trytond.conf, which is an ini file with sections.
>    The uri that is being parsed can be found in multiple sections such
>    as database and email. It would be good to use section-aware parsing.
> 
> I'm attaching a patch that addresses all of the above and think that
> this should be fixed in bookworm and in the backports provided at
> https://debian.m9s.biz/debian.
> 
> Thanks in advance
> 
> Helmut



-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6

Attachment: pgp7M3o2HyMSi.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to