Commit Graph

69 Commits (e3d3f6bec3ff597809fa3d926c5f8115ae6d3773)

Author SHA1 Message Date
Pranav Kant e3d3f6bec3 Remove unused fields 8 years ago
Pranav Kant 05b4d568f6 Add UserId, UserFriendlyName to WOPI CheckFileInfo 8 years ago
Pranav Kant c166c7b189 Respect default settings
Support for default settings when there is none provided by user
was already in lib/appconfig.php

But we were using the CoreConfig object always which queries the
database; lets use the appConfig object so that if the value is
missing in the database, we still have the default value to take
care of the app.
8 years ago
Jan Holesovsky dd832f3501 Improve the error message. 8 years ago
Pranav Kant be84ac71f8 Explicit is better than implicit
For consistency, lets close the opened user login session here
also.
8 years ago
Pranav Kant 45d76a1c68 Add support for opening and editing files from external storage 8 years ago
Pranav Kant 82906c7cd7 No need to make the user login here, and fix incorrect userid
Setting up FS is enough to get the correct file version. No need
to make the user login here.

File version would be in owner's FS, not editor, so
s/editorid/ownerid/
8 years ago
Pranav Kant e0da6fa8d1 Create a dummy memory session before signing in as user
Since this WOPI Put method is executed when loolwsd hits owncloud
server, it has no session or probably invalid session data. Even
though WOPI Put file operation initiated by loolwsd succeds, i.e
file is successfully put into owncloud storage and versioned, it
returns an HTTP 500 Internal server error as response to loolwsd
which causes problem on loolwsd side messing up its state.

Following trace can be observed in webserver's error logs after
HTTP 500 is returned:

PHP Fatal error:  Uncaught exception 'Exception' with message 'Session has been closed - no further changes to the session are allowed'
in /var/www/html/owncloud9/lib/private/session/internal.php:135
Stack trace:
 #0 /var/www/html/owncloud9/lib/private/session/internal.php(60): OC\\Session\\Internal->validateSession()
 #1 /var/www/html/owncloud9/lib/private/session/cryptosessiondata.php(150): OC\\Session\\Internal->set('encrypted_sessi...', 'e747091469b9905...')
 #2 /var/www/html/owncloud9/lib/private/session/cryptosessiondata.php(64): OC\\Session\\CryptoSessionData->close()
 #3 [internal function]: OC\\Session\\CryptoSessionData->__destruct()
 #4 {main}\n  thrown in /var/www/html/owncloud9/lib/private/session/internal.php on line 135

Creating a dummy memory session, setting it as current session,
and then setting the desired user session seems to address this
problem and does not emit HTTP 500 anymore.
8 years ago
Pranav Kant 3235b886ad Add a revision history sidebar 8 years ago
Ashod Nakashian 0517f76c32 Shared documents now show correct editor's name in the change hisotry 8 years ago
Ashod Nakashian fc81c07f70 Saving through WOPI registers the change as the owner 8 years ago
Ashod Nakashian 0c508a09e0 Support for file versioning in WOPI 8 years ago
Pranav Kant bb01949a9a Use new owncloud9 addMenuEntry plugin
... to add new odf files from main 'Files' app
8 years ago
Pranav Kant b138109820 Don't load all documents when only one is clicked on from 'Files' 8 years ago
Andras Timar 8534ee60ba CA chain cert name change 8 years ago
Andras Timar 39b860ffa2 do not query UI language for each doc, it's same for all 8 years ago
Andras Timar e22151a2b5 Pass the lang paramater to loleaflet from ownCloud user settings, which controls UI language 8 years ago
Andras Timar cb271b50e5 Merge pull request #47 from timar/master
frame-src is deprecated on Firefox, but Safari wants it
8 years ago
Jan Holesovsky 69a2880800 Send the hint too. 8 years ago
Andras Timar 8f61bbe08f frame-src is deprecated on Firefox, but Safari wants it 8 years ago
Henry Castro efcf28abc2 Add ulrsrc attribute when create new documents 8 years ago
Jan Holesovsky ea47464459 More improvements in the error handling. 8 years ago
Jan Holesovsky 2508e550fc Content Security Policy: frame-src is deprecated, use child-src instead. 8 years ago
Jan Holesovsky 155f9578fc MemCache is not mandatory any more; but used if available. 8 years ago
Jan Holesovsky 80cc8bf197 Improved error messages around discovery.xml. 8 years ago
Andras Timar faf5c1007f allow HTTP-only mode for testing/trial 8 years ago
Andras Timar 2b302fa1af local file access method is deprecated by WOPI 8 years ago
Ashod Nakashian 38c1b87435 wopi: support for file sharing and authentication 8 years ago
Ashod Nakashian dc05bb09f5 wopi: CheckFileInfo handler added 8 years ago
Andras Timar f3eaa1683d use SSL 8 years ago
Henry Castro 119e5ca38c Fix inconsistent validation bug 8 years ago
Henry Castro 3a8b677bfd Add response error page 8 years ago
Henry Castro c168936107 Allow domain websocket URI 8 years ago
Andras Timar a32c1e2be3 remove unused webODF unstable setting 8 years ago
Andras Timar f0f3e42c0e remove dead code (from Collabora Online perspective) 8 years ago
Ashod Nakashian 4585de5261 Pass fileId to get path 8 years ago
Henry Castro 14eda814f5 Read discovery.xml capabilities 8 years ago
Ashod Nakashian 30a22ef7e7 WOPI GetFile and PutFile added and document loader updated 8 years ago
Henry Castro 13692a5d3b Request discovery.xml from WOPI client 8 years ago
Henry Castro 2d2edffa80 Add initial cache support 8 years ago
Henry Castro 85f3079b47 Post WOPI url iframe 8 years ago
Henry Castro 3a607668cc Add template response wopi_url 8 years ago
Henry Castro 08dbf236d9 Add WOPI client settings 8 years ago
Andras Timar 407df19d7a remove temp file only when all edit instances are closed 8 years ago
Andras Timar 7e43957711 enable shared view of the same document 8 years ago
Andras Timar d290e21b40 remove trailing whitespaces 8 years ago
Victor Dubiniuk 447610b260 Fix appid 8 years ago
Jan Holesovsky e587fce1da cloudsuite: Construct more reasonable names + copy mtime.
So that we are able to use the cloudsuite tile caching.
9 years ago
Jan Holesovsky 91e49449f3 cloudsuite: Cleanup when the document is closed. 9 years ago
Jan Holesovsky e6593def87 cloudsuite: Add buttons to create new spreadsheet and new presentation. 9 years ago