core icon indicating copy to clipboard operation
core copied to clipboard

Upload is finished, icon keeps displayed - OC 4.5.5

Open paddydrums opened this issue 13 years ago • 17 comments

Other than stated here: https://github.com/owncloud/core/issues/648 the same issue occurs under OC 4.5.5

I recently updated an OC-installation from 4.0 to 4.5.2 and now to 4.5.5.

Expected behaviour: When I upload a file (regardless of filesize), the progressbar ist displayed, walks to the end and then disappears. The turning icon in front for the newly added file should as well be hidden. Changing the page should not result in a browser-alert when the upload has finished.

Actual Behaviour: The turning icon still stays displayed. A javascript error is thrown: "Uncaught SyntaxError: Unexpected token [...] core.js:11" On leaving the page in Chrome (e.g. by clicking on "Files" again) a warning ist diplayed, asking to confirm leaving (not displayed in FF or Opera).

Internet Explorer behaves even worse: after completing the upload, the page refreshes and shows a note on top: "Token expired. Please reload page.". The file is not uploaded and disappears upon refresh.

The file is completely uploaded in all other browsers.

Mimetype detection seems to work fine, Icons for different filetypes are correctly displayed.

Configuration: OC-Version: 4.5.5 PHP version 5.3.10-2 json version 1.2.1 SQLite3 module version 0.7-dev SQLite Library 3.7.12.1 Server seems to be running Debian 3.2.0 (PHPinfo says "Linux delta 3.2.0-2-amd64")

Affected software Mac OSX/Safari (Version not known) Mac OSX/Firefox (Version not known) Win7/Chrome 24 Win7/Opera 12 Win7/Firefox 17 Win7/IE 9

P.S.: For no obvious reason the browser-message about leaving the page is not displayed anymore. I did not change anything, it just doesn't appear. The js-Error is still thrown.

paddydrums avatar Jan 13 '13 17:01 paddydrums

Similar observed on my install, Have not looked at the js log errors, however behaviour of spinning circle - regardless of file size or type (could be 1k txt file). When refresh or leave page the "The page is asking if you want to confirm that you want to leave" warning comes up. On refresh file is seen to have uploaded. Also similar is seen with the desktop sync (1.1.4) (creates a conflicted file for each upload locally, but only one seen in folder on server) and the owncloud ipad application - "Transfer failed" is reported on upload attempt - again upload is seen as successful on upload. I would understand all of these are linked problems with the owncloud install not reporting back that the file was successfully uploaded. Searched for changes as mentioned in issue #648 and saw that in the 4.5.5 code that they have already been implemented.

Configuration OC-version 4.5.5 PHPversion 5.4.10 json 1.2.1 mysql 5.0.10 Server: Windows 2012 with iis8 No custom users, no ldap configuration - using only the admin account to test. Note the owncloud server has DMZ access and internal network card and the whole network sits behind proxies (however attempts at non proxied addresses produced same results). I wouldn't feel this to be a network or routing issue at this stage.

Affected software ipad - owncloud osx 10.7.5 desktop sync 1.1.4 Firefox 18.0 on (osx 10.7.5) safari 6.0.2 on (osx 10.7.5)

Followed tutorial: http://forum.owncloud.org/viewtopic.php?f=8&t=2370 - followed exactly including appcmd

Kind regards

TheOx avatar Jan 14 '13 07:01 TheOx

i haven't dive into this issue , but i wonder if it isn't some kind of race condition happening with ajax queries... like ajax finishing before the row is added to the table, so it's unable to mark it as finished... smth like that

eMerzh avatar Jan 15 '13 21:01 eMerzh

I'm having the same issue with a freshly installed 4.5.6 running on a WAMP server.

php 5.3.13 mysql 5.5.24 apache 2.2.22

The file upload is done but the icon is rolling, rolling rolling...

Tested in chrome and internet explorer.

thecrazy avatar Jan 24 '13 18:01 thecrazy

I have the same issue with Windows 2008/IIS7.5. The firebug show remote.php/core.js has problem. I guess my IIS or d:/uploadtmp folder is error in configuration. Anyone can guide me? thanks.

john24318 avatar Jan 26 '13 17:01 john24318

Recent analysis have shown that ownCloud will not work flawless in windows. Maybe be can deliver a more stable release for windows with oc5.

I'll keep you updated and sooner or later will ask you for testing if you agree.

DeepDiver1975 avatar Jan 26 '13 18:01 DeepDiver1975

After I replaced IIS by Apache, it works fine now. (still on Windows)

john24318 avatar Jan 28 '13 03:01 john24318

Updated to 4.5.6 but the behaviour is still the same (Configuration has not changed).

paddydrums avatar Jan 28 '13 06:01 paddydrums

A detailed look at the Chrome Developer Tools showed, that the thrown exception ist triggered by line 379 in apps/files/js/files.js

Obviously the Ajax-Request states a succes, but since parsing the JSON Object fails it causes all Javascript to stop.

The http-request is ?app=files&getfile=ajax%2Fupload.php and this is the response I recieved:

Warning: sort() expects parameter 1 to be array, boolean given in /apps/files_versions/lib/versions.php on line 97

Warning: end() expects parameter 1 to be array, boolean given in /apps/files_versions/lib/versions.php on line 98 [{"status":"success","mime":"image/jpeg","size":"135310","id":"381","name":"my_file.jpg"}]

The function that contains these lines is obviously dealing with file-versioning. This is slowly getting beyond me, so maybe this is a new hint for anybody here?

paddydrums avatar Jan 28 '13 07:01 paddydrums

If your Windows 2008 is very slow in transporting. Try this hotfix: http://support.microsoft.com/kb/2675785. x86: http://hotfixv4.microsoft.com/Windows 7/Windows Server2008 R2 SP1/sp2/Fix387621/7600/free/444248_intl_i386_zip.exe x64: http://hotfixv4.microsoft.com/Windows 7/Windows Server2008 R2 SP1/sp2/Fix387621/7600/free/444235_intl_x64_zip.exe

john24318 avatar Jan 29 '13 04:01 john24318

I have the same problem on Windows Server 2012 running iis 8.0. The server 2008 patch does not work for windows server 2012.

ejb1123 avatar Mar 20 '13 22:03 ejb1123

@ejb1123 and your OC version is...

VicDeo avatar Mar 20 '13 22:03 VicDeo

version 5. I did not have this problem in 4.5.8

ejb1123 avatar Mar 20 '13 23:03 ejb1123

I fixed my problem by disabling the picture app.

ejb1123 avatar Mar 20 '13 23:03 ejb1123

@ejb1123 the picture app is currently untested on window server environment for OC5. Sorry for that.

DeepDiver1975 avatar Mar 21 '13 07:03 DeepDiver1975

@ejb1123

version 5. I did not have this problem in 4.5.8

For OC 5 this was reported in a seperate issue owncloud/apps#648 where a user just posted a possible solution for this.

ghost avatar Apr 05 '13 15:04 ghost

thanks

ejb1123 avatar Apr 05 '13 22:04 ejb1123

I can confirm that the fix suggested in owncloud/apps#648 solved all the annoying neverending loading issues across my entire Windows 7-IIS based instance of OwnCloud. Opened the file"apps/gallery/lib/thumbnail.php" and replaced if ($parent !== '/' and $parent !== '') with if ($parent !== DIRECTORY_SEPARATOR and $parent !== '')

tommyms avatar Apr 05 '13 23:04 tommyms