Bug 16620 - ucr python traceback bei squid Installation
ucr python traceback bei squid Installation
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Squid
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Janek Walkenhorst
:
Depends on: 14412
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-27 14:25 CET by Daniel Hofmann
Modified: 2009-12-21 08:46 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Hofmann univentionstaff 2009-11-27 14:25:40 CET
root@master09:~# apt-get install univention-squid 
Reading package lists... Done
[..]
Authentication warning overridden.
Get:1 http://master09.produkt.test 2.3-0/all/ squid-common 2.7.STABLE3-4.1.34.200909221131 [495kB]
Get:2 http://master09.produkt.test 2.3-0/amd64/ squid 2.7.STABLE3-4.1.34.200909221131 [768kB]
Get:3 http://master09.produkt.test 2.3-0/amd64/ winbind 2:3.3.9-1.399.200911101754 [4072kB]
Get:4 http://master09.produkt.test 2.3-0/all/ univention-squid 3.0.2-1.79.200910131354 [7494B]
Fetched 5342kB in 0s (17.7MB/s)    
Preconfiguring packages ...
Selecting previously deselected package squid-common.
(Reading database ... 103535 files and directories currently installed.)
Unpacking squid-common (from .../squid-common_2.7.STABLE3-4.1.34.200909221131_all.deb) ...
Selecting previously deselected package squid.
Unpacking squid (from .../squid_2.7.STABLE3-4.1.34.200909221131_amd64.deb) ...
Selecting previously deselected package winbind.
Unpacking winbind (from .../winbind_2%3a3.3.9-1.399.200911101754_amd64.deb) ...
Selecting previously deselected package univention-squid.
Unpacking univention-squid (from .../univention-squid_3.0.2-1.79.200910131354_all.deb) ...
Processing triggers for man-db ...
Setting up squid-common (2.7.STABLE3-4.1.34.200909221131) ...
Setting up squid (2.7.STABLE3-4.1.34.200909221131) ...
Creating squid spool directory structure
2009/11/27 09:11:51| Creating Swap Directories
 * Restarting Squid HTTP proxy squid                                                                                                       [ ok ] 
Setting up winbind (2:3.3.9-1.399.200911101754) ...
 * Starting the Winbind daemon winbind                                                                                                     [ ok ] 
Setting up univention-squid (3.0.2-1.79.200910131354) ...
File: /etc/squid/squid.conf
Traceback (most recent call last):
  File "<stdin>", line 24, in ?
AttributeError: 'NoneType' object has no attribute 'lower'
File: /etc/security/netfilter.d/20squid
Adding user `proxy' to group `winbindd_priv' ...
Adding user proxy to group winbindd_priv
Done.
Create squid/transparentproxy
File: /etc/squid/squid.conf
File: /etc/security/netfilter.d/20squid
Create squid/ldapauth
File: /etc/squid/squid.conf
Create squid/cache
[..]

Der Fehler beeinträchtigt die Funktionalität nicht (zumindest nicht unmittelbar ersichtlich).
Beim Update scheint er nicht aufzutreten (siehe bug 16207)
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2009-11-27 16:01:39 CET
Im Pythoncode wurde der Wert ohne Defaultvalue per UCR.get().lower() ausgelesen. Während der Installation wird erst das Template committed und dann der Wert der Variable gesetzt.
Es wurde jetzt ein Defaultvalue ("no") gesetzt.

Changelogeintrag nicht notwendig, da der Fehler erst mit 2.3 eingeführt wurde.
Comment 2 Janek Walkenhorst univentionstaff 2009-11-27 16:49:02 CET
Hole:1 http://omar.knut.univention.de ucs_2.3-0/all/ squid-common 2.7.STABLE3-4.1.34.200909221131 [495kB]
Hole:2 http://omar.knut.univention.de ucs_2.3-0/amd64/ squid 2.7.STABLE3-4.1.34.200909221131 [768kB]
Hole:3 http://omar.knut.univention.de ucs_2.3-0/amd64/ winbind 2:3.3.9-1.399.200911101754 [4072kB]
Hole:4 http://omar.knut.univention.de ucs_2.3-0/all/ univention-squid 3.0.3-1.81.200911271602 [7518B]
[..]
Richte univention-squid ein (3.0.3-1.81.200911271602) ...
File: /etc/squid/squid.conf
File: /etc/security/netfilter.d/20squid
Füge Benutzer »proxy« der Gruppe »winbindd_priv« hinzu ...
Füge Benutzer proxy zu Gruppe winbindd_priv hinzu
Fertig.
Create squid/transparentproxy
File: /etc/squid/squid.conf
File: /etc/security/netfilter.d/20squid
Create squid/ldapauth
File: /etc/squid/squid.conf
Create squid/cache

Verified: Traceback ist erscheint nicht.
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:46:20 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".