Bug 15690 - Fehlende Klammerung in get_next_version()
Fehlende Klammerung in get_next_version()
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 2.2
Other Linux
: P1 normal (vote)
: UCS 2.3
Assigned To: Sönke Schwardt-Krummrich
Daniel Hofmann
:
Depends on:
Blocks: 14432
  Show dependency treegraph
 
Reported: 2009-09-21 13:23 CEST by Janis Meybohm
Modified: 2009-12-21 08:46 CET (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:
meybohm: Patch_Available+


Attachments
Klammern hinzugefügt (563 bytes, patch)
2009-09-21 13:24 CEST, 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-09-21 13:23:36 CEST
Dir Rückgabe einer neuen major Version in der Updater tools.py schlägt fehl da eine Klammerung fehlt:

--
Failed to check the update: Traceback (most recent call last): File  
 "/usr/lib/python2.4/site-packages/univention/management/console/handlers/update/__init__.py",
 
 line 225, in check_release_updates self.next_release_update =  
 self.updater.release_update_available() File  
 "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 280,  
 in release_update_available return self.get_next_version( UCS_Version( (  
 self.version_major, self.version_minor, self.patchlevel ) ) ) File  
 "/usr/lib/python2.4/site-packages/univention/updater/tools.py", line 274,  
 in get_next_version return '%d.0-0' % version.major + 1 TypeError: cannot  
 concatenate 'str' and 'int' objects
--
Comment 1 Janis Meybohm univentionstaff 2009-09-21 13:24:40 CEST
Created attachment 1846 [details]
Klammern hinzugefügt
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2009-09-25 17:37:37 CEST
Patch wurde eingespielt. Paket wurde gebaut. Changelogeintrag ist vorhanden.
Comment 3 Daniel Hofmann univentionstaff 2009-10-27 11:50:30 CET
master2364maintained://usr/share/pyshared/univention/updater # python2.4
Python 2.4.6 (#2, Oct  4 2009, 01:19:18)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tools
>>> u=tools.UniventionUpdater ()
>>> u.get_next_version ( tools.UCS_Version ('2.1-0') )
'2.1-1'
>>>
Comment 4 Stefan Gohmann univentionstaff 2009-12-21 08:46:26 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".