nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

Watermarking not working #1151

Closed ta-vroom closed 4 years ago

ta-vroom commented 4 years ago

Describe the bug A clear and concise description of what the bug is. Enabled watermark, but no watermark present.

To Reproduce Steps to reproduce the behavior:

  1. Enable Watermarking

Expected behavior Expected to see watermark on documents

Client details:

Server details

Operating system: Centos 8 x86_64 Web server: nginx/1.14.1 Database: mysql v.15.1 -10.3.17-mariadb PHP version: php 7.4.10 Modules [php]: apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib Nextcloud version: Nextcloud 19.0.2 Version of the richdocuments app 3.7.4 Version of Collabora Online 4.2.6-2

Logs "message":"Undefined index: watermark_{text,allTags,allGroups,linkTags,linkAll,linkRead,linkSecure,shareRead,enabled} at /var/www/nextcloud/apps/richdocuments/lib/Controller/SettingsController.php#237","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36","version":"19.0.2.2","id":"5f596d10c293c"}
ta-vroom commented 4 years ago

Might be a Duplicate of #911, but I wasn't able to fix following that issue.

juliushaertl commented 4 years ago

Thanks for reporting, I'm not sure where or how this broke but https://github.com/nextcloud/richdocuments/pull/1152 should fix it, testing and review are very welcome

ta-vroom commented 4 years ago

I'm getting no more watermark complaints in nextcloud.log, but I'm unable to view a file anonymously. I would have sworn this was working, but both pre and post #1152 are having the same issue.

Watermarking disabled → anonymous browsing works Watermarking enabled → anonymous browsing results in a loading loop with the following in the browser log

Logs #### Chrome v85.0.4183.102 logs ```javascript Uncaught (in promise) TypeError: Cannot read property 'fileList' of undefined at 3.js:65 at Module.29 (3.js:65) at o (files.js?v=ff7d3fcb-3:1) EfAtnWEt4KLPKpJ:1 Failed to load resource: the server responded with a status of 404 () files.js?v=ff7d3fcb-3:44 Uncaught TypeError: Cannot read property 'insertBefore' of null at Object.initAfterReady (files.js?v=ff7d3fcb-3:44) at Object.onReceiveLoading (files.js?v=ff7d3fcb-3:44) at files.js?v=ff7d3fcb-3:44 at files.js?v=ff7d3fcb-3:44 at Array.forEach () at e.value (files.js?v=ff7d3fcb-3:44) at files.js?v=ff7d3fcb-3:44 bundle.js:39 Blocked autofocusing on a