[BUG] Settings cannot be changed before the first login #64

Closed
opened 2021-10-24 09:25:14 +02:00 by ozboss · 9 comments

Issue

Environment

  • Custom menu version: 1.27.2
  • Nextcloud version: 21.0.5.1
  • PHP version: 7.4.24
  • Web server (Nginx, Apache2): Apache2
  • Web browser and version (Firefox 80, Google Chrome 74, etc): Firefox, Chrome, Brave on PC or Android, does not matter
stock

Steps to reproduce

  • Make a fresh Nextcloud install with Docker
  • Setup Nextcloud without logging in
  • Install side_menu:
    docker exec --user www-data nextcloud php occ app:install side_menu
  • Set any setting for side_menu like so (can also be default value):
    docker exec --user www-data nextcloud php occ config:app:set side_menu add-logo-link --value=1
  • Access Nextcloud page and try to login

Observed Results

It is not possible to login, you will be redirected to the login screen.

Expected Results

Login normally.

Additional info

This does not happen when you login to Nextcloud one time before you adjust any settings of side_menu.

## Issue ### Environment * Custom menu version: 1.27.2 * Nextcloud version: 21.0.5.1 * PHP version: 7.4.24 * Web server (Nginx, Apache2): Apache2 * Web browser and version (Firefox 80, Google Chrome 74, etc): Firefox, Chrome, Brave on PC or Android, does not matter ``` stock ``` ### Steps to reproduce - Make a fresh Nextcloud install with Docker - Setup Nextcloud without logging in - Install side_menu: `docker exec --user www-data nextcloud php occ app:install side_menu` - Set any setting for side_menu like so (can also be default value): `docker exec --user www-data nextcloud php occ config:app:set side_menu add-logo-link --value=1` - Access Nextcloud page and try to login ### Observed Results It is not possible to login, you will be redirected to the login screen. ### Expected Results Login normally. ### Additional info This does not happen when you login to Nextcloud one time before you adjust any settings of side_menu.
ozboss added the
bug
label 2021-10-24 09:25:14 +02:00
Owner

What docker image do you use?

What docker image do you use?
Author

Im using the tag nextcloud:21 which currently is this image:

nextcloud:21
DIGEST:sha256:998e02a6a172ea9489529a324687198a4d5c2ae2a405ab88cfc31a5b40d1d3d9

I tried nextcloud:22 with the same result.

Im using the tag `nextcloud:21` which currently is this image: ``` nextcloud:21 DIGEST:sha256:998e02a6a172ea9489529a324687198a4d5c2ae2a405ab88cfc31a5b40d1d3d9 ``` I tried `nextcloud:22` with the same result.
Owner
Do you see something similar to https://privatebin.deblan.org/?00f6ad0aa25db697#HrM3XLEtepbEZm2Uja6vcpcSctXVgxQNhBjbPa3MnY1M in your logs?
deblan added the
WIP
label 2021-10-24 15:56:53 +02:00
Author

Do you see something similar to https://privatebin.deblan.org/?00f6ad0aa25db697#HrM3XLEtepbEZm2Uja6vcpcSctXVgxQNhBjbPa3MnY1M in your logs?

Seems like you did not setup the permissions correctly. All Nextcloud folders should be owned by "www-data" (user and group).

I just get level 0 debug messages:

https://privatebin.deblan.org/?544bfc91d89e0b96#A642ujXBka1CUBLP7eny8SzU8VNFZ81wRD5qej2pdRr4

> Do you see something similar to https://privatebin.deblan.org/?00f6ad0aa25db697#HrM3XLEtepbEZm2Uja6vcpcSctXVgxQNhBjbPa3MnY1M in your logs? Seems like you did not setup the permissions correctly. All Nextcloud folders should be owned by "www-data" (user and group). I just get level 0 debug messages: https://privatebin.deblan.org/?544bfc91d89e0b96#A642ujXBka1CUBLP7eny8SzU8VNFZ81wRD5qej2pdRr4
Owner

@ozboss

Do you see something similar to https://privatebin.deblan.org/?00f6ad0aa25db697#HrM3XLEtepbEZm2Uja6vcpcSctXVgxQNhBjbPa3MnY1M in your logs?

Seems like you did not setup the permissions correctly. All Nextcloud folders should be owned by "www-data" (user and group).

I just get level 0 debug messages:

https://privatebin.deblan.org/?544bfc91d89e0b96#A642ujXBka1CUBLP7eny8SzU8VNFZ81wRD5qej2pdRr4

That was a fresh docker install for testing.

I can reproduce the redirect at the first login. When the form is posted, the response has a 303 http code.

@ozboss >> Do you see something similar to https://privatebin.deblan.org/?00f6ad0aa25db697#HrM3XLEtepbEZm2Uja6vcpcSctXVgxQNhBjbPa3MnY1M in your logs? > >Seems like you did not setup the permissions correctly. All Nextcloud folders should be owned by "www-data" (user and group). > >I just get level 0 debug messages: > >https://privatebin.deblan.org/?544bfc91d89e0b96#A642ujXBka1CUBLP7eny8SzU8VNFZ81wRD5qej2pdRr4 That was a fresh docker install for testing. I can reproduce the redirect at the first login. When the form is posted, the response has a 303 http code.
deblan added
help wanted
and removed
WIP
labels 2022-01-09 23:22:07 +01:00
deblan added the
wontfix
label 2022-03-15 11:48:03 +01:00
Author

@deblan could you please provide some details on why you decided to label this issue 'wontfix' and what you where able to figure out so far. Maybe someone can then pick up this issue, I might give it a shot myselfe, also I don't know much about web development.

@deblan could you please provide some details on why you decided to label this issue 'wontfix' and what you where able to figure out so far. Maybe someone can then pick up this issue, I might give it a shot myselfe, also I don't know much about web development.
Owner

Hello,

I can reopen this issue but I think that's from of somewhere else that custom menu:

  • custom menu does not interact with the login process
  • I can't reproduce from the standard installation (without docker)
  • my debug is not revelant (#64 (comment))

From the issue opening to now, Nextcloud released new versions (22 and 23) that could have fix the problem.

Hello, I can reopen this issue but I think that's from of somewhere else that custom menu: * custom menu does not interact with the login process * I can't reproduce from the standard installation (without docker) * my debug is not revelant (https://gitnet.fr/deblan/side_menu/issues/64#issuecomment-568) From the issue opening to now, Nextcloud released new versions (22 and 23) that could have fix the problem.
deblan reopened this issue 2022-03-25 12:49:44 +01:00
Author

Thanks for reopening but I did actually run a test with Nextcloud 23 and the issue seems to be gone. It happend once but it was not reproducable. Sorry for the trouble :)

Thanks for reopening but I did actually run a test with Nextcloud 23 and the issue seems to be gone. It happend once but it was not reproducable. Sorry for the trouble :)
Owner

No problem :)

No problem :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: deblan/side_menu#64
No description provided.