Bug 38544 - Open an App via URL query
Open an App via URL query
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.0
Other Linux
: P5 enhancement (vote)
: UCS 4.0-2-errata
Assigned To: Florian Best
Dirk Wiesenthal
:
: 36385 (view as bug list)
Depends on:
Blocks: 39236 39237
  Show dependency treegraph
 
Reported: 2015-05-15 06:59 CEST by Stefan Gohmann
Modified: 2015-08-20 11:24 CEST (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:


Attachments
patch (5.41 KB, patch)
2015-05-18 16:38 CEST, Florian Best
Details | Diff
patch [UDM] (718 bytes, patch)
2015-05-18 16:45 CEST, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-05-15 06:59:15 CEST
It would be helpful to open an App in the UMC App Center uvia URL query, for example:
 http://demo.univention.de/univention-management-console/?module=appcenter&app=xrdp
Comment 1 Florian Best univentionstaff 2015-05-18 09:32:26 CEST
It is btw. already possible if the app is installed:

http://demo.univention.de/univention-management-console/?module=apps&flavor=cups
Comment 2 Florian Best univentionstaff 2015-05-18 16:38:24 CEST
Created attachment 6907 [details]
patch

Patch which allows /umc/?module=appcenter&flavor=appcenter&app=NAME
Well, I would prefer /umc/appcenter/appcenter/NAME.

I would not expose this as public API as we probably want to change from query string to fragment in Bug #20714.

Patch fixes also Bug #36385.
Comment 3 Florian Best univentionstaff 2015-05-18 16:45:29 CEST
Created attachment 6908 [details]
patch [UDM]

Another patch which allows the same functionality for every UDM object:
/umc/?module=udm&flavor=users/user&dn=uid%3DAdministrator%2Ccn%3Dusers%2Cdc%3Dnstx%2Cdc%3Dlocal
Comment 4 Florian Best univentionstaff 2015-05-28 17:49:29 CEST
Fixed: the attribute props is now given to module initialization which contains the querystring without {username,password,module,flavor,overview,lang}.
Fix: svn r60928
YAML: 2015-05-28-univention-management-console-frontend.yaml

For appcenter the parameter 'app' is evaluated.
Fix: svn r60929
YAML: 2015-05-28-univention-management-console-module-appcenter.yaml

For udm the parameter 'dn' and 'objectType' are evaluated.
Fix: svn r60927
YAML: 2015-05-12-univention-management-console-module-udm.yaml
Comment 5 Florian Best univentionstaff 2015-05-29 11:33:17 CEST
*** Bug 36385 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Wiesenthal univentionstaff 2015-06-15 22:56:11 CEST
App Center works fine. But UDM has some issues. ?module=udm&flavor=navigation&dn=uid%3DAdministrator%2Ccn%3Dusers... raises.

But even with flavor=users/user the object is opened, but cancelling or saving closes the complete module. Is this intentional? Because the App Center works differently.
Comment 7 Florian Best univentionstaff 2015-06-16 11:44:22 CEST
(In reply to Dirk Wiesenthal from comment #6)
> App Center works fine. But UDM has some issues.
> ?module=udm&flavor=navigation&dn=uid%3DAdministrator%2Ccn%3Dusers... raises.
It raises because you missed "&objectType=groups/group" in the query string.
→ Should I do anything here? E.g. using a sanitizer which shows "missing param: objectType".

> But even with flavor=users/user the object is opened, but cancelling or
> saving closes the complete module. Is this intentional? Because the App
> Center works differently.
Well, that's the design of UDM because we use this functionality already when opening objects in a new tab.
Comment 8 Florian Best univentionstaff 2015-06-17 18:41:03 CEST
(In reply to Florian Best from comment #7)
> (In reply to Dirk Wiesenthal from comment #6)
> > App Center works fine. But UDM has some issues.
> > ?module=udm&flavor=navigation&dn=uid%3DAdministrator%2Ccn%3Dusers... raises.
> It raises because you missed "&objectType=groups/group" in the query string.
> → Should I do anything here? E.g. using a sanitizer which shows "missing
> param: objectType".
This "Bad request" error is now also handled. (svn r61343).
Comment 9 Dirk Wiesenthal univentionstaff 2015-06-24 01:35:06 CEST
Code: OK
YAML: OK
Comment 10 Janek Walkenhorst univentionstaff 2015-08-06 17:54:12 CEST
<http://errata.univention.de/ucs/4.0/267.html>
Comment 11 Janek Walkenhorst univentionstaff 2015-08-06 17:54:44 CEST
<http://errata.univention.de/ucs/4.0/266.html>
Comment 12 Janek Walkenhorst univentionstaff 2015-08-06 17:55:19 CEST
<http://errata.univention.de/ucs/4.0/265.html>