Skip to content

Error in UserConfigHelper, when accessing cookbook URL, while not being logged in #951

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

Closed
awinterstein opened this issue Apr 10, 2022 · 0 comments · Fixed by #956
Closed
Labels
bug Something isn't working

Comments

@awinterstein
Copy link

Description
Error in UserConfigHelper, when trying to access the cookbook URL, while not being logged in. A null object instead of a string is given to the constructor in this case.

Reproduction
Steps to reproduce the behavior:

  1. Make sure to NOT being logged in at the Nextcloud instance.
  2. Open the cookbook URL e.g., http://nextcloud.example.org/index.php/apps/cookbook/#/
  3. There's a Nextcloud server error shown
  4. In the Nextcloud log file, an error with the following message appears: Argument 1 passed to OCA\Cookbook\Helper\UserConfigHelper::__construct() must be of the type string, null given

Expected behavior
Forward to the Nextcloud login page.

Actual behavior
Nextcloud shows a server error.

Browser
Firefox. The error should be independent of the browser, as it is a backend issue.

Versions
Nextcloud server version: 23.0.3
Cookbook version: 0.9.11
Database system: PostgreSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant