Bug 39526 - App Center - errors
App Center - errors
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.1
Other Linux
: P5 enhancement (vote)
: UCS 4.1
Assigned To: Alexander Kläser
Dirk Wiesenthal
: interim-2
Depends on: 38894
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-14 11:42 CEST by Alexander Kläser
Modified: 2015-11-17 12:12 CET (History)
6 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

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2015-10-14 11:42:45 CEST
There currently seem to be some issues with the JavaScript code:

Florian Best - Bug 38894, comment #16:
> I experienced some tracebacks (on a DC backup where the master is not
> reachable):
> 
> TypeError: Cannot read property '_searchSidebar' of undefined
>     at declare.postCreate
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/umc/modules/appcenter.js:87:23)
>     at c.create
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1333:348)
>     at c.postscript
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1332:99)
>     at new <anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1158:192)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1262:409)
>     at b.hitch
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:819:130)
>     at e
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:337)
>     at h
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:263)
>     at f.resolve
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:766:352)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1216:386) "TypeError: Cannot read property
> '_searchSidebar' of undefined
>     at declare.postCreate
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/umc/modules/appcenter.js:87:23)
>     at c.create
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1333:348)
>     at c.postscript
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1332:99)
>     at new <anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1158:192)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1262:409)
>     at b.hitch
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:819:130)
>     at e
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:337)
>     at h
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:263)
>     at f.resolve
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:766:352)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1216:386)
>     ----------------------------------------
> 
> 
> TypeError: Cannot read property 'style' of null
>     at m.adaptWidth
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1933:468)
>     at l.onEach
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1465:386)
>     at g.adaptWidth
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1509:61)
>     at g._resize
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1508:339)
>     at g.updateRowCount
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1514:153)
>     at c._onFetchBegin
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:60:438)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:819:75)
>     at
> http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:326:34
>     at e
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:337)
>     at h
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:263) "TypeError: Cannot read property
> 'style' of null
>     at m.adaptWidth
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1933:468)
>     at l.onEach
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1465:386)
>     at g.adaptWidth
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1509:61)
>     at g._resize
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1508:339)
>     at g.updateRowCount
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:1514:153)
>     at c._onFetchBegin
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:60:438)
>     at null.<anonymous>
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:819:75)
>     at
> http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:326:34
>     at e
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:337)
>     at h
> (http://backup502.deadlock50.intranet/univention-management-console/
> js_$20152909233030$/dojo/dojo.js:764:263)



Florian Best - Bug 38894, comment #17)
> Another one: I cannot open a installed App (Ad-Connection) anymore (starting
> with #module=appcenter:appcenter:0:category:All)
> The line 379 in AppDetailsPage causes a exception:
> this._installedAppsGrid = new adaptedGrid({
> 
> TypeError: Cannot read property 'search' of undefined
> 
> The exception happens in _setLabelAttr of dijit.MenuItem

Dirk Wiesenthal - Bug 38894, comment #18)
> When appcenter/domainwide is set to False, there is no installationData for
> App.js. In this case, app.get_hosts() uses a fallback. This is buggy:
> 
>   data: this
> 
> is not compatible with
> 
>   data: item
> 
> "item" is a special, stripped down version. this does not have all of its
> properties.


+++ This bug was initially created as a clone of Bug #38894 +++

The UMC App Center usability should be improved. The app list is getting longer and longer. :)
Comment 1 Alexander Kläser univentionstaff 2015-10-30 16:05:06 CET
It seems to be fine by now.
Comment 2 Florian Best univentionstaff 2015-10-30 16:40:55 CET
(In reply to Alexander Kläser from comment #1)
> It seems to be fine by now.
No, it's not fine... → Bug #39688
Comment 3 Dirk Wiesenthal univentionstaff 2015-11-02 13:41:43 CET
Bug 38894, comment #18 not fixed

As discussed, I always return installations information. If appcenter/domainwide is false, only the localhost will be listed.

In this case, the Grid does not lead to JS errors anymore, but the Choose Host dialog is still shown. We talked about skipping it if the list only contains localhost
Comment 4 Alexander Kläser univentionstaff 2015-11-09 18:17:25 CET
(In reply to Dirk Wiesenthal from comment #3)
> Bug 38894, comment #18 not fixed
> 
> As discussed, I always return installations information. If
> appcenter/domainwide is false, only the localhost will be listed.
> 
> In this case, the Grid does not lead to JS errors anymore, but the Choose
> Host dialog is still shown. We talked about skipping it if the list only
> contains localhost

So no error at this point. AFAIS, this should go to Bug 39668.

Otherwise I do not see any errors.
Comment 5 Dirk Wiesenthal univentionstaff 2015-11-12 12:49:00 CET
OK
Comment 6 Stefan Gohmann univentionstaff 2015-11-17 12:12:48 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

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