Graylog2 / Graylog2/graylog2-server

After granted access to their first stream, users have to refresh the page or sign in once again to see "Search page".

Open
#12,260 1 comment 0 reactions 0 assignees View on GitHub
bug frontend test-day triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

After granted access to their first stream, users have to refresh the page or sign in once again to see "Search page".

## Expected Behavior
If one tries to access the "Search page", it should be visible, even if requirements to access this page have been met AFTER the user has logged in.

## Current Behavior

## Possible Solution

## Steps to Reproduce (for bugs)

1. Create a fresh user, with no access to any Streams.
2. Go to the search page and see the following behavior:
![Screenshot 2022-03-11 at 11-53-06 Graylog - Missing Stream Permissions](https://user-images.githubusercontent.com/100699120/157855165-27608f8f-5349-49ed-9dfe-9121b42589c6.png)

3. Using another user/browser, share a Stream with the fresh user.
4. Switch to the "Streams page" to find out that you have already got access to your first Stream:
![Screenshot 2022-03-11 at 11-55-17 Graylog - Streams](https://user-images.githubusercontent.com/100699120/157855396-15bf778b-44e1-486e-98d0-ecb606585ca2.png)
6. Go back to the "Search page" just to find out that you still cannot use the search:
![Screenshot 2022-03-11 at 11-55-34 Graylog - No stream permissions - Unsaved Search](https://user-images.githubusercontent.com/100699120/157855484-005543b6-9109-49a8-9df8-1ec8788c667f.png)

7. Notice that you have to refresh the page or sign out and in once again in order to be able to work with the "Search page"

## Context

## Your Environment

* Graylog Version: Graylog Version: Graylog 4.3.0-beta.1+a752232
(test day issue)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.