lkreher
lkreher
Hey guys, I decided to look into this problem because I really wanted to use encryption on S3 object storage. I wrote down my notes and a possible fix in...
I managed to find a solution for problem 2: Replacing [Encryption.php#473](https://github.com/nextcloud/server/blob/dbd0bd6b3f4be9daf79a5ceb824d6939a4ded21e/lib/private/Files/Stream/Encryption.php#L473) with ``` $data = $this->data; while(!preg_match('/00sig00[0-9a-f]{64}xxx/', $data)) { $data .= parent::stream_read($this->util->getBlockSize()); } preg_match('/(.*?00sig00[0-9a-f]{64}xxx)(.*)/', $data, $matches); $data = $matches[1]; $this->data...
> I will have a look at the suggested solution for problem 2. Both of my "fixes" are supposed to be workarounds, because the issue is with a 3rdparty library...
Why can't we combine both approaches like this? ``` protected $permissionsLoaded = false; /** * Register the permission check method on the gate. * * @return bool */ public function...
> @lkreher wanna help debug the failing tests that this introduces? Basically all the `can()` calls fail. I'd love to, but I'm new to package development, can you give me...
> default paper is 'portrait' dude check thifunction public function setPaper($paper, $orientation = 'portrait'){ | $this->paper = $paper; | $this->orientation = $orientation; | $this->dompdf->setPaper($paper, $orientation); | return $this; | }...
> The value of `$this->paper` is null, so it falls back to the default setting of the @dompdf package which is `private $defaultPaperSize = "letter";` > [dompdf default options](https://github.com/dompdf/dompdf/blob/6f9ff4b084373bb934b7cbe2cc31a83ddf1bb2a7/src/Options.php#L91) >...
The issue does not exist in `[email protected]`
> Are you using sass-loader ? yes ``` +-- [email protected] +-- [email protected] ```
@cosmo-tapptic already pointed out part of the problem, the bigger issue for me is trying to save different views to different files: `\niklasravnsborg\LaravelPdf\Facades\Pdf::loadView('template1')->save('out1.pdf'); \niklasravnsborg\LaravelPdf\Facades\Pdf::loadView('template2')->save('out2.pdf');` In this case the 2nd file...