nextcloud / nextcloud/android

"Permission Denied" error when uploading from Android Client (but fine from Windows and iOS Clients)

Open
#6,570 38 comments 0 reactions 0 assignees View on GitHub
bug feature: transfers needs review stable-3.12
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

I was asked to create this ticket from the Help Desk Post - https://help.nextcloud.com/t/permission-denied-when-uploading-from-android-client-but-fine-using-windows-client/83696

### Steps to reproduce
When trying to upload from an Android Phone, I get the following error:

`Thu Jun 04 23:02:28.952824 2020] [core:crit] [pid 597] (13)Permission denied: [client xxx.xxx.xxx.xxx:12345] AH00529: /home/me/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/me/public_html/' is executable`

In initial testing, I've found:

- OK : Creating, deleting, downloading files is fine from my Win10 PC using the Win10 Nextcloud App
- OK: Creating Folders, deleting & downloading files is fine from my phone using the Nexcloud App
- Fail: Uploading Files using the Nextcloud App. The file upload itself works fine, but a few seconds after 100% uploaded I get “You are not permitted to upload to this folder” and the upload items shows as failed and “Permission Denied”.

If further testing I found:

- iPhone App: No Issues
- Win10 Desktop App: No Issues
- Android App: I’ve now tested on 2 x phones and both fails the same way

I have tried to some basic troubleshooting but have been unable to change the behaviour

- I have installed/uninstalled/reinstalled the Android App many times.
- I have tried changing the the .htaccess file in both public_html and under public_html/nextcloud from 644 to 755

### Expected behaviour
- Uploading from an Android Client should work

### Actual behaviour
- Uploading from an Android Client Fails

### Can you reproduce this problem on https://try.nextcloud.com?
- Please create a test demo account and see if this still happens there.
- If yes, please open up a bug report
- If not, please verify server setup and ask for help on forum

### Environment data
Android version: 10 - Kernel 4.14.117

Device model: LG V50 (can test on others)

Stock or customized system: Stock

Nextcloud app version: 3.12.1

Nextcloud server version: 18.0.5, 19.0.0, 19.0.1
Operating system and version: Linux 3.10.0-1062.18.1.el7.x86_64 x86_64
Apache or nginx version : ??
PHP version: 7.3.18

Reverse proxy: unsure

### Logs - Will need to provide these later

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.