owncloud / ios-legacy

:iphone: iOS app for ownCloud
https://itunes.apple.com/app/owncloud/id543672169
GNU General Public License v3.0
624 stars 687 forks source link

Failed Upload iOS App #985

Open RomanSch opened 6 years ago

RomanSch commented 6 years ago
### Steps to reproduce 1. Upload a Jpg formatted Picture directly in the App. Even every other Fileformat produces this Error. 2. 3. ### Expected behaviour Normal upload of the File to the desired server and folder. ### Actual behaviour iOS App tells me in the Upload Tab "Waiting for a Serverconnection". After a lot of attempts the app tells me "File not available". ### Server configuration **Web server:** Debian 8.10 **Database:** MariaDB 10.0.32 **PHP version:** 7.0.26 **ownCloud version:** 10.0.4 **Storage backend (external storage):** none ### Client **iOS version:** 11.2.1 **ownCloud app version:** 3.6.2 (dcf4a45) **Device model:** iPhone 7 MN922ZD/A ### Logs #### Web server error log ``` none belonging to ownCloud ``` #### ownCloud log (data/owncloud.log) ``` Dec 25 11:23:33 XXXX ownCloud[13392]: {webdav} Exception: {"Message":"HTTP\/1.1 404 File with name Docs\/Photo-2017-12-25-11-22-54_1426.JPG could not be located","Exception":"Sabre\\DAV\\Exception\\NotFound","Code":0,"Trace":"#0 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(966): OCA\\DAV\\Connector\\Sabre\\ObjectTree->getNodeForPath('Docs\/Photo-2017...')\n#1 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(1665): Sabre\\DAV\\Server->getPropertiesIteratorForPath('Docs\/Photo-2017...', Array, 0)\n#2 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/CorePlugin.php(355): Sabre\\DAV\\Server->generateMultiStatus(Object(Generator), false)\n#3 [internal function]: Sabre\\DAV\\CorePlugin->httpPropFind(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#5 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:PROPFIND', Array)\n#6 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/lib\/composer\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#7 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(63): Sabre\\DAV\\Server->exec()\n#8 \/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/remote.php(165): require_once('\/var\/www\/vhosts...')\n#9 {main}","File":"\/var\/www\/vhosts\/XXXvHostPathXXX\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":199,"User":"XXXuserNameXXX"} ``` ### Tell us what could be improved:
nasli commented 6 years ago

@RomanSch Thanks for your feedback, we can not reproduce here with 10.0.4, 3.6.2 and iOS 11.2.1. for more information:

When did it stop working? Did you just update some server configuration? Are you using some proxy? Are you uploading directly from the app or sending from other app?

RomanSch commented 6 years ago

@nasli

nasli commented 6 years ago

Could be related with the kind of photo Are those photos downloaded in your device? Do you use iCloud stream?

You can provide us a test account in your server in apps@owncloud.com and reference this issue, thanks!

RomanSch commented 6 years ago

@nasli i checked the photo format. It was jpeg. I tested it with different kind of photos. Downloaded an made by me with the phone camera. Yes i use the icloud stream.

I provided you access to my server. I send it to the mentioned Email address.

RomanSch commented 6 years ago

@nasli Hi Nasli, any further informations on the current status? Thanks.

RomanSch commented 6 years ago

The App is in this state absolutely useless for me! Maybe we can do some more investigation on this? I would really appreciate. Especially as you received an access account to my owncloud Site.

RomanSch commented 6 years ago

Any news on this issue?????

jesmrec commented 6 years ago

i have just checked your test account (thanks for sharing!!), and i tried out an upload from the camera roll.

The core response was 413 (Payload Too Large)

The requested resource
/remote.php/webdav/Photo-2018-03-01-09-56-33_0225.JPG
does not allow request data with PUT requests, or the amount of data provided in the request exceeds the capacity limit.

comparing with a test server with the same status.php, i can not reproduce the problem, so in our test server files are correctly uploaded. You told there neither proxy nor infras in the middle that can handle the request.

Are there any special configuration in your server?

I will perform other checks and let you informed.

RomanSch commented 6 years ago

Hi Jesús, thanks for your answer. No far as i know. How can i check if there is some special configuration regarding this issue?

Best Roman

jesmrec commented 6 years ago

are you using nginx or apache? (in server side, i mean)

RomanSch commented 5 years ago

@jesmrec i am using apache with nginx as proxy. Installed with and on a plesk server. I already updated to owncloud 10.0.10.4 as a fresh installation with complete new database and fresh data upload. So nothing from an old instance of owncloud is left. In the new instance there is no longer a Test account. So if you need one again I can provide you a new one.

jesmrec commented 5 years ago

@RomanSch i guess it is still reproducible with version 3.8.0. If you can ship us a test account, it will be helpful