Commit graph

24 commits

Author SHA1 Message Date
David Lima
a495a48051
chore: add phpactor config file to .gitignore
Signed-off-by: David Lima <antdavidlima@gmail.com>
2025-12-03 00:40:11 -03:00
Vitor Mattos
07a231aea2
fix: isolate PHP-pdftk dependency
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>
2025-09-03 09:55:55 -03:00
Vitor Mattos
f9ea8e1ce9
feat: add spdx
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-10-26 16:41:27 -03:00
Vitor Mattos
9dc530e891
fix: secret
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-07-08 14:26:41 -03:00
Vitor Mattos
89742c10c4
chore: ignore .env file
Necessary to don't version .env file. This file is used when use the
command act:

https://nektosact.com/usage/index.html#envsecrets-files-structure

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-07-03 18:26:43 -03:00
Vitor Mattos
dec3e8678b
fix: sign setup when build
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-07-01 19:51:05 -03:00
Vitor Mattos
7d5df25e1f
chore: changes to release
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-06-28 09:25:08 -03:00
Vitor Mattos
1c9ea5fb98
chore: consider architecture to signature files
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-06-04 17:20:56 -03:00
Vitor Mattos
551e71ffe0
chore: ignore appinfo/install-signature.json file
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-06-04 17:20:56 -03:00
Vitor Mattos
61457a414a Move dev dependencies to vendor-bin to prevent conflicts
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-11-09 20:24:49 -03:00
Vitor Mattos
ffda64135c
Integration tests bootstrap 2022-02-14 08:56:52 -03:00
Vitor Mattos
758842dcd6
Bump php dependency 2022-01-15 08:45:45 -03:00
Vinicios Gomes
f1c914268b Merge branch 'main' of github.com:LibreSign/libresign into list-docs 2021-06-17 10:55:05 -03:00
Vinicios Gomes
3ad4e440a1 add coverage to gitignore 2021-06-17 10:53:48 -03:00
Vitor Mattos
1aab3a6848 Update .gitignore 2021-06-11 09:02:02 -03:00
Vitor Mattos
26be7f7c69
Update .gitignore 2021-05-11 18:49:15 -03:00
Vitor Mattos
5ac986a0e2 Ignore phar files 2021-03-18 19:42:23 -03:00
Vitor Mattos
dc907ae4be github actions and gitignore 2021-02-16 21:15:37 -03:00
Vitor Mattos
134557406b Ignore auto-generated files 2021-01-09 13:59:46 -03:00
Vitor Mattos
14f280fd20 Ignore PHPUnit cache file 2021-01-08 19:05:20 -03:00
Vitor Mattos
d585f43e97 Move main plugin to root folder 2021-01-07 13:58:23 -03:00
Vitor Mattos
ce1c08ce26 backup 2021-01-07 13:57:24 -03:00
jalxes
86d0417083 feat: add Digital Signature Validator app (issue #2) 2020-08-19 18:14:00 +00:00
jalxes
88a2cbc5a0 feat: add docker-compose com setup do ambiente 2020-08-03 16:33:01 -03:00