Skip to content

Commit d00566f

Browse files
committed
fix: Add dot before file extension
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 3a47f42 commit d00566f

8 files changed

Lines changed: 29 additions & 2 deletions

File tree

lib/private/TaskProcessing/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ public function encapsulateOutputFileData(array $output, ...$specs): array {
16101610
$ext = '';
16111611
}
16121612
/** @var SimpleFile $file */
1613-
$file = $folder->newFile(time() . '-' . rand(1, 100000) . $ext, $data);
1613+
$file = $folder->newFile(time() . '-' . rand(1, 100000) . ($ext ? '.' . $ext : ''), $data);
16141614
$newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile
16151615
} else {
16161616
$newOutput = [];
@@ -1623,7 +1623,7 @@ public function encapsulateOutputFileData(array $output, ...$specs): array {
16231623
$ext = '';
16241624
}
16251625
/** @var SimpleFile $file */
1626-
$file = $folder->newFile(time() . '-' . rand(1, 100000) . $ext, $data);
1626+
$file = $folder->newFile(time() . '-' . rand(1, 100000) . ($ext ? '.' . $ext : ''), $data);
16271627
$newOutput[$key][] = $file->getId();
16281628
}
16291629
}

lib/public/TaskProcessing/IInternalTaskType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99

1010
namespace OCP\TaskProcessing;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This is a task type interface that is implemented by task processing
1416
* task types that should not show up in the assistant UI
17+
*
1518
* @since 33.0.0
1619
*/
20+
#[Implementable(since:'33.0.0')]
1721
interface IInternalTaskType extends ITaskType {
1822

1923
}

lib/public/TaskProcessing/IProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99

1010
namespace OCP\TaskProcessing;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This is the interface that is implemented by apps that
1416
* implement a task processing provider
17+
*
1518
* @since 30.0.0
1619
*/
20+
#[Implementable(since: '30.0.0')]
1721
interface IProvider {
1822
/**
1923
* The unique id of this provider

lib/public/TaskProcessing/ITaskType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99

1010
namespace OCP\TaskProcessing;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This is a task type interface that is implemented by task processing
1416
* task types
17+
*
1518
* @since 30.0.0
1619
*/
20+
#[Implementable(since: '30.0.0')]
1721
interface ITaskType {
1822
/**
1923
* Returns the unique id of this task type

lib/public/TaskProcessing/ITriggerableProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99

1010
namespace OCP\TaskProcessing;
1111

12+
use OCP\AppFramework\Attribute\Implementable;
13+
1214
/**
1315
* This is the interface that is implemented by apps that
1416
* implement a task processing provider with support for being triggered
17+
*
1518
* @since 33.0.0
1619
*/
20+
#[Implementable(since: '30.0.0')]
1721
interface ITriggerableProvider extends IProvider {
1822

1923
/**

lib/public/TaskProcessing/ShapeDescriptor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77

88
namespace OCP\TaskProcessing;
99

10+
use OCP\AppFramework\Attribute\Consumable;
11+
1012
/**
1113
* Data object for input output shape entries
14+
*
1215
* @since 30.0.0
1316
*/
17+
#[Consumable(since: '30.0.0')]
1418
class ShapeDescriptor implements \JsonSerializable {
1519
/**
1620
* @param string $name

lib/public/TaskProcessing/ShapeEnumValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77

88
namespace OCP\TaskProcessing;
99

10+
use OCP\AppFramework\Attribute\Consumable;
11+
1012
/**
1113
* Data object for input output shape enum slot value
14+
*
1215
* @since 30.0.0
1316
*/
17+
#[Consumable(since: '30.0.0')]
1418
class ShapeEnumValue implements \JsonSerializable {
1519
/**
1620
* @param string $name

lib/public/TaskProcessing/SynchronousProviderOptions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77

88
namespace OCP\TaskProcessing;
99

10+
use OCP\AppFramework\Attribute\Consumable;
11+
1012
/**
1113
* @since 35.0.0
1214
*/
15+
#[Consumable(since: '35.0.0')]
1316
class SynchronousProviderOptions {
1417
private \Closure $reportIntermediateOutput;
1518

0 commit comments

Comments
 (0)