Bug 26691 - umc.tools.isEqual returned integer
umc.tools.isEqual returned integer
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Florian Best
Andreas Büsching
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-02 11:54 CEST by Florian Best
Modified: 2012-07-20 15:24 CEST (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:
best: Patch_Available+


Attachments
umc.tools.patch (591 bytes, patch)
2012-04-02 11:54 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2012-04-02 11:54:45 CEST
Created attachment 4303 [details]
umc.tools.patch

in umc.tools.isEqual wird ein bitwise operator benutzt (result &= foo), dadurch
ist result ein integer. Das kann zu Problemen führen, wenn auf typegleichheit
geprüft wird (wie z.b. in der forIn schleife, die dadurch nichtvorzeitig
beendet wird).

Im Anhang ist ein Patch, der dies behebt.
Comment 1 Florian Best univentionstaff 2012-04-02 13:13:24 CEST
Änderungen gemacht:
univention-management-console-frontend (1.0.285-1) unstable; urgency=low
  * added locale suffix to UMC-href on overviewpage (Bug #23861)
  * corrected returnvalue in umc.tools.isEqual (Bug #26691)
Comment 2 Andreas Büsching univentionstaff 2012-06-18 15:43:43 CEST
Der Patch ist korrekt und eingebaut.

ChangeLog-Eintrag existiert
Comment 3 Stefan Gohmann univentionstaff 2012-07-20 15:24:40 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".