• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LibreSign / libresign / 20747149964

06 Jan 2026 11:37AM UTC coverage: 44.92%. First build
20747149964

Pull #6342

github

web-flow
Merge a13c644ee into 4f85dedc4
Pull Request #6342: fix: show status icon on envelopes and children

0 of 1 new or added line in 1 file covered. (0.0%)

6671 of 14851 relevant lines covered (44.92%)

5.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/Dav/SignatureStatusPlugin.php
1
<?php
2

3
/**
4
 * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
5
 * SPDX-License-Identifier: AGPL-3.0-or-later
6
 */
7

8
namespace OCA\Libresign\Dav;
9

10
use OC;
11
use OCA\DAV\Connector\Sabre\Directory;
12
use OCA\DAV\Connector\Sabre\File;
13
use OCA\Libresign\Service\FileService;
14
use Sabre\DAV\INode;
15
use Sabre\DAV\PropFind;
16
use Sabre\DAV\Server;
17
use Sabre\DAV\ServerPlugin;
18

19
class SignatureStatusPlugin extends ServerPlugin {
20
        public function initialize(Server $server): void {
21
                $server->on('propFind', [$this, 'propFind']);
×
22
        }
23

24
        public function propFind(PropFind $propFind, INode $node): void {
NEW
25
                if (!$node instanceof File && !$node instanceof Directory) {
×
26
                        return;
×
27
                }
28

29
                $fileService = OC::$server->get(FileService::class);
×
30
                $nodeId = $node->getId();
×
31

32
                if (!$fileService->isLibresignFile($nodeId)) {
×
33
                        return;
×
34
                }
35

36
                $fileService->setFileByNodeId($nodeId);
×
37

38
                $propFind->handle('{http://nextcloud.org/ns}libresign-signature-status', $fileService->getStatus());
×
39
                $propFind->handle('{http://nextcloud.org/ns}libresign-signed-node-id', $fileService->getSignedNodeId());
×
40
        }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc