Skip to content

"Save view" fails on My Responsibilities resource pages: "The ViewID does not correspond to a supported route." #528

Open

Description

@carnec

Is this a regression?

No

Severity

🟡 Minor – small but noticeable issue

Please provide the branch(es) you discovered this issue in

v100, v93, v92

Environment Details

Microsoft Edge 157 on Windows 11, One Identity Manager 9.2.2 (v92). The same code is on v93 and v100.

Please provide a minimal set of steps to reproduce the issue

  1. In the Web Portal, sign in as an identity that owns resources and open Responsibilities > one of the resource pages (myresponsibilities/QERAssign, QERResource, QERReuse or QERReuseUS).
  2. Open the view settings (cog) of the table and click Save view (with or without changing the columns).
  3. Reload the page and open the saved views.

Description

The toolbar shows "The view has been successfully saved.", then an error "The ViewID does not correspond to a supported route." The view is not saved.

ResourcesComponent builds its view id as resources/<table>:

// imxweb/projects/qer/src/lib/resources/resources.component.ts (v100, line 111)
this.viewConfigPath = (this.isAdmin ? 'admin/resources/' : 'resources/') + this.tablename.toLowerCase();

The page reads its data from portal/resp/<table>, and the API Server only accepts a view id that matches a route. Checked with PUT portal/viewconfig for the four tables: resp/<table> and admin/resources/<table> are accepted, resources/<table> is refused with HTTP 400. The admin pages (Data Explorer, admin/resources/<table>) are not affected.

Describe what you expected to happen versus what actually happened

I would expect the view to be saved and offered again after a reload, as on the other tables.
Instead, the request fails with HTTP 400 and nothing is saved, although a success message was shown first.

Relevant logs or console output

PUT .../portal/viewconfig  ->  400
{ "ViewId": "resources/qerassign", ... }
"The ViewID does not correspond to a supported route."

Suggested Fix

In imxweb/projects/qer/src/lib/resources/resources.component.ts, ngOnInit(), use the route the page reads its data from:

this.viewConfigPath = (this.isAdmin ? 'admin/resources/' : 'resp/') + this.tablename.toLowerCase();

We run this change on 9.2.2: views are saved and found again on all four pages.

Anything else?

Probably the same family as #305 (Responsibilities > System roles, closed), but a different component: the resource pages still use the old view id on v100.

Separately, the data source toolbar shows the success message before the save request returns, so a failed save first looks successful.

Before submitting...

  • I have searched for existing issues that match this one on github and on the community support page
  • I have included all necessary details to reproduce this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions