Skip to content

Login on a non-public-readable container not recognized by main content UI #324

Description

@uvdsl

When logging in while viewing a container that is not public-readable (e.g. the Pod root, private on purpose), the databrowser continues to prompt for login even though authentication actually succeeds. This persists across a hard reload of that URL.

Note that the content pane seems to be stuck on an old state, while the header correctly recognizes the login and shows the user icon.

Workaround: Navigating to a different location on the Pod (via browser URL bar), then back to the root, works fine. The root loads correctly once the session has been restored elsewhere first.

Observations:

  • The login itself works; the UI just doesn't pick it up on the initial private-container view.
  • Network tab shows the root container being fetched three times on load. After the initial 401, sometimes one and sometimes two of the follow-up requests also fail with 401, before a later successful (authenticated) request.
  • This points to a race condition: resources are fetched before the refresh-token grant completes and a fresh access token is available, so requests go out unauthenticated.
  • The problem reproduces on any private container, not just the root.
  • Suspected to be in the post-login redirect / session-restore handling, since simply restoring a session on a different URL works fine.

Tested with CSS@7.2.0 and mashlib@2.3.2

Relates to #291.

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