Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Message doesn't work on Installer Page #806

Closed
TonyValenti opened this issue Oct 16, 2020 · 6 comments
Closed

Module Message doesn't work on Installer Page #806

TonyValenti opened this issue Oct 16, 2020 · 6 comments

Comments

@TonyValenti
Copy link

When doing a fresh install of Oqtane, give it invalid/missing parameters and try to install.
An error will occur because PageState.User is null.

@hishamco
Copy link
Contributor

Are you using the latest bit, coz I doing a fresh install two or three days ago and it works fine

@bryfa
Copy link

bryfa commented Oct 16, 2020

I have the same issue with the latest version. PageState is null.

@mikecasas
Copy link
Contributor

@bryfa So do you get to the main installation page?

@sbwalker
Copy link
Member

yes, I believe that is an issue as the Install Wizard is not served through the router and does not have PageState set. This is a simple one to fix in ModuleMessage.razor:

    @if (Type == MessageType.Error && PageState != null && UserSecurity.IsAuthorized(PageState.User, Constants.HostRole))

@bryfa
Copy link

bryfa commented Oct 16, 2020

@mikecasas @sbwalker yes it was on the main install wizard page.

@sbwalker
Copy link
Member

fixed in #817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants