Bug 14827 - Traceback nach überschrittenem Timeout beim suchen von Home-Shares
Traceback nach überschrittenem Timeout beim suchen von Home-Shares
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 2.2
All All
: P5 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Tim Petersen
:
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2009-06-19 12:02 CEST by Janis Meybohm
Modified: 2015-02-09 10:22 CET (History)
3 users (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
Patch gegen UCS 2.2 (997 bytes, patch)
2010-11-19 10:52 CET, Janis Meybohm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2009-06-19 12:02:36 CEST
Das klicken auf den Linux/Unix Tab eines Benutzers erzeugt einen Traceback wenn die LDAP-Suche nach allen schreibbaren Shares ('(&(objectClass=univentionShare)(cn=*)(&(objectClass=univentionShare)(cn=*)(univentionShareWriteable=yes)))') länger als 10 Sekunden dauert:

Traceback (most recent call last): 
   File "/usr/share/univention-webui/modules/requests.py", line 239, in run_request     self.dialog.init(0,xmlout,xmlout.documentElement) 
   File "./unidialog.py", line 63, in init     uniconf.init(self,a,b,c) 
   File "/usr/share/univention-webui/modules/uniconf.py", line 183, in init     obj.init(input,xmlob,self.find_id(node,obj.id)) 
   File "/usr/share/univention-webui/modules/uniconf.py", line 162, in init     self.myinit() 
   File "/usr/share/univention-directory-manager/uniconf/modedit.py", line 3898, in myinit     objs = univention.admin.modules.lookup( mod, None, self.lo, syntax.filter, scope='domain',timeout=1, sizelimit=200) 
   File "/usr/lib/python2.4/site-packages/univention/admin/modules.py", line 669, in lookup     tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit) 
   File "/usr/lib/python2.4/site-packages/univention/admin/handlers/shares/share.py", line 967, in lookup     for dn in lo.searchDn(unicode(filter), base, scope, unique, required, timeout, sizelimit): 
   File "/usr/lib/python2.4/site-packages/univention/admin/uldap.py", line 315, in searchDn     raise univention.admin.uexceptions.ldapError, msg[0]['desc'] 
 IndexError: tuple index out of range
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2009-09-25 17:22:03 CEST
Die aufgetretene LDAP-Server-Exception scheint keine Infos mitzuliefern. Es wurde jetzt ein Workaround eingebaut, der die fehlende "msg" überprüft und neben einem Error-Logeintrag trotzdem eine Exception raised.

Paket importiert und neugebaut. Changelogeintrag vorhanden.
Comment 2 Tim Petersen univentionstaff 2009-11-05 11:16:17 CET
Aktueller 2.3 Master
Mit 3000 angelegten Shares und ca. 30 Sekunden Zugriffszeit keinen Traceback bekommen.
Changelogeintrag vorhanden
-> verified
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:46:54 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".
Comment 4 Janis Meybohm univentionstaff 2010-11-19 10:52:52 CET
Created attachment 2839 [details]
Patch gegen UCS 2.2

Der Patch kann gegen UCS 2.2 angewendet werden:

patch -p0 -i /path/to/bug14827.patch