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

*Download logs* shown to sub admin, results in unhandled 403 #1350

Open
ChristophWurst opened this issue Aug 19, 2024 · 1 comment
Open

*Download logs* shown to sub admin, results in unhandled 403 #1350

ChristophWurst opened this issue Aug 19, 2024 · 1 comment

Comments

@ChristophWurst
Copy link
Member

Steps to reproduce

  1. Set up nextcloud with sub admins
  2. Log in as sub admin
  3. Open the logging settings
  4. See and click Download logs

Expected behaviour

Either I don't see the button or it works

Actual behaviour

The button is clickable and a XHR to /settings/admin/log/download is sent. It results in a HTTP 403 with no UI or console handling.

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: 30

Where did you install Nextcloud from:

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@joshtrichards
Copy link
Member

I wonder if we should move download from server to logreader while we're at it?

https://github.com/nextcloud/server/blob/0801ef8bcd0a2aa3e4e9ffd29212415a909a1331/apps/settings/lib/Controller/LogSettingsController.php#L37

https://github.com/nextcloud/server/blob/0801ef8bcd0a2aa3e4e9ffd29212415a909a1331/apps/settings/appinfo/routes.php#L46

I guess it depends a bit on whether there is anything else using it that we don't want to be dependent on logreader for some reason. 🤔

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

No branches or pull requests

2 participants