Steps to reproduce
- Have AuthType Digest enabled for /var/www in 000-default-le-ssl.conf
- Have AuthType None enabled for /var/www/owncloud in 000-default-le-ssl.conf
- Restart apache2 service
- Log onto ownCloud from web browser and use the ownCloud functionality
- Log onto ownCloud from Android app and use the ownCloud functionality
Expected behaviour
Both ownCloud web browser interface and ownCloud Android app work as designed, while non-ownCloud content on the web server is protect with Apache Digest Authentication
Actual behaviour
- ownCloud web browser interface works fine
- Non-ownCloud content on the web server is protected by Apache Digest Authentication
- ownCloud Android App: logging in is possible, but synchronisation leads to Apache auth_digest errors:
AH17081: client used wrong authentication scheme ‘Basic’: /cloud/capabilities
AH17081: client used wrong authentication scheme ‘Basic’: /cloud/user
AH17081: client used wrong authentication scheme ‘Basic’: /dav/files/
AH17081: client used wrong authentication scheme ‘Basic’: /avatar/
AH17081: client used wrong authentication scheme ‘Basic’: /dav/files/
Server configuration
Operating system:
Raspbian GNU/Linux 10 (buster)
Web server:
Apache/2.4.38 (Raspbian)
Database:
Ver 15.1 Distrib 10.3.17-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
PHP version:
PHP 7.2.9-1+b2 (cli)
ownCloud version: (see ownCloud admin page)
10.3.2.2
Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:
Download section of official ownCloud website
Signing status (ownCloud 9.0 and above):
No errors have been found.
The content of the ownCloud configuration report:
https://gist.github.com/sjoerdj/d7fd15fd04aa4d8c62d917c55d4c4cd8#file-config_report_20200126-json
The content of /etc/apache2/sites-available/000-default-le-ssl.conf:
https://gist.github.com/sjoerdj/e6e267b674e16117dd7cca6b81ef13e8#file-000-default-le-ssl-conf
List of activated apps:
comments: 0.3.0
configreport: 0.2.0
dav: 0.5.0
encryption: 1.4.0
federatedfilesharing: 0.5.0
federation: 0.1.0
files: 1.5.2
files_external: 0.7.1
files_mediaviewer: 1.0.1
files_pdfviewer: 0.11.1
files_sharing: 0.12.0
files_trashbin: 0.9.1
files_versions: 1.3.0
firstrunwizard: 1.2.0
market: 0.5.0
notifications: 0.5.0
provisioning_api: 0.5.0
systemtags: 0.3.0
updatenotification: 0.2.1
Are you using external storage, if yes which one: local/smb/sftp/…
No
Are you using encryption: yes/no
Yes (master key)
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No
Client configuration
Browser:
Google Chrome version 79.0.3945.88 (Official build) (64-bits)
Operating system:
Windows 10 Pro version 1903
Logs
Web server error log:
[Sun Jan 26 09:49:46.055467 2020] [auth_digest:error] [pid 18351] [client x.x.x.x] AH17081: client used wrong authentication scheme ‘Basic’: /cloud/capabilities
[Sun Jan 26 09:49:47.887529 2020] [auth_digest:error] [pid 18351] [client x.x.x.x] AH17081: client used wrong authentication scheme ‘Basic’: /cloud/user
[Sun Jan 26 09:49:49.343337 2020] [auth_digest:error] [pid 18351] [client x.x.x.x] AH17081: client used wrong authentication scheme ‘Basic’: /dav/files/username
[Sun Jan 26 09:49:50.736224 2020] [auth_digest:error] [pid 18351] [client x.x.x.x] AH17081: client used wrong authentication scheme ‘Basic’: /avatar/username
[Sun Jan 26 09:49:53.779895 2020] [auth_digest:error] [pid 18361] [client x.x.x.x] AH17081: client used wrong authentication scheme ‘Basic’: /dav/files/username
ownCloud log (data/owncloud.log):
Not inserted, as there are no lines in this log related to the issue
Browser log:
Not inserted, as browser functionality is fine (issue occurs with using Android App)