Closed darenegade closed 1 year ago
Is your feature request related to a problem? Please describe. The Cosys-Int doesn't handle Http-Status Codes, such as 40X and 50X.
Describe the solution you'd like Throw BPM-Error oder Incident on HTTP Error Codes
Additional context Internal Ref: https://git.muenchen.de/digitalisierung/digiwf-support/-/issues/215
The API is generated by the OpenAPI Maven Generator: https://github.com/it-at-m/digiwf-core/blob/dev/digiwf-integrations/digiwf-cosys-integration/digiwf-cosys-integration-client/pom.xml#L99
Here is the missing errorhandling: https://github.com/it-at-m/digiwf-core/blob/dev/digiwf-integrations/digiwf-cosys-integration/digiwf-cosys-integration-client/src/main/java/io/muenchendigital/digiwf/cosys/integration/gen/api/GenerationApi.java#L162
There should be some onStatus Handlers before bodyToMono(..)
onStatus
bodyToMono(..)
Es muss eine andere Methode verwendet werden: generatePdfWithResponseSpec
generatePdfWithResponseSpec
Siehe: https://github.com/OpenAPITools/openapi-generator/pull/12843
Acceptance criteria What conditions must be satisfied to be accepted
Priority When is the feature needed
Duplicate of https://github.com/it-at-m/digiwf-project/issues/534
I will close this issue and add the Infos to https://github.com/it-at-m/digiwf-core/issues/165
Is your feature request related to a problem? Please describe. The Cosys-Int doesn't handle Http-Status Codes, such as 40X and 50X.
Describe the solution you'd like Throw BPM-Error oder Incident on HTTP Error Codes
Describe alternatives you've considered
Additional context Internal Ref: https://git.muenchen.de/digitalisierung/digiwf-support/-/issues/215
The API is generated by the OpenAPI Maven Generator: https://github.com/it-at-m/digiwf-core/blob/dev/digiwf-integrations/digiwf-cosys-integration/digiwf-cosys-integration-client/pom.xml#L99
Here is the missing errorhandling: https://github.com/it-at-m/digiwf-core/blob/dev/digiwf-integrations/digiwf-cosys-integration/digiwf-cosys-integration-client/src/main/java/io/muenchendigital/digiwf/cosys/integration/gen/api/GenerationApi.java#L162
There should be some
onStatus
Handlers beforebodyToMono(..)
Es muss eine andere Methode verwendet werden:
generatePdfWithResponseSpec
Siehe: https://github.com/OpenAPITools/openapi-generator/pull/12843
Acceptance criteria What conditions must be satisfied to be accepted
Priority When is the feature needed