Bug#864719: [Pkg-openldap-devel] Bug#864719: slapd: also when upgrading from wheezy to jessie, fails to configure when olcSuffix contains a backslash-escaped umlaut
Hi, > Multiple issues, I'm afraid. […] > Reopened for fixing properly... this sounds like a lot of fixing, thanks for caring, and thanks for the feedback. Good luck, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
Bug#864719: [Pkg-openldap-devel] Bug#864719: slapd: also when upgrading from wheezy to jessie, fails to configure when olcSuffix contains a backslash-escaped umlaut
On Wed, Feb 21, 2018 at 08:33:02PM +0100, Thorsten Glaser wrote: I’ve just got hit *again* by this… this time on a long due wheezy to jessie upgrade. Multiple issues, I'm afraid. * I haven't gotten to a jessie update yet - only sid and stretch so far. * My patch missed several occurrences of "| while read suffix". I think the one you attached has all of them. I don't know what I was thinking but I must have failed to test a case involving a dump/reload (as with wheezy->jessie). * The grep change I applied doesn't work anyway for jessie and later, because the patterns gained an anchor in #723957. The command: grep -Fl "^olcSuffix: $1" obviously doesn't work. What I actually wanted is probably more like: grep -Flx "olcSuffix: $1" Not only does this imply I failed to test a dump/reload upgrade, but it looks like I _also_ broke update_permissions() for affected suffixes. Shame on me! Now wheezy->jessie was the last upgrade where dump/reload was mandatory, so most users of newer systems wouldn't hit this, but it can be reproduced by setting slapd/dump_databases: always. Reopened for fixing properly...
Bug#864719: slapd: also when upgrading from wheezy to jessie, fails to configure when olcSuffix contains a backslash-escaped umlaut
found 864719 2.4.40+dfsg-1+deb8u3 thanks I’ve just got hit *again* by this… this time on a long due wheezy to jessie upgrade. bye, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg * **Besuchen Sie uns auf der EuroCIS!** 27. Februar bis 01. März 2018, Messe Düsseldorf / **Halle 10,** ** Stand F15** Leading Trade Fair for Retail Technology [www.tarent.de/eurocis](http://www.tarent.de/eurocis) Wir empfehlen unsere Vorträge ?Preisbeobachtung, Händlermonitoring, Plagiaterkennung: Ihre Wettbewerbsvorteile? am 27. Februar, 14:00 Uhr im EuroCIS Forum / Halle 10, Stand F04 ?Internet of Things ? Der Handel im Wandel? am 01. März, 11:30 Uhr im Omnichannel Forum / Halle 10, Stand A70 * **Visit us at EuroCIS!** 27th February to 1st March, 2018, Messe Düsseldorf / **Hall 10,** ** Booth F15** Leading Trade Fair for Retail Technology [www.tarent.de/eurocis](http://www.tarent.de/eurocis) We recommend our presentations ?Your view on prices, retailers and plagiarism: Competitive advantages with monitoring apps? on 27th February, 2 pm at EuroCIS Forum / Hall 10, Booth F04 ?Internet of Things ? Retailing in a Changing World? on 1st March, 11:30 am at Omnichannel Forum / Hall 10, Booth A70 *
Bug#864719: slapd: also when upgrading from wheezy to jessie, fails to configure when olcSuffix contains a backslash-escaped umlaut
Dixi quod… > > I’ve just got hit *again* by this… this time on a > > long due wheezy to jessie upgrade. > > Even worse: here, it hits in *pre*inst… Patched the preinst, repacked the .deb file, got it to unpack. bye, //mirabilos -- tarent solutions GmbH Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/ Tel: +49 228 54881-393 • Fax: +49 228 54881-235 HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941 Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg * **Besuchen Sie uns auf der EuroCIS!** 27. Februar bis 01. März 2018, Messe Düsseldorf / **Halle 10,** ** Stand F15** Leading Trade Fair for Retail Technology [www.tarent.de/eurocis](http://www.tarent.de/eurocis) Wir empfehlen unsere Vorträge ?Preisbeobachtung, Händlermonitoring, Plagiaterkennung: Ihre Wettbewerbsvorteile? am 27. Februar, 14:00 Uhr im EuroCIS Forum / Halle 10, Stand F04 ?Internet of Things ? Der Handel im Wandel? am 01. März, 11:30 Uhr im Omnichannel Forum / Halle 10, Stand A70 * **Visit us at EuroCIS!** 27th February to 1st March, 2018, Messe Düsseldorf / **Hall 10,** ** Booth F15** Leading Trade Fair for Retail Technology [www.tarent.de/eurocis](http://www.tarent.de/eurocis) We recommend our presentations ?Your view on prices, retailers and plagiarism: Competitive advantages with monitoring apps? on 27th February, 2 pm at EuroCIS Forum / Hall 10, Booth F04 ?Internet of Things ? Retailing in a Changing World? on 1st March, 11:30 am at Omnichannel Forum / Hall 10, Booth A70 *--- ../preinst 2018-02-21 20:27:00.0 +0100 +++ c/preinst 2018-02-21 20:36:59.709835179 +0100 @@ -108,7 +109,7 @@ } # }}} update_databases_permissions() { # {{{ - get_suffix | while read suffix; do + get_suffix | while read -r suffix; do dbdir=`get_directory "$suffix"` update_permissions "$dbdir" done @@ -171,7 +172,7 @@ dir=`database_dumping_destdir` echo >&2 " Dumping to $dir: " - (get_suffix | while read suffix; do + (get_suffix | while read -r suffix; do dbdir=`get_directory "$suffix"` if [ -n "$dbdir" ]; then file="$dir/$suffix.ldif" @@ -202,7 +203,7 @@ dir=`database_dumping_destdir` echo >&2 " Loading from $dir: " - get_suffix | while read suffix; do + get_suffix | while read -r suffix; do dbdir=`get_directory "$suffix"` if [ -z "$dbdir" ]; then continue @@ -257,7 +258,7 @@ # }}} move_incompatible_databases_away() { # {{{ echo >&2 " Moving old database directories to /var/backups:" - (get_suffix | while read suffix; do + (get_suffix | while read -r suffix; do dbdir=`get_directory "$suffix"` move_old_database_away "$dbdir" "$suffix" <&5 done) 5<&0