dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
845 stars 465 forks source link

UVE: Visual anomaly when trying to edit disallowed external pages #29836

Open dcolina opened 1 week ago

dcolina commented 1 week ago

Parent Issue

No parent issue identified.

Problem Statement

When the allowedDevURLs configuration is not set, any access to an external page using the clientHost URL parameter should be denied, and the user should remain on the main page without any additional actions. However, an anomaly occurs: when attempting to access an external page not permitted (due to devURLWhitelist being unset), the main page appears with a semi-transparent modal, giving the impression that something went wrong. Refreshing the page restores normal appearance, but this visual issue impacts user experience.

Steps to Reproduce

  1. Ensure the allowedDevURLs configuration is not set.
  2. Open the dotCMS instance using the Docker image dotcms/dotcms:nightly_f21795e.
  3. Use Firefox to access the instance.
  4. Attempt to edit an external page using the clientHost URL parameter.
  5. Observe the behavior when the page access is denied.

Acceptance Criteria

  1. If the allowedDevURLs is not configured, any access attempt to an external page via the clientHost parameter should:
    • Deny the access cleanly by keeping the user on the main page.
    • Ensure there are no visual anomalies (e.g., no semi-transparent modal).
    • Maintain a consistent user experience without requiring a page refresh.

dotCMS Version

Tested with Docker image dotcms/dotcms:nightly_f21795e.

Proposed Objective

User Experience

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://github.com/user-attachments/assets/22778a68-20bf-48b7-90e1-9bbbf65da8b7

Assumptions & Initiation Needs

  1. Ensure that the devURLWhitelist is unset or not configured for testing.
  2. Confirm that the environment is properly set up with the specified Docker image and Firefox.

Quality Assurance Notes & Workarounds

There is no workaround at the moment; the visual anomaly occurs when access to a non-permitted page is attempted. Refreshing the page temporarily restores normal appearance, but this is not an ideal user experience.

Sub-Tasks & Estimates

dcolina commented 1 week ago
valentinogiardino commented 1 week ago

Observation:

This issue is also occurring even when the allowedDevURLs configuration is set. Specifically, it happens when the clientHost URL parameter is set to the same value as the fallback URL

https://github.com/user-attachments/assets/f0e31a84-4718-4bd5-a4bc-f6120f091f3b

nollymar commented 1 week ago

Note to QA: Please, additionally test cases # 12 & 34 of the Regression Tests spreadsheet