Bug 42228 - Migrate Univention web services (portal, management, login etc.) below /univention/*
Migrate Univention web services (portal, management, login etc.) below /unive...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Alexander Kläser
: interim-2
: 32051 (view as bug list)
Depends on:
Blocks: 40907 43578 43582 43583 44086
  Show dependency treegraph
 
Reported: 2016-09-02 14:04 CEST by Alexander Kläser
Modified: 2017-04-06 19:05 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 5: Will affect all installed domains
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): Further conceptual development
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 2016-09-02 14:04:23 CEST
UCS 4.2 is the right point in time to generalize the web URI structure. It will be helpful to have a generic struture that sensibly refelcts our different web services, e.g.:

/univention → web portal
/univention/management → UMC
/univention/login → global login page
/univention/user-services → password and self services
/univention/command → UMC commands that are redirected to the UMC server
...
Comment 1 Florian Best univentionstaff 2016-09-05 15:24:55 CEST
*** Bug 32051 has been marked as a duplicate of this bug. ***
Comment 2 Philipp Hahn univentionstaff 2016-09-08 11:20:21 CEST
UCS-4.2-0 DVD Install, Setup doesn't start, 10.200.17.4, /var/log/univention/management-console-web-server.log

08.09.16 11:09:58.961  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 411, in __call__
    raise self
NotFound: (404, "The path '/index.html' was not found.")

08.09.16 11:10:15.614  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 411, in __call__
    raise self
NotFound: (404, "The path '/management/login.html' was not found.")

08.09.16 11:10:16.389  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 411, in __call__
    raise self
NotFound: (404, "The path '/management/saml/iframe/' was not found.")

08.09.16 11:12:55.000  MAIN        ( PROCESS ) : auth: username: __systemsetup__, status code: 503
Comment 3 Florian Best univentionstaff 2016-09-08 15:08:33 CEST
(In reply to Philipp Hahn from comment #2)
> UCS-4.2-0 DVD Install, Setup doesn't start, 10.200.17.4,
Should be fixed now. The DVD used python-univention-management-console 9.0-7. Should be fixed with 9.0.10.

> NotFound: (404, "The path '/index.html' was not found.")
Will be fixed soon, as the portal doesn't exists yet.

> NotFound: (404, "The path '/management/login.html' was not found.")
That's not important, will be fixed by Bug #42174

> NotFound: (404, "The path '/management/saml/iframe/' was not found.")
That's okay at this state as the SAML certificates doesn't exists yet. I will change this into a 503.

> 08.09.16 11:12:55.000  MAIN        ( PROCESS ) : auth: username:
> __systemsetup__, status code: 503
This means that the UMC-Server doesn't run.
Comment 4 Florian Best univentionstaff 2016-09-15 18:11:32 CEST
/univention/portal/ → html
/univention/management/ → /usr/share/umc-frontend/
/univention/js/dijit/.*
/univention/js/dojox/.*
/univention/js/dojo/.*
/univention/js/umc/.*
/univention/js/management/ -> /usr/share/umc-frontend/js
/univention/js/management/main.js (previously app.js)
/univention/js/portal/main.js
/univention/js/dijit/themes/umc/
/univention/js/dijit/themes/umc/icons -> management/dijit/themes/umc/icons
/univention/js/umc/modules -> management/umc/modules
Comment 5 Johannes Keiser univentionstaff 2016-09-21 12:37:40 CEST
(In reply to Florian Best from comment #4)
> /univention/portal/ → html
> /univention/management/ → /usr/share/umc-frontend/
> /univention/js/dijit/.*
> /univention/js/dojox/.*
> /univention/js/dojo/.*
> /univention/js/umc/.*
> /univention/js/management/ -> /usr/share/umc-frontend/js
> /univention/js/management/main.js (previously app.js)
> /univention/js/portal/main.js
> /univention/js/dijit/themes/umc/
> /univention/js/dijit/themes/umc/icons -> management/dijit/themes/umc/icons
> /univention/js/umc/modules -> management/umc/modules

Implemented the above structure except portal:

r 72717 | univention-management-console(9.0.12-17A~4.2.0.201609211207)
Bug #42228:
* renamed app.js to main.js
* moved all widgets to the same dir as main.js
* adjusted symlinks and module identifiers for new structure

r 72715 | univention-web(1.0.2-2A~4.2.0.201609211051)
Bug #42228:
* removed empty directory
* removed unused images
* removed icons folder from installation

r 72720 | univention-management-console-module-udm(7.0.1-7A~4.2.0.201609211232)
* Bug #42228: changed module identifiers for widgets from
univention-management-console
Comment 6 Florian Best univentionstaff 2016-09-22 11:29:57 CEST
(In reply to Florian Best from comment #4)
instead of:
> /univention/js/management/main.js
better:
> /univention/management/main.js

instead of:
> /univention/js/portal/main.js
better:
> /univention/portal/main.js
Comment 7 Johannes Keiser univentionstaff 2016-09-22 17:22:09 CEST
(In reply to Florian Best from comment #6)
> (In reply to Florian Best from comment #4)
> instead of:
> > /univention/js/management/main.js
> better:
> > /univention/management/main.js

r 72762 | univention-management-console(9.0.12-18A~4.2.0.201609221713)
* Bug #42228: restructured file locations under www and adjusted dojoConfig

r 72763 | univention-management-console-module-udm(7.0.1-8A~4.2.0.201609221717)
* Bug #42228: adjusted module identifiers
Comment 8 Florian Best univentionstaff 2017-01-27 16:41:39 CET
(In reply to Johannes Keiser from comment #5)
> r 72717 | univention-management-console(9.0.12-17A~4.2.0.201609211207)
The apache conffile changes seem incorrect, I fixed them and added a test case:

r76149 | Bug #42228: fix apache rewrite rule svn r72717

r76148 | Bug #43348: Add basic apache/UMC tests
Comment 9 Alexander Kläser univentionstaff 2017-02-21 09:31:19 CET
AFAIS, this bug can be closed, right?
Comment 10 Florian Best univentionstaff 2017-02-21 15:16:21 CET
r76525 | Bug #42228: remove empty directories
r76524 | Bug #42228: remove empty directories

univention-web (1.0.26-5):
r76522 | Bug #42228: move entries.json to univention-wen meta.json
r76412 | Bug #42228: redirect /univention/
r76353 | Bug #42228: migrate essential ucs-overview things into this package
r76342 | Bug #42228: remove ucs-overview
r76236 | Bug #42228: rewrite /univention-management-console/ URI's
r72715 | Bug #42228:
r72327 | Bug #42228: adjust saml iframe path
r72272 | Bug #42228: adjust paths to /univention/

univention-lib (6.0.6-8):
r72332 | Bug #42228: make umc_connection capable to communicate with legacy path's.
r72326 | Bug #42228: make umc_connection capable to communicate with legacy path's.
r72257 | Bug #42228: adjust URI's of umc_frontend_new_hash

ucs-test (7.0.11-8):
r76346 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's
r75844 | Bug #42228: adjust path

univention-nagios (10.0.1-1):
r76348 | Bug #42228: ucs-overview → univention

univention-system-info (7.0.2-1):
r72662 | Bug #42431: migrate to new URI structure (Bug #42228)

univention-apache (9.0.2-2):
r76521 | Bug #42228: move entries.json to univention-wen meta.json
r76342 | Bug #42228: remove ucs-overview

univention-app-appliance (1.0.1-1):
r76344 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's

univention-management-console (9.0.35-1):
r76555 | Bug #42228: prevent tracebacks for 404 Not Found errors
r76350 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's
r76159 | Bug #42228: fix login.html link
r76149 | Bug #42228: fix apache rewrite rule svn r72717
r72762 | Bug #42228: restructured file locations under www and adjusted dojoConfig
r72717 | Bug #42228:
r72586 | Bug #42228: make univention a apache site again
r72585 | Bug #42228: make univention a apache site again
r72460 | Bug #42228: fixup svn r72274
r72296 | Bug #42228: fix typo in last commit
r72291 | Bug #42228: adjust paths to /univention/
r72290 | Bug #42228: adjust paths to /univention/
r72274 | Bug #42228: adjust paths to /univention/
r72253 | Bug #42228: adjust some URIs

univention-management-console-module-udm (7.0.5-1):
r72763 | Bug #42228: adjusted module identifiers
r72720 | Bug #42228: changed module identifiers for widgets from
r72273 | Bug #42228: adjust paths to /univention/

ucs-ec2-tools (3.0.2-1):
r76343 | Bug #42228: ucs-overview → univention

univention-self-service (2.0.3-1):
r76349 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's

univention-cloud-init (4.0.1-1):
r76909 | Bug #42228: move entries.json to meta.json
r76345 | Bug #42228: ucs-overview → univention

univention-system-setup (10.0.6-3):
r76343 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's

univention-ucs-translation-template (4.1.0-6):
r76236 | Bug #42228: rewrite /univention-management-console/ URI's

univention-doc (4.0.0-2):
r76352 | Bug #42228: ucs-overview → univention

univention-saml (4.0.6-2):
r76347 | Bug #42228: ucs-overview → univention

univention-system-activation (2.0.1-3):
r76535 | Bug #42228: rewrite config path location
r76351 | Bug #42228: ucs-overview → univention
r76236 | Bug #42228: rewrite /univention-management-console/ URI's
Comment 11 Florian Best univentionstaff 2017-02-21 16:30:43 CET
Should /univention-doc/umc/ and /univention-doc/univention-doc/ be migrated to /univention/documentation/ ?!
Comment 12 Alexander Kläser univentionstaff 2017-03-21 14:21:45 CET
(In reply to Florian Best from comment #11)
> Should /univention-doc/umc/ and /univention-doc/univention-doc/ be migrated
> to /univention/documentation/ ?!

ATM, I do not think so.

I added the changelog entry for this bug.

changelog-4.2-0.xml:
r78048 | Bug #42228: Added changelog entry

This bug can be closed now, all related tasks have been done. In case there are any further problems, new bugs will be opened.
Comment 13 Stefan Gohmann univentionstaff 2017-04-04 18:28:26 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".
Comment 14 AJ 2017-04-06 19:05:57 CEST
Something in the management console still seems to be broken:
This happens, when I call: https://IP-Address/univention

06.04.17 19:04:41.976  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 411, in __call__
    raise self
NotFound: (404, "The path '/portal/None' was not found.")

06.04.17 19:04:42.091  MAIN        ( ERROR   ) : Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py", line 411, in __call__
    raise self
NotFound: (404, "The path '/login/main.js' was not found.")