Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Default encryption module #103

Closed
cwm77 opened this issue Mar 23, 2017 · 11 comments
Closed

Compatibility with Default encryption module #103

cwm77 opened this issue Mar 23, 2017 · 11 comments

Comments

@cwm77
Copy link

cwm77 commented Mar 23, 2017

While trying to open a Document a Pop-Up plops up “Error” “Download failed” “OK”.

In log file following entry is logged:
Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.

I assume that compatibility with Default encryption module is not given yet, correct?

Nextcloud 11.0.2 (stable)

@CordlessWool
Copy link

I have the same problem

@rafilkmp3
Copy link

rafilkmp3 commented Mar 23, 2017

+1 sames here, any workaround ??

using latest stable owncloud

@e-alfred
Copy link

e-alfred commented Mar 27, 2017

This seems to be a serious bug if encryption is enabled on Owncloud and the DocumentServer tries to download the file from the Owncloud instance. Here is the full log if I try to open a document:

[2017-03-27 14:58:14.999] [ERROR] nodeJS - error downloadFile:url=https://server/index.php/apps/onlyoffice/download?doc=trhrthgfdhthrhrththrh%3D%3D;attempt=1;code:undefined;connect:undefined;(id=316130081472041984)
Error: Error response: statusCode:503 ;body:
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" >
        <head data-requesttoken="">
                <meta charset="utf-8">
                <title>
                ownCloud                </title>
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
                <meta name="referrer" content="never">
                <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
                <meta name="apple-itunes-app" content="app-id=543672169">
                <meta name="theme-color" content="#1d2d44">
                <link rel="icon" href="/core/img/favicon.ico">
                <link rel="apple-touch-icon-precomposed" href="/core/img/favicon-touch.png">
                <link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#1d2d44">
                                        <link rel="stylesheet" href="/core/css/styles.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/inputs.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/header.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/icons.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/fonts.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/apps.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/global.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/fixes.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/multiselect.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/mobile.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/vendor/jquery-ui/themes/base/jquery-ui.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/jquery-ui-fixes.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/tooltip.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/share.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/files_versions/css/versions.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/files_pdfviewer/css/style.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/files_videoplayer/css/style.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/firstrunwizard/css/colorbox.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/firstrunwizard/css/firstrunwizard.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/apps/imprint/css/reference.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                        <link rel="stylesheet" href="/core/css/jquery.ocdialog.css?v=7c68a1af03e8e5edad1ba68092a1eac0">
                                                                        <script src="/core/vendor/jquery/dist/jquery.min.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/jquery-migrate/jquery-migrate.min.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/jquery-ui/ui/jquery-ui.custom.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/underscore/underscore.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/moment/min/moment-with-locales.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/handlebars/handlebars.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/blueimp-md5/js/md5.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/bootstrap/js/tooltip.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/backbone/backbone.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/es6-promise/dist/es6-promise.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/davclient.js/lib/client.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/placeholders.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/compatibility.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/jquery.ocdialog.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/oc-dialogs.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/js.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/l10n.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/octemplate.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/eventsource.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/config.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/search/js/search.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/oc-requesttoken.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/apps.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/mimetype.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/mimetypelist.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/snapjs/dist/latest/snap.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/vendor/backbone/backbone.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/oc-backbone.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/placeholder.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/jquery.avatar.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/encryption/js/encryption.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/shareconfigmodel.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/shareitemmodel.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialogresharerinfoview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialoglinkshareview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialogmailview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialogexpirationview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialogshareelistview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/sharedialogview.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/share.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/shorten/js/script.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/shorten/js/admin.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/files_clipboard/js/clearClipboard.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/files_pdfviewer/js/previewplugin.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/files_videoplayer/js/viewer.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/firstrunwizard/js/jquery.colorbox.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/firstrunwizard/js/firstrunwizard.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/apps/imprint/js/reference.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/files/fileinfo.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                        <script src="/core/js/files/client.js?v=7c68a1af03e8e5edad1ba68092a1eac0"></script>
                                <meta data-imprint-position-user=""/><meta data-imprint-position-guest=""/><meta data-imprint-position-login=""/>       </head>
        <body id="body-login">
                <noscript>
        <div id="nojavascript">
                <div>
                        This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">enable JavaScript</a> and reload the page.          </div>
        </div>
