Bug 26850 - Potentieller name error in complex.parse()
Potentieller name error in complex.parse()
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Lukas Walter
Florian Best
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-20 14:36 CEST by Lukas Walter
Modified: 2012-07-20 15:24 CEST (History)
2 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
Behebt das Problem (541 bytes, patch)
2012-06-22 14:09 CEST, David Vogt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Walter univentionstaff 2012-04-20 14:36:59 CEST
=============================================================
class complex( ISyntax ):
	delimiter = ' '
	min_elements = None
	all_required = True
        ....


        @classmethod
        def parse(self,texts):
              ...
              if min_elements ... : # erzeugt name error
=============================================================
Comment 1 David Vogt 2012-06-22 14:09:36 CEST
Created attachment 4471 [details]
Behebt das Problem

Hi,

Ich kann das Problem bestätigen. Hier fehlt meiner Meinung nach einfach ein "self". Siehe Patch.
Comment 2 Lukas Walter univentionstaff 2012-07-09 17:08:46 CEST
Patch sieht gut aus, Änderungen entsprechend übernommen.


univention-directory-manager-modules (7.0.276-1) unstable; urgency=low

  * fixed potential NameError in complex syntax (Bug #26850)
Comment 3 Florian Best univentionstaff 2012-07-12 14:14:07 CEST
(In reply to comment #2)
> Patch sieht gut aus, Änderungen entsprechend übernommen.
Ja, Changelog auch vorhanden.
Comment 4 Stefan Gohmann univentionstaff 2012-07-20 15:24:20 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".