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

Encrypted file cannot be open with low quota #357

Open
grgprarup opened this issue Jul 21, 2022 · 3 comments
Open

Encrypted file cannot be open with low quota #357

grgprarup opened this issue Jul 21, 2022 · 3 comments

Comments

@grgprarup
Copy link
Contributor

grgprarup commented Jul 21, 2022

Steps to reproduce

  1. Enable encryption app
  2. Enable server-side encryption (Encryption type: Master Key or User Specific key)
  3. Create user user1 with a quota of 10 B
  4. Login as user1
  5. Upload or Create a text file text.txt with content short (The size of the file might be 5 B)
  6. Open a file text.txt

Expected behavior

The file should be open with original content.

Actual behavior

The file cannot be open with one of these error pop up
encryption_open
encryption_openfile

If the file is downloaded then the original content of the file is changed.

Downloaded file content
<!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=1359583808" />
    <meta name="theme-color" content="#041e42" />
    <link rel="icon" href="/core/core/img/favicon.ico" />
    <link
      rel="apple-touch-icon-precomposed"
      href="/core/core/img/favicon-touch.png"
    />
    <link
      rel="mask-icon"
      sizes="any"
      href="/core/core/img/favicon-mask.svg"
      color="#041e42"
    />
    <link
      rel="stylesheet"
      href="/core/core/vendor/select2/select2.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/styles.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/inputs.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/header.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/icons.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/fonts.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/apps.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/global.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/fixes.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/multiselect.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/mobile.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/vendor/jquery-ui/themes/base/jquery-ui.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/jquery-ui-fixes.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/tooltip.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/share.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/apps/files_versions/css/versions.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/apps-external/gallery/css/slideshow.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/apps-external/gallery/css/gallerybutton.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <link
      rel="stylesheet"
      href="/core/core/css/jquery.ocdialog.css?v=8c3167b45dde085dca76e6dea23a0ee2"
    />
    <script src="/core/core/vendor/jquery/dist/jquery.min.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/jquery-migrate/jquery-migrate.min.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/jquery-ui/ui/jquery-ui.custom.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/underscore/underscore.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/moment/min/moment-with-locales.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/handlebars/handlebars.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/blueimp-md5/js/md5.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/bootstrap/js/tooltip.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/backbone/backbone.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/es6-promise/es6-promise.auto.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/davclient.js/lib/client.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/clipboard/dist/clipboard.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/bowser/src/bowser.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/jquery.ocdialog.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/oc-dialogs.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/js.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/l10n.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/octemplate.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/eventsource.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/config.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/search/js/search.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/oc-requesttoken.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/apps.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/mimetype.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/mimetypelist.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/snapjs/dist/latest/snap.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/vendor/select2/select2.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/oc-backbone.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/oc-backbone-webdav.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/placeholder.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/jquery.avatar.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps/encryption/js/encryption.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/shareconfigmodel.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharemodel.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharescollection.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/shareitemmodel.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialogresharerinfoview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialoglinklistview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialoglinkshareview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialogmailview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialoglinksocialview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialoglinkexpirationview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialogshareelistview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/sharedialogview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/share.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/user.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/vendor/bigshot/bigshot-compressed.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/vendor/dompurify/src/purify.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/galleryutility.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/galleryfileaction.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/slideshow.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/slideshowcontrols.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/slideshowzoomablepreview.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/gallerybutton.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/rotate.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/apps-external/gallery/js/rotation_cup.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/files/fileinfo.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
    <script src="/core/core/js/files/client.js?v=8c3167b45dde085dca76e6dea23a0ee2"></script>
  </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">
              <h1 class="hidden-visually">ownCloud</h1>
            </div>
            <div id="logo-claim" style="display: none"></div>
          </div>
        </header>
        <ul class="error-wide">
          <li class="error">
            File cannot be downloaded<br />
            <p class="hint">
              Encryption library: Decryption (symmetric) of content failed:
              error:0909006C:PEM routines:get_name:no start line
            </p>
          </li>
        </ul>
      </div>
    </div>
    <footer role="contentinfo">
      <p class="info">
        <a href="https://owncloud.com" target="_blank" rel="noreferrer"
          >ownCloud</a
        >
        &ndash; A safe home for all your data
      </p>
    </footer>
  </body>
</html>

Environment general

Operating system: Ubuntu 20.04 LTS

Backend (ownCloud Core or Infinite Scale): Core

@phil-davis
Copy link
Contributor

"server-side encryption"

@grgprarup which type of encryption - master-key or user-key or either?

@grgprarup
Copy link
Contributor Author

grgprarup commented Jul 21, 2022

"server-side encryption"

@grgprarup which type of encryption - master-key or user-key or either?

@phil-davis I think it's User specific key as shown in encryption settings.
image

@grgprarup
Copy link
Contributor Author

"server-side encryption"

@grgprarup which type of encryption - master-key or user-key or either?

I have tested with 'master-key' as well, the same issue is with master-key also.

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

No branches or pull requests

2 participants