Bug 44625 - Update UCS 4.2 app appliance integration
Update UCS 4.2 app appliance integration
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center - Self Service
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.2-1-errata
Assigned To: Alexander Kläser
Dirk Wiesenthal
:
Depends on: 44523
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-17 16:35 CEST by Alexander Kläser
Modified: 2017-07-26 12:22 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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): Appliance
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2017-05-17 16:35:19 CEST
We need to update the app appliance integration of UCS 4.2 (see Bug 44523).
Comment 2 Alexander Kläser univentionstaff 2017-05-19 15:49:18 CEST
I have added the necessary code to make the App appliance entries of UCS 4.2 work in the provider portal. As I had troubles setting up my local provider portal, I could not verify whether logo and ini files are created correctly.

univention-management-console-module-appcenter-selfservice (1.0.0-152):
r79451 | Bug #44625: Add new entries for UCS 4.2 App appliances
Comment 3 Alexander Kläser univentionstaff 2017-05-20 00:55:11 CEST
I needed to add l10n support for the portal title + appliance readme file.

univention-management-console-module-appcenter-selfservice (1.0.0-153):
r79453 | Bug #44625: Add localization for appliance fields + adjust ImageUploader
Comment 4 Dirk Wiesenthal univentionstaff 2017-07-23 14:03:04 CEST
OK, works. From the code review, this seems to be wrong:

if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0 || this.value.indexOf('PFhNT') || this.value.indexOf('PHhtb')) {
  return 'svg+xml';
}

I guess (actually, I really guess), that you want a "=== 0" on the last two, too?



Also, you removed appliance_umc_category_logo and -_modules. Is this not needed for 4.2 Appliances? Just asking. If this is only for 4.1, putting it in "Advanced / Custom settings" should be enough.
Comment 5 Alexander Kläser univentionstaff 2017-07-24 13:18:49 CEST
(In reply to Dirk Wiesenthal from comment #4)
> OK, works. From the code review, this seems to be wrong:
> 
> if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0
> || this.value.indexOf('PFhNT') || this.value.indexOf('PHhtb')) {
>   return 'svg+xml';
> }
> 
> I guess (actually, I really guess), that you want a "=== 0" on the last two,
> too?

Oh, yes, your guess is quite correct. In the current state, SVG files starting with "<svg" or "<SVG" would not be detected as type SVG. I added Bug 45057 to fix this in UCS, as well.

univention-management-console-module-appcenter-selfservice (1.0.0-159):
r81335 | Bug #44625: adjust type in the image type detection


> Also, you removed appliance_umc_category_logo and -_modules. Is this not
> needed for 4.2 Appliances? Just asking. If this is only for 4.1, putting it
> in "Advanced / Custom settings" should be enough.

appliance_umc_category_logo → is obsolete for UCS 4.2
appliance_umc_modules → has been replaced with appliance_favorite_modules

I discussed these changes with Erik.
Comment 6 Dirk Wiesenthal univentionstaff 2017-07-25 18:11:01 CEST
OK, works.
Comment 7 Alexander Kläser univentionstaff 2017-07-26 12:18:49 CEST
Erik spotted a typo which I just fixed :) .

univention-management-console-module-appcenter-selfservice (1.0.0-161):
r81380 | Bug #44625: adjust typo for the appliance_portal_title attribute
Comment 8 Dirk Wiesenthal univentionstaff 2017-07-26 12:22:19 CEST
OK, live.