Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1490473

Summary: URLs for classic user portal should redirect to VM Portal
Product: [oVirt] ovirt-engine Reporter: Greg Sheremeta <gshereme>
Component: Frontend.UserPortalAssignee: Greg Sheremeta <gshereme>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, gshereme, lleistne, michal.skrivanek, oourfali
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:47:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Greg Sheremeta 2017-09-11 16:55:23 UTC
Description of problem:
URLs for classic user portal should redirect to VM Portal
This will preserve old User Portal bookmarks

Currently those old links return 404.

Version-Release number of selected component (if applicable):
4.2

How reproducible:
100%

Steps to Reproduce:
1. navigate to <engine>/ovirt-engine/userportal-gwtp/

Actual results:
404

Expected results:
Redirect to VM Portal

Comment 1 Michal Skrivanek 2017-09-12 04:40:16 UTC
not sure if it's really needed. It's not the same portal anyway, there are many more things people need to adjust to than a bookmark

Comment 2 Greg Sheremeta 2017-10-15 17:31:28 UTC
the redirect pattern is:
/ovirt-engine/userportal(/.*$)?     ->     /ovirt-engine/web-ui

So to test, anything that starts with "/ovirt-engine/userportal" should redirect to /ovirt-engine/web-ui -- "/userportal", "/userportal2", and "/userportal/aaa" should all redirect.

Comment 3 Yaniv Kaul 2017-10-26 11:42:28 UTC
Can the BZ move to MODIFIED?

Comment 4 Greg Sheremeta 2017-10-26 11:49:44 UTC
Yep

Comment 5 Lucie Leistnerova 2017-10-31 13:10:53 UTC
The redirection works, but it doesn't pass on variables. Most of them I assume make no sense anymore, but e.g. locale=de_DE will be used also in VM portal. Should the variables also be redirected with the URL?

Comment 6 Michal Skrivanek 2017-11-07 14:38:40 UTC
I guess it should, but I wouldn't consider that critical really. The whole redirect is not so important, just to point admins to misconfiguration after update

Comment 7 Lucie Leistnerova 2017-11-07 15:58:45 UTC
Alright, thank you Michal. If needed, new BZ will be created.

verified in  ovirt-engine-4.2.0-0.0.master.20171106202508.gitf5140b9.el7.centos.noarch

Comment 8 Sandro Bonazzola 2017-12-20 10:47:23 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.