Giter VIP home page Giter VIP logo

Comments (26)

karlitschek avatar karlitschek commented on July 30, 2024

@VicDeo Can you test with current core master and have a look?

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek just pulled the master and can't reproduce. Anything related in logs/browser console?

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

[Wed Oct 02 16:09:44 2013] [error] [client 192.168.58.1] PHP Fatal error: Class 'OCA\Documents\OCP\Template' not found in /var/www/owncloud/documents/lib/download.php on line 103, referer: http://oc:90/core/index.php/apps/documents
[Wed Oct 02 16:09:44 2013] [error] [client 192.168.58.1] PHP Fatal error: Class 'OCA\Documents\OCP\Template' not found in /var/www/owncloud/documents/lib/download.php on line 103, referer: http://oc:90/core/index.php/apps/documents

But even after fixing this (adding a "") doesn't fix this problem.
Tested with latest core master and Chrome, Safari, Firefox. Just a grey spinner.

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

In the JS console I get:

HEAD http://oc:90/core/index.php/apps/documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a 404 (Not Found) documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a:1
GET http://oc:90/core/index.php/apps/documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a 404 (Not Found) documents/ajax/genesis/6a1d0e24f3ea16c92ee95292c2115a:1
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

from documents.

kossebau avatar kossebau commented on July 30, 2024

Could be that you have non-compatible stuff in the db from an old session which no longer matches current state.
Can you send me the odt file where this happens per pm, so I can test tonight if there are issues with webodf itself?

from documents.

kossebau avatar kossebau commented on July 30, 2024

Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

Ah, that seems less a webodf problem then. Well. Kind of is still, an error escalition problem. That part is still a TODO with webodf :(

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

I tested this with a clean owncloud and with an empty new document

from documents.

thz avatar thz commented on July 30, 2024

if the genesis handler returns a 404 then there is not much WebODF can do except to do a more gracefull handling of this exceptional state. the problem is either:

  • the document was not copied in the right place on session-creation
  • the database has incorrect information where to look for the document
  • the genesis url delivered to WebODF is corrupt

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

@VicDeo Does this really work for you with a fresh core master installation? Very strange.

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek I did a clean install cloning current master.
Reproduced, fixed and pushed. The very first document was always failing as fs was not ready yet.

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

Thx

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

Hmm. Perhaps I'm totaly crazy but the error still exists for me with a fresh checkout and a new owncloud setup. @VicDeo Does it work for you?

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek ok, doing another fresh install to test

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek can't reproduce on completely fresh install. Do you use the instance for which this bug was initially reported by any chance?

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

it indeed works with a clean seperate checkout. very strange. Sorry for the noise :-)

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek Besides with the fix I submitted a patch that doesn't allow to create session entry if related file was not stored successfully.
So just clean oc_documents_session on that instance and everything will work there too.

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

Unfortunately I still have the same issue after a clean install.
In the php log:
{"app":"PHP","message":"RecursiveDirectoryIterator::__construct(/var/www/html/owncloud/data/admin/thumbnails/13/): failed to open dir: No such file or directory at /var/www/html/owncloud/lib/private/files/storage/local.php#44","level":3,"time":"2013-10-20T14:57:21+00:00"}

In JS console:
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Uncaught ReferenceError: runtime is not defined Server.js:4

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@karlitschek is this the only error in JS console?
Can you check if all js files are loaded (there are no 404 status for some of them)

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

I can see only that. The interesting thing is that is also works every 2nd or third time. @PVince81 You had a similar error before, right?

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

The interesting thing is that is also works every 2nd or third time

@karlitschek it works/doesn't work/ for the same file or it's file persistent?
Which DB engine/browser do you use?

from documents.

PVince81 avatar PVince81 commented on July 30, 2024

Now I get this error in the console (with OC6 master + documents master):
Uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.

It stays stuck on the loading spinner of the document.

from documents.

VicDeo avatar VicDeo commented on July 30, 2024

@PVince81 Did you pull recently?
Which browser?

from documents.

PVince81 avatar PVince81 commented on July 30, 2024

Yes, pulled both master branches and cleant my cache. (Chrome 30)
I did the same on another test machine and it works there with the same browser (connecting remotely).

I suspect there is still a race condition somewhere. Since I'm using the same client computer+browser, could there be a race condition on the server side ?

from documents.

PVince81 avatar PVince81 commented on July 30, 2024

Wait, it looks like the server difference is that I have encryption enabled. Will test this with and without encryption.

from documents.

PVince81 avatar PVince81 commented on July 30, 2024

Ok, I get this in the log:
{"app":"Encryption library","message":"failed to open file "/root/documents/91fd6163c58570ee3fb2e3360ff0294f9e72f06f.odt" expecting a path to user/files or to user/files_versions","level":3,"time":"2013-10-22T14:03:09+00:00"}

CC @schiesbn

from documents.

karlitschek avatar karlitschek commented on July 30, 2024

probably fixed

from documents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.