JPG upload seems to be corrupted
Hey
uploaded jpg per ownCloud-client on a Android device seems to be damaged. Pictures are not readable on other devices.
Tested: Samsung Galaxy 3 mini -> Ubuntu 12 -> file damaged Samsung Galaxy Tab (GT1000) -> Ubuntu 12-> file damaged Samsung Galaxy 3 mini -> Samsung Galaxy Tab (GT1000) -> file damaged Ubuntu -> Samsung Galaxy Tab (GT1000) -> file ok Ubuntu -> Samsung Galaxy 3 mini -> file ok
Versions: ownCloud 4.5.6 Linux ownCloud-client 1.2.0 Android ownCloud client 1.3.20
When you write 'Ubuntu 12' in those cases, are you meaning 'Linux ownCloud-client at Ubuntu 12' ? Did you check the uploaded images through the ownCluod web interface ?
Hi Test 1. I took the picture with the camera of my SGS 3 mini, uploaded it and watched it on Ubuntu --> error I watched the picture on my SGS 3 mini -> fine I tried to watch the same on my galaxy tab --> error I tried the same procedure with a new picture again --> error I copied the taken pictures directly via cable and watched it on my laptop -> ok, no errors
I found out the filesize on the server wasn't correct. 30 % difference (I believe). The picture has not been uploaded completely.
Test 2. I choosed a picture from my galaxy tab, uploaded it and watched it on Ubuntu --> error I tried to watch the same picture on my mobile --> error
Test 3. I uploaded a picture from Ubuntu and watched in on my mobile devices --> ok, no errors
For all uploading processes I used the mentioned owncloud clients. I watched the pictures on the webinterface. The pictures uploaded via android were broken. The Ubuntu one was fine.
Versions: Ubuntu 12.04 with ownCloud-client 1.2.0 hosted ownCloud: ownCloud server 4.5.6 Android ownCloud client 1.3.2
If I can do anything just let me now. If you have a test server I could try to use it an reproduce the error.
Some more questions. In the tests 1 and 2:
- What was the total size of the images?
- Does it only fail with JPG images? Are PNG files OK, for instance?
- Did the uploads finish with a sucess message in the mobile and then were corrupted in the server, or did they finish with an error message in the mobile? In both cases the message is visible in the notification bar.
Could help if you provide us a test account in your server. You can send the credentials too [email protected] , including in the subject "Android issue #91".
About test 2:
I tried various filetypes yesterday (jpg, png, odt, xls, pdf; 50 KB - 5 MB). Some uploaded successfully, some not. There were no error messages. It seems not to be a question of filetype. And I can not absolutely say my installed server is ok. When I tried to create a user I got a strange error. I'll wait until my own server has arrived. Maybe its over then. Nevertheless its strange why the android devices causes errors and the Linux one not. The Webaccess does work too.
Well, there are different interfaces involved. Web interface works on its own interface. Android and iOS clients use a WebDAV interface, with an extended API for file uploading that is only available in ownCloud servers from 4.5.x ; this extended API let the clients to upload the files in several pieces that are put together later by the server. I do not know how the Linux client is working, but maybe it is not using the WebDAV interface, or not using the extended API and the file is uploaded in a single HTTP call.
Or maybe it is fault of the Android app, but right now we do not know other people with the same problem.
Then lets postpone it. I think I'll have my own server at the end of Feb. If I still have the same problems I give you a sign.
OK. Please, if you do not have the problems, tell us too :)
This seems inactive. Just reopen if the problem comes back
Problem still exists. owncloud 5.0.5, latest clients.
Hey I think I still have the problem. I tried to upload a picture but it has not been uploaded completely. The app said everything is fine but when I checked the filesize there was a difference of 40 %, more or less.
Edit:
I gave it another try and uploaded 6 different files/filetypes Test-1-txt.txt, Test-2-docx.docx, Test-3-pdf.pdf, Test-4-zip.zip, Test-5-jpg.jpg, Test-6.jpg.jpg Test 1 - 4 were ok. 5 and 6 failed. In both cases the filesize was 0. All files had been uploaded without any errors messages.
There are no error messages in the logfiles of ownCloud. Shall I try something else?
Same here with 5.0.6 and adroid client 1.4.0. I did take 5 photos, the first 3 are uploaded incomplete on the server, the last 2 pictures are ok.
Here the correct files: 21.05.2013 13:18 3'185'208 DSC_0438.jpg 21.05.2013 13:18 3'359'122 DSC_0439.jpg 21.05.2013 13:18 2'039'503 DSC_0440.jpg 21.05.2013 13:19 2'142'841 DSC_0441.jpg 21.05.2013 13:19 2'090'055 DSC_0442.jpg
Here the files uploaded via instant upload from android: 21.05.2013 13:23 113'208 DSC_0438.jpg 21.05.2013 13:24 1'311'122 DSC_0439.jpg 21.05.2013 13:25 1'015'503 DSC_0440.jpg 21.05.2013 13:25 2'142'841 DSC_0441.jpg 21.05.2013 13:26 2'090'055 DSC_0442.jpg
What's strange is the fact that this are not incomplete uploads, but realy corrupted (+incomplete?) uploads Attached the correct (left side) header of DSC_0439.jpg and the corrupt (right side) upload of it

When I comprae the file byte per byte, then I see that the corrupt upload of DSC_0438 starts with the bytes which are shown at offset 0x2EE000 in the correct file. In file DSC_0439 they start at 0x1F4000 In file DSC_0440 they start at 0xFA000

I have the same issue on a fresh install of OC 7.0.2 on CentOS Server and Android OC client 1.5.8. I can view the pictures but a part of them are grey. How big the part are differs from picture to picture... But all pictures get broken. Tested with Samsung Galaxy S4
I am sorry, I didn't notice the 'reopen' button is restricted. This seems to continue alife, should be open
@Radg, @Erik8219 , @a-schild , @HotRod72 , would be useful if you could tell us:
- are you still suffering the bug?
- what is your OC server version?
- what is your web server?
Some logs from the web server could help also.
Thanks.
Closing this due to lack of response; please, reopen if needed.
Thanks.
I also experience this using client 1.9.1 with the Davros server (server is not ownCloud, client is). I suspect this is a client issue, as other WebDAV clients do not have the same behavior to the same server.