</noscript>
                <div class="wrapper">
                        <div class="v-align">
                                                                        <header role="banner">
                                                <div id="header">
                                                        <div class="logo svg">
                                                                <h1 class="hidden-visually">
                                                                        ownCloud                                                                </h1>
                                                        </div>
                                                        <div id="logo-claim" style="display:none;"></div>
                                                </div>
                                        </header>
                                                                <ul class="error-wide">
                        <li class='error'>
                        Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.<br>
                                        </li>
        </ul>
                                <div class="push"></div><!-- for sticky footer -->
                        </div>
                </div>
                <footer role="contentinfo">
                        <p class="info">
                                <a href="https://owncloud.org" target="_blank" rel="noreferrer">ownCloud</a> – web services under your control                  </p>
                </footer>
        </body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:229:20)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:187:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1126:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1046:12)
    at IncomingMessage.g (events.js:291:16)
    at emitNone (events.js:91:20)

@JohnPerkin
Copy link

Hello!
Unfortunately current version of ONLYOFFICE does not support working with encrypted ownCloud storages. We will take this moment into consideration.

@miconx
Copy link

miconx commented Apr 6, 2017

+1 same here
with encryption disabled everything works

LinneyS referenced this issue in ONLYOFFICE/onlyoffice-owncloud Jun 6, 2017
@LinneyS
Copy link
Member

LinneyS commented Jun 6, 2017

Unfortunately if you enable the encryption with the per-user encryption keys (used by default in ownCloud/Nextcloud) ONLYOFFICE Document Server cannot open the encrypted files for editing and save them after the editing. The ONLYOFFICE section of the administrative settings page will display a notification about it. However if you set the encryption with the master key, ONLYOFFICE application will work as intended. But ownCloud/Nextcloud recommends using master encryption key only on fresh installations with no existing data, or on systems where encryption has not already been enabled.
Encryption

@LinneyS LinneyS closed this as completed Jun 6, 2017
@LinneyS LinneyS reopened this Mar 28, 2018
@Cybnate
Copy link

Cybnate commented May 6, 2018

Onlyoffice works great but going forward encryption support at user level is needed.

Wontfix -> :-(

@chrsch
Copy link

chrsch commented May 6, 2018

For me and my customers won't fix is a blocker too :-(

@LinneyS LinneyS transferred this issue from ONLYOFFICE/onlyoffice-owncloud Jul 3, 2019
@alexanderonlyoffice
Copy link
Member

alexanderonlyoffice commented Jul 3, 2019

Hello!
We are glad to announce that we added support of encryption in the latest version of ONLYOFFICE integration application for Nextcloud. Please update the connector and check the functioning of Document Server with Nextcloud.

We would appreciate to get your feedback about this enhancement. It will help us in improving the product.

@LinneyS LinneyS closed this as completed Jul 4, 2019
@solracsf
Copy link
Contributor

@alexanderonlyoffice @LinneyS as compatibility with default encryption module has been added, shouldn't the section https://github.com/ONLYOFFICE/onlyoffice-nextcloud/blob/master/README.md#known-issues be updated too?

@quentinDupont
Copy link

quentinDupont commented Oct 16, 2021

Hello !
I have the same problem and yet, I'm at the last versions of Nextcloud (version 22), Onlyoffice app 7.1.2 and latest docker image of Document Serveronlyoffice/documentserver
And we use default encryption module.

Anyone has the same issue ?? I really don't know what to do.

For information : server was using the old encryption method, we decrypt all and reinstall new encyprtion method. I also uninstall and reinstall Onlyoffice app connecter but it doesn't solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests