251 Commits

Author SHA1 Message Date
Pranav Kant
9bb400714c Fix file revisions 2017-05-11 21:09:46 +05:30
Andras Timar
9b88e6b38c Merge pull request #37 from gabor-udvari/master
Add logging and template to unhandled exceptions
2017-04-20 15:01:11 +02:00
Gábor Udvari
e45982b487 Add logging and template to unhandled exceptions
A lot of users are getting an uninformative Access Forbidden page after
using the official setup instructions like in #21. Logging and showing
the actual exception will help troubleshooting these issues.
2017-04-08 17:28:26 +02:00
Pranav Kant
4c1943b956 Bin unused params
These were passed earlier and used when creating a document from the
dedicated richdocument's app page. But since that page is gone now and they
are not used anymore, lets bin them.
2017-04-05 16:02:25 +05:30
Pranav Kant
66935d4bed Send file path to the client also, fix revision history 2017-03-24 23:22:39 +05:30
Morris Jobke
9d85827409 Merge pull request #27 from nextcloud/fix-for-files_versions
Make files_versions work again
2017-03-24 11:50:02 -06:00
Lukas Reschke
f590ad9208 Merge pull request #11 from timar/master
add rtf and txt as supported file formats
2017-03-20 14:24:12 +01:00
Andras Timar
86fb4ead72 '==' and '!=' are discouraged 2017-03-14 11:59:37 +01:00
michag86
c72f22e180 Make files_versions work again
Added some lines which were lost after rewrite with version 1.1.22.
2017-03-10 09:25:22 +01:00
Morris Jobke
18d3498a50
Add icon to admin page sidebar
* follow up to nextcloud/server#3151

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-01-24 12:16:54 -06:00
Andras Timar
e5eb15cbc5 set the correct language tag expected by JS (typo fix) 2017-01-18 10:16:34 +01:00
Andras Timar
b565415e1c set the correct language tag expected by JS 2017-01-18 10:08:18 +01:00
Lukas Reschke
9cd9258dbb
Append instance id to rev history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-03 20:31:35 +01:00
Lukas Reschke
1441bdc594
Add instance id to file id
For multitenancy

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-03 19:55:04 +01:00
Lukas Reschke
719b159a44
v1.1.24
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-13 11:29:36 +01:00
Lukas Reschke
7ff4d5bb52
Add OwnerId
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 14:07:12 +01:00
Lukas Reschke
58134ab0a2
Gracefully handle exception
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 09:18:25 +01:00
Lukas Reschke
cb8e416343
Catch exceptions
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 09:14:33 +01:00
Lukas Reschke
5dd6344629
Delete cached discovery file if settings are changed
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 09:13:21 +01:00
Lukas Reschke
aa89c908a7
Remove unrequired route
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 01:01:01 +01:00
Lukas Reschke
88a93503ca
Properly use an integer
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 00:59:30 +01:00
Lukas Reschke
7ef24654cf
Public editing
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 00:57:01 +01:00
Lukas Reschke
75af90b4f1
Cleanup source code
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-06 21:09:40 +01:00
Lukas Reschke
f304fd4629
New admin pages
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-06 14:09:19 +01:00
Pranav Kant
a12ff8d0d2 security: Support WOPI's PostMessageOrigin
Adds a new property PostMessageOrigin to WOPI's CheckFileInfo.
The inner frame then only sends message to target with origin
mentioned in this property.

Also implement editor initialization WOPI specs. Inner frame
sends a App_LoadingStatus message to us when ready, and we send
Host_PostmessageReady when we are ready.
2016-10-27 17:57:46 +05:30
Pranav Kant
7e64777f4a Store canwrite property in DB
Move whether the file is editable or not logic when generating a
token and store it in the DB with the access token instead of
checking it dynamically in WOPI calls.
2016-10-19 21:12:29 +05:30
Pranav Kant
20d2ce582a Don't ignore non-updatable files
Don't discriminate with these files; let them have the right to
join the session or generate access token like other sessions
2016-10-19 21:12:29 +05:30
Pranav Kant
84dbbafe70 Formatting 2016-09-14 11:48:25 +05:30
Robin Appelman
cfd3bb662a Use non strict comparison to validate token
On my setup this is needed to load a document

Maybe related to using postgres
2016-07-19 15:04:32 +02:00
Pranav Kant
45d76a1c68 Add support for opening and editing files from external storage 2016-07-18 16:17:44 +05:30
Pranav Kant
3235b886ad Add a revision history sidebar 2016-06-28 14:24:26 +05:30
Pranav Kant
eb79866efd Fix path for shared documents 2016-06-28 14:24:26 +05:30
Pranav Kant
440eb9e27c Add missing mtime field to processed documents 2016-06-28 14:24:26 +05:30
Ashod Nakashian
0517f76c32 Shared documents now show correct editor's name in the change hisotry 2016-06-18 20:43:00 -04:00
Ashod Nakashian
0c508a09e0 Support for file versioning in WOPI 2016-06-17 10:27:35 -04:00
Pranav Kant
af16a4cd27 Make me work with owncloud9
Due to API change (searchByMime), app was completely broken when
installed with owncloud9. This change should make it work with
owncloud9, while still keeping older owncloud version (upto 8.2)
in working state.

Lets use functions on object returned by searchByMime instead of
directly accessing its data members.
2016-06-15 13:33:25 +05:30
Pranav Kant
b138109820 Don't load all documents when only one is clicked on from 'Files' 2016-06-09 20:17:36 +05:30
Andras Timar
ef78d87173 PHP syntax error on Ubuntu 14.04 LTS
syntax error, unexpected '*', expecting ',' or ';' at /var/www/owncloud/apps/richdocuments/lib/db/wopi.php#28
2016-04-05 14:20:05 +02:00
Ashod Nakashian
38c1b87435 wopi: support for file sharing and authentication 2016-03-23 21:58:13 -04:00
Andras Timar
f3eaa1683d use SSL 2016-03-23 22:03:39 +01:00
Henry Castro
e6bda70834 Application config, set default port 9980 2016-03-15 19:24:34 -04:00
Andras Timar
a32c1e2be3 remove unused webODF unstable setting 2016-03-15 00:23:17 +01:00
Andras Timar
f0f3e42c0e remove dead code (from Collabora Online perspective) 2016-03-14 23:34:29 +01:00
Ashod Nakashian
be97780451 WOPI Token table and database plumbing added 2016-03-09 08:40:48 -05:00
Henry Castro
08dbf236d9 Add WOPI client settings 2016-03-05 17:40:47 -04:00
Victor Dubiniuk
447610b260 Fix appid 2015-12-16 18:04:32 +03:00
Andras Timar
8010839279 bccu#1335 don't try to handle pdf, internal pdf.js does a better job 2015-11-15 19:12:45 +01:00
Jan Holesovsky
e6593def87 cloudsuite: Add buttons to create new spreadsheet and new presentation. 2015-11-04 21:49:23 +01:00
Mihai Varga
ddc34a60c3 bug #1261 - added microsoft document mime types 2015-11-04 10:12:30 +02:00
Mihai Varga
8d2a2e1f1f add opendocument.graphics mime type 2015-11-04 10:04:44 +02:00