Skip to content

Commit

Permalink
[FEATURE] Add compatibility with JobRouter 2022.3
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Aug 18, 2022
1 parent d9602e1 commit 0980966
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]

### Added
- Compatibility with JobRouter® 2022.3
- Compatibility with PHP 8.2
- Hide sensitive parameters in back traces for PHP versions >= 8.2

Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Added
^^^^^


* Compatibility with JobRouter® 2022.3
* Compatibility with PHP 8.2
* Hide sensitive parameters in back traces for PHP versions >= 8.2

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ JobRouter Client JobRouter® PHP
---------------- --------------------------- ---------
1.2 / 1.3 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.1
---------------- --------------------------- ---------
1.4 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.2
1.4 4.2 - 5.2 / 2022.1 - 2022.3 7.4 - 8.2
================ =========================== =========

You can use, for example, JobRouter Client version 1.0 on JobRouter® version 5.2
Expand Down
16 changes: 16 additions & 0 deletions src/Mapper/RouteContentTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ final class RouteContentTypeMapper
'application/steps/.+?/lock' => '',
// @deprecated, only available in JobRouter 4.2
'configuration/sessions/.+?' => '',
'designer/process/.+?/.+?/data/.+?' => '',
'designer/process/.+?/.+?/dialogscripts/:dialog/:id' => '',
'designer/process/.+?/.+?/functions/.+?' => '',
'designer/process/.+?/.+?/phpfunctions/:id' => '',
'designer/process/.+?/data/.+?' => '',
'designer/process/.+?/functions/.+?' => '',
],
'PATCH' => [
'application/sessions' => '',
Expand All @@ -49,6 +55,16 @@ final class RouteContentTypeMapper
'application/jobarchive/archives/.+?/documents' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'application/jobarchive/archives/.+?/documents/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'application/jobarchive/archives/.+?/documents/.+?/clippedfiles' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/data' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/data/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/functions' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/functions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/phpfunctions' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/.+?/phpfunctions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/data' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/data/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/functions' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
'designer/process/.+?/functions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
],
'PUT' => [
'application/dashboards/.+?' => '',
Expand Down
36 changes: 35 additions & 1 deletion tests/Unit/Mapper/routes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Routes available in JobRouter 4.2-5.2 / 2022.1
# Routes available in JobRouter 4.2-5.2 / 2022.1-2022.3
# Format: <route> <method> <expected content type>
/application/attachments/:workflowId/:dialogField GET -
/application/attachments/:workflowId/:id GET -
Expand Down Expand Up @@ -97,7 +97,41 @@
/configuration/settings/:settingNames PATCH application/json
/configuration/users GET -
/configuration/users/:username GET -
/designer/process/:processName/:version/data GET -
/designer/process/:processName/:version/data POST multipart/form-data
/designer/process/:processName/:version/data PUT application/json
/designer/process/:processName/:version/data/:encodedPath DELETE -
/designer/process/:processName/:version/data/:encodedPath GET -
/designer/process/:processName/:version/data/:encodedPath POST multipart/form-data
/designer/process/:processName/:version/dialogscripts GET -
/designer/process/:processName/:version/dialogscripts POST application/json
/designer/process/:processName/:version/dialogscripts/:dialog/:id DELETE -
/designer/process/:processName/:version/dialogscripts/:dialog/:id GET -
/designer/process/:processName/:version/dialogscripts/:dialog/:id POST application/json
/designer/process/:processName/:version/functions GET -
/designer/process/:processName/:version/functions POST multipart/form-data
/designer/process/:processName/:version/functions PUT application/json
/designer/process/:processName/:version/functions/:encodedPath DELETE -
/designer/process/:processName/:version/functions/:encodedPath GET -
/designer/process/:processName/:version/functions/:encodedPath POST multipart/form-data
/designer/process/:processName/:version/phpfunctions GET -
/designer/process/:processName/:version/phpfunctions POST multipart/form-data
/designer/process/:processName/:version/phpfunctions/:id DELETE -
/designer/process/:processName/:version/phpfunctions/:id GET -
/designer/process/:processName/:version/phpfunctions/:id POST multipart/form-data
/designer/process/:processName/:version/processmessages POST application/json
/designer/process/:processName/:version/processmessages/:processMessage PATCH application/json
/designer/process/:processName/:version/processmessages/:processMessage PUT application/json
/designer/process/:processName/data GET -
/designer/process/:processName/data POST multipart/form-data
/designer/process/:processName/data PUT application/json
/designer/process/:processName/data/:encodedPath DELETE -
/designer/process/:processName/data/:encodedPath GET -
/designer/process/:processName/data/:encodedPath POST multipart/form-data
/designer/process/:processName/functions GET -
/designer/process/:processName/functions POST multipart/form-data
/designer/process/:processName/functions PUT application/json
/designer/process/:processName/functions/:encodedPath DELETE -
/designer/process/:processName/functions/:encodedPath GET -
/designer/process/:processName/functions/:encodedPath POST multipart/form-data
/designer/systemactions GET -

0 comments on commit 0980966

Please sign in to comment.