Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9731f00
Merge pull request #541 from ConductionNL/development
rubenvdlinde Jul 16, 2025
eaadbdd
Bump version to 0.2.3
actions-user Jul 16, 2025
0085471
Merge pull request #566 from ConductionNL/development
rjzondervan Aug 6, 2025
6a22c1e
Bump version to 0.2.4
actions-user Aug 6, 2025
bb01b11
Merge pull request #568 from ConductionNL/development
rjzondervan Aug 7, 2025
2f55d24
Bump version to 0.2.5
actions-user Aug 7, 2025
17b5147
Merge pull request #615 from ConductionNL/development
rjzondervan Oct 29, 2025
f441919
Bump version to 0.2.6
actions-user Oct 29, 2025
8f005ae
Merge pull request #640 from ConductionNL/development
rjzondervan Jan 13, 2026
8d79e3d
Bump version to 0.2.7
actions-user Jan 13, 2026
88860fe
Merge pull request #648 from ConductionNL/feature/connector-413/perma…
actions-user Feb 4, 2026
ee2be0c
Bump beta version to 0.2.8-beta.8 [skip ci]
actions-user Feb 4, 2026
1674d64
Merge branch 'main' into hotfix/stable-compatibility-fixes
rjzondervan Feb 9, 2026
29cfb0e
Merge pull request #651 from ConductionNL/hotfix/stable-compatibility…
rjzondervan Feb 9, 2026
115c999
Bump version to 0.2.8
actions-user Feb 9, 2026
99be58f
Merge branch 'development' into merge-dev-into-beta
remko48 Feb 9, 2026
f27ad35
Merge pull request #653 from ConductionNL/merge-dev-into-beta
remko48 Feb 13, 2026
7dfd085
Merge pull request #656 from ConductionNL/development
remko48 Feb 19, 2026
76669ce
Merge pull request #661 from ConductionNL/development
bbrands02 Feb 26, 2026
9e02e2f
Merge pull request #663 from ConductionNL/development
bbrands02 Feb 27, 2026
6218a33
Merge pull request #667 from ConductionNL/development
bbrands02 Mar 4, 2026
e47be38
Merge pull request #669 from ConductionNL/beta
bbrands02 Mar 5, 2026
a8d1739
Bump version to 0.2.9
actions-user Mar 5, 2026
54aa6b3
Merge pull request #670 from ConductionNL/development
rubenvdlinde Mar 6, 2026
2ce1e1a
Bump version to 0.2.10
actions-user Mar 6, 2026
d549c6e
Create the possibility to write files from the original request
rjzondervan Mar 18, 2026
798871a
Merge remote-tracking branch 'origin/main' into hotfix/write-from-req…
rjzondervan Mar 18, 2026
5d2fea2
Resolve composer issues
rjzondervan Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The OpenConnector Nextcloud app provides a ESB-framework to work together in an
- 🆓 Map and translate API calls

]]></description>
<version>0.2.8</version>
<version>0.2.10</version>
<licence>agpl</licence>
<category>integration</category>
<author mail="info@conduction.nl" homepage="https://www.conduction.nl/">Conduction</author>
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,15 @@
"react/event-loop": "^1.5",
"react/promise": "^3.2",
"symfony/console": "^5.4",
"symfony/options-resolver": "^7.0",
"symfony/uid": "^6.4",
"symfony/var-exporter": "^7.2.5",
"symfony/yaml": "^6.4",
"twig/twig": "^3.14",
"web-token/jwt-framework": "^3"
},
"require-dev": {
"edgedesign/phpqa": "^1.27",
"nextcloud/coding-standard": "^1.4",
"nextcloud/ocp": "dev-stable29",
"phpcsstandards/phpcsextra": "^1.4",
"phpmd/phpmd": "^2.15",
"phpmetrics/phpmetrics": "^2.8",
"phpunit/phpunit": "^10.5",
Expand Down
39 changes: 20 additions & 19 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions lib/Service/EndpointService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ private function processRules(Endpoint $endpoint, IRequest $request, array $data
'extend_input' => $this->processExtendInputRule(rule: $rule, data: $data),
'extend_external_input' => $this->ruleService->extendExternalUrl(rule: $rule, data: $data),
'audit_trail' => $this->processAuditTrailRule(rule: $rule, endpoint: $endpoint, data: $data, objectId: $objectId),
'write_file' => $this->processWriteFileRule(rule: $rule, data: $data, objectId: $objectId),
'write_file' => $this->processWriteFileRule(rule: $rule, data: $data, objectId: $objectId, flowToken: $flowToken),
'locking' => $this->processLockingRule(rule: $rule, data: $data, objectId: $objectId),
'override' => $this->processOverrideRule(rule: $rule, data: $data, objectId: $objectId),
'custom' => $this->processCustomRule(rule: $rule, data: $data),
Expand Down Expand Up @@ -1544,15 +1544,20 @@ private function processCustomRule(Rule $rule, array $data): array|JSONResponse
* @throws NotFoundExceptionInterface
* @throws Exception
*/
private function processWriteFileRule(Rule $rule, array $data, string $objectId): array
private function processWriteFileRule(Rule $rule, array $data, string $objectId, FlowToken $flowToken): array
{
if (isset($rule->getConfiguration()['write_file']) === false) {
throw new Exception('No configuration found for write_file');
}

$config = $rule->getConfiguration()['write_file'];
$dataDot = new Dot($data);
$files = $dataDot[$config['filePath']];
$flowTokenArray = $flowToken->getRequestOriginal();
$flowTokenArray['body'] = $flowTokenArray['parameters'];
$flowTokenDot = new Dot($flowTokenArray);


$files = $dataDot[$config['filePath']] ?? $flowTokenDot[$config['filePath']];
if (isset($files) === false || empty($files) === true) {
return $dataDot->jsonSerialize();
}
Expand Down Expand Up @@ -1596,7 +1601,7 @@ private function processWriteFileRule(Rule $rule, array $data, string $objectId)
$dataDot[$config['filePath']] = $result;
} else {
$content = $files;
$fileName = $dataDot[$config['fileNamePath']];
$fileName = $dataDot[$config['fileNamePath']] ?? $flowTokenDot[$config['fileNamePath']];

try {
// Write file with OpenRegister ObjectService.
Expand Down
Loading