Bug 33728 - Rename App ID for Tine 2.0
Rename App ID for Tine 2.0
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-1-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-11 15:17 CET by Nico Gulden
Modified: 2014-04-09 08:26 CEST (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
Rename tine20org to tine20 (2.88 KB, patch)
2014-02-25 15:04 CET, Dirk Wiesenthal
Details | Diff
Rename tine20org to tine20 (6.16 KB, patch)
2014-02-25 15:08 CET, Dirk Wiesenthal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Gulden univentionstaff 2013-12-11 15:17:29 CET
The vendor for Tine 2.0 requested to rename the App ID for Tine 2.0 from "tine20org" to "tine20" to represent the commercial and not the community product. The App ID appears in several UCR variables in UCS and in the URL in the App catalogue.

See Ticket#: 2013102421001372
Comment 1 Janek Walkenhorst univentionstaff 2014-02-18 17:19:37 CET
Please note Bug #34149 comment #1
Comment 2 Dirk Wiesenthal univentionstaff 2014-02-25 15:04:48 CET
Created attachment 5802 [details]
Rename tine20org to tine20

Unregisters tine20org in UCR and removes it from LDAP. Registers tine20 in UCR and adds it to LDAP.

Done by hacking the id in the newly created script univention-rename-app. Components may stay the way they are.

But *all* UCS 3.2 "ID=tine20org" ini files need to be changed (not renamed!) to have ID=tine20. This is better done at the same time (publishing this errata and updating the ini files).
Comment 3 Dirk Wiesenthal univentionstaff 2014-02-25 15:08:19 CET
Created attachment 5803 [details]
Rename tine20org to tine20

Forgot to "svn add" the new script before the "svn diff".

BTW: I do not see how this would affect reporting. But I leave this as an exercise for the QA...
Comment 4 Dirk Wiesenthal univentionstaff 2014-03-17 12:06:12 CET
Renaming is done in
  univention-management-console-module-appcenter 3.0.51-5.239.201403171157
Comment 5 Dirk Wiesenthal univentionstaff 2014-03-17 12:11:36 CET
Reminder: Change the ini files once this is published. And do it quickly!
Comment 6 Felix Botner univentionstaff 2014-03-21 15:54:07 CET
I changed the ID in the tine INI-files in appcenter.test

OK 
 - install tine20org on UCS 3.2-1
   DN: univentionAppID=tine20org_2013.10.1,cn=tine20org,cn=apps,...
 - update 
 - switch to appcenter.test (tine20)
 OK - rename during update
 OK - installed applications -> Tine20
 OK - open appcenter 
 OK - component still tine20org
 - After all that i have
   DN: univentionAppID=tine20_2013.10.1,cn=tine20,cn=apps,...

Fail
 - install tine20org on UCS 3.2-1
 - switch to appcenter.test (tine20)
 FAIL - open appcenter (creates a second tine app)
   DN: univentionAppID=tine20org_2013.10.1,cn=tine20org,cn=apps,...
   DN: univentionAppID=tine20_2013.10.1,cn=tine20,cn=apps,...
 FAIL - installed applications -> Tine20 (can't open app)
Comment 7 Dirk Wiesenthal univentionstaff 2014-03-25 14:16:50 CET
(In reply to Felix Botner from comment #6)
> Fail
>  - install tine20org on UCS 3.2-1
>  - switch to appcenter.test (tine20)
>  FAIL - open appcenter (creates a second tine app)
>    DN: univentionAppID=tine20org_2013.10.1,cn=tine20org,cn=apps,...
>    DN: univentionAppID=tine20_2013.10.1,cn=tine20,cn=apps,...
>  FAIL - installed applications -> Tine20 (can't open app)

As dicussed: This is annoying but not a blocker. Please verify:

 - switch to appcenter.test (tine20)
 -> installing "Tine 2.0" does not create any tine20org variables

 - install tine20org on UCS 3.2-1
 - switch to appcenter.test (tine20)
 -> while the user may not see any further updates, at least tine20 is marked as installed
 - update (umc-appcenter)
 -> all tine20org remains should be gone
 -> installed apps / "Tine 2.0" can be accessed again
Comment 8 Felix Botner univentionstaff 2014-04-02 11:16:35 CEST
(In reply to Dirk Wiesenthal from comment #7)

> 
> As dicussed: This is annoying but not a blocker. Please verify:
> 
>  - switch to appcenter.test (tine20)
>  -> installing "Tine 2.0" does not create any tine20org variables

OK

> 
>  - install tine20org on UCS 3.2-1
>  - switch to appcenter.test (tine20)
>  -> while the user may not see any further updates, at least tine20 is
> marked as installed
>  - update (umc-appcenter)
>  -> all tine20org remains should be gone
>  -> installed apps / "Tine 2.0" can be accessed again

OK

But if the server can't reach the appcenter, then i get 


univention-management-console-module-appcenter (3.0.51-8.242.201403211327) wird eingerichtet ...
Reloading Univention Management Console Server.
done.
Not updating repository/app_center/server
univention-rename-app did not succeed.
Comment 9 Dirk Wiesenthal univentionstaff 2014-04-03 15:20:39 CEST
App is renamed in postinst and every time the App Center module is opened. This required some code movement from one file to another. I hope it still works...

Fixed in
  univention-management-console-module-appcenter 3.0.51-9.243.201404031512
Comment 10 Felix Botner univentionstaff 2014-04-04 14:25:55 CEST
OK - new installation (tine20)

OK - rename with network (tine20org -> tine20, master and slave)

OK - rename without network (tine20org -> tine20, master and slave)
     app was renamed during opening the App Center module

OK - YAML



!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!Reminder: Change the ini files once this is published. And do it quickly!  
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Comment 11 Moritz Muehlenhoff univentionstaff 2014-04-09 08:26:27 CEST
http://errata.univention.de/ucs/3.2/86.html