Bug 12569 - Traceback UDM beim Generieren eines Reports
Traceback UDM beim Generieren eines Reports
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Reports
UCS 2.0
All All
: P5 normal (vote)
: UCS 2.3
Assigned To: Felix Botner
Tim Petersen
:
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2008-11-07 10:17 CET by Murat Odabas
Modified: 2009-12-21 08:46 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

Note You need to log in before you can comment on or make changes to this bug.
Description Murat Odabas univentionstaff 2008-11-07 10:17:22 CET
Dies wurde von einem UCS Benutzer gemeldet. Eine Nachfrage zur genauen Vorgehensweise hat nichts gebracht.

Ticket Nr.:2008102810000217


Ein Python-Fehler ist aufgetreten:
Traceback (most recent call last):
   File "/usr/share/univention-webui/modules/requests.py", line 226, 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 178, in
init     obj.init(input,xmlob,self.find_id(node,obj.id))
   File "/usr/share/univention-webui/modules/uniconf.py", line 157, in
init     self.myinit()
   File "/usr/share/univention-directory-manager/uniconf/modwizard.py",
line 1359, in myinit     self.report( self.save.get(
'wizard_search_type', self.save.get( "uc_virtualmodule" ) ) )
   File "/usr/share/univention-directory-manager/uniconf/modwizard.py",
line 421, in report     nresults, module_descr, report_name, url,
rep_type = self.create_report()
   File "/usr/share/univention-directory-manager/uniconf/modwizard.py",
line 615, in create_report     tmpfile = doc.create_source( [ item[ 1 ]
for item in sorting_helper_list ] )
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/document.py",
line 106, in create_source     interpret.run()
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/interpreter.py",
line 60, in run     self.resolve( token, base_objects[ 0 ] )
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/interpreter.py",
line 105, in resolve     new_base = admin.get_object( token.attrs[
'module' ], value )
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line
168, in get_object     return _admin.get_object( module, dn )
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line
94, in get_object     i, j = self.format_property( new.descriptions,
key, value )
   File
"/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line
119, in format_property     v = v.replace( '\\', '$\\backslash$' )
AttributeError: 'list' object has no attribute 'replace'
Comment 1 Murat Odabas univentionstaff 2008-11-26 15:14:41 CET
Das gleiche Problem wurde erneut von einem Kunden gemeldet.

Ticket Nr.: 2008112510000061
Comment 2 Murat Odabas univentionstaff 2009-03-11 09:23:00 CET
Der gleiche Traceback wurde wieder von einem Partner/Kunden gemeldet:

Ticket Nr.: 2009031010000173
Comment 3 Ingo Steuwer univentionstaff 2009-08-19 14:31:51 CEST
Ich bekomme den wenn ich hier intern im UDM einen Rechner-Report erstellen will, da sich die Zeilennummern geändert haben der aktuelle Trace:


Ein Python-Fehler ist aufgetreten:
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/modwizard.py", line 1455, in myinit     self.report( self.save.get( 'wizard_search_type', self.save.get( "uc_virtualmodule" ) ) )
  File "/usr/share/univention-directory-manager/uniconf/modwizard.py", line 432, in report     nresults, module_descr, report_name, url, rep_type = self.create_report()
  File "/usr/share/univention-directory-manager/uniconf/modwizard.py", line 626, in create_report     tmpfile = doc.create_source( [ item[ 1 ] for item in sorting_helper_list ] )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/document.py", line 106, in create_source     interpret.run()
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/interpreter.py", line 60, in run     self.resolve( token, base_objects[ 0 ] )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/interpreter.py", line 105, in resolve     new_base = admin.get_object( token.attrs[ 'module' ], value )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line 185, in get_object     return _admin.get_object( module, dn )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line 109, in get_object     i, j = self.format_property( new.descriptions, key, value )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/admin.py", line 134, in format_property     v = v.replace( '\\', '$\\backslash$' )
AttributeError: 'list' object has no attribute 'replace' 
Comment 4 Tobias Scherer univentionstaff 2009-09-02 14:37:53 CEST
Traceback aus letztem Kommentar auch berichtet an Ticket#: 2009090210000276
Univention Directory Manager Version: 6.0.31-1.186.200907290754 (UCS 2.2-2)
Comment 5 Felix Botner univentionstaff 2009-09-30 17:36:33 CEST
Repproduzieren kann man das mit einem NetzwerkVerweis (univentionNetworkLink) am Computerobjekt, das auf eine Netz mit "ipRange" zeigt.


# Lex02, Lex, ThinClients, computers, knut.univention.de
dn: cn=Lex02,cn=Lex,cn=ThinClients,cn=computers,dc=knut,dc=univention,dc=de
aRecord: 192.168.0.112
univentionNetworkLink: cn=dhcpclients,cn=networks,dc=knut,dc=univention,dc=de
sn: Lex02
objectClass: top
objectClass: person
objectClass: univentionHost
objectClass: univentionThinClient
objectClass: univentionPolicyReference
cn: Lex02
macAddress: 00:40:f4:66:f3:cb
univentionPolicyReference: cn=lex1024,cn=xfree,cn=policies,dc=knut,dc=univenti
 on,dc=de
description: \sdadas

# dhcpclients, networks, knut.univention.de
dn: cn=dhcpclients,cn=networks,dc=knut,dc=univention,dc=de
univentionNetmask: 24
cn: dhcpclients
univentionNetwork: 192.168.0.0
univentionDnsForwardZone: zoneName=knut.univention.de,cn=dns,dc=knut,dc=univen
 tion,dc=de
objectClass: top
objectClass: univentionNetworkClass
univentionDhcpEntry: cn=knut.univention.de,cn=dhcp,dc=knut,dc=univention,dc=de
univentionDnsReverseZone: zoneName=0.168.192.in-addr.arpa,cn=dns,dc=knut,dc=un
 ivention,dc=de
univentionIpRange: 192.168.0.100 192.168.0.169
univentionNextIp: 192.168.0.104

Ist in reports/admin.py gefixt.
Comment 6 Tim Petersen univentionstaff 2009-11-02 15:21:57 CET
verified
Comment 7 Stefan Gohmann univentionstaff 2009-12-21 08:46:08 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".