mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
No description
I identified some issues with the follow log: ``` [PHP] Warning: include(): Failed opening '<redacted>/apps/richdocuments/vendor/composer/../mikehaertl/php-pdftk/src/Pdf.php' for inclusion (include_path='<redacted>/3rdparty/pear/archive_tar:/<redacted>/3rdparty/pear/console_getopt:<redacted>/3rdparty/pear/pear-core-minimal/src:/<redacted>/3rdparty/pear/pear_exception:/<redacted>/apps') at /<redacted>/lib/composer/composer/ClassLoader.php#576 GET /ocs/v2.php/apps/libresign/api/v1/file/validate/file_id/2556 ``` It's only occurr when use the app richdocuments, I saw that the package mikehaertl/php-pdftk also is used by this app and because this the autoload was mixed. To solve this issue I used the package humbug/php-scoper that isolate the dependency into a different namespace. I also followed this article: https://arthur-schiwon.de/isolating-nextcloud-app-dependencies-php-scoper And the follow search results to see implementation examples: https://github.com/search?q=OCA+path%3Ascoper.inc.php&type=code https://github.com/search?q=org%3Anextcloud+path%3Ascoper.inc.php&type=code Considering that we already have tests to cover the usage of pdftk, isn't necessary to add new tests, if the test pass, this change worked fine because loaded the isolated packages and the isolated packages made the necessary. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> |
||
|---|---|---|
| .devcontainer | ||
| .github | ||
| .tx | ||
| appinfo | ||
| composer | ||
| img | ||
| l10n | ||
| lib | ||
| LICENSES | ||
| src | ||
| templates | ||
| tests | ||
| vendor-bin | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitattributes | ||
| .gitignore | ||
| .l10nignore | ||
| .npmignore | ||
| .php-cs-fixer.dist.php | ||
| .prettierrc | ||
| AUTHORS | ||
| babel.config.js | ||
| CHANGELOG.md | ||
| CODE_OF_CONDUCT.md | ||
| composer.json | ||
| composer.lock | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| jsconfig.json | ||
| Makefile | ||
| openapi-administration.json | ||
| openapi-full.json | ||
| openapi.json | ||
| package-lock.json | ||
| package.json | ||
| psalm.xml | ||
| README.md | ||
| rector.php | ||
| redocly.yaml | ||
| REUSE.toml | ||
| scoper.inc.php | ||
| SECURITY.md | ||
| stylelint.config.js | ||
| tsconfig.json | ||
| webpack.config.js | ||
Nextcloud app to sign PDF documents.
Star History
Contributing
There are many ways to contribute, including writing code, filing issues on GitHub, helping people Overflow, helping to triage, reproduce, or fix bugs that people have filed, adding to our documentation. To get more details go to our contributing guide.
Integrations
- GLPI: Plugin to sign GLPI tickets
- Approval: Approve/reject files based on workflows defined by admins
API Documentation
Contributors ✨
Thanks go to these wonderful people: