Petals BC REST

In provider mode, we should be able to set a same processing to different 'on-http-status/@code'

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.3.0-BC
  • Fix Version/s: 2.3.1-BC
  • Component/s: Provider mode
  • Security Level: Public
  • Description:
    Hide

    In provider mode, if we want a same processing for different HTTP code returned, we must duplicate definitions of 'onHttpStatus':

    <rest:on-http-status code="404">
    </rest:on-http-status>
    <rest:on-http-status code="409">
    </rest:on-http-status>
    <rest:on-http-status code="418">
    </rest:on-http-status>

    We should be able to use a list for the attribute 'code':

    <rest:on-http-status code="404|409|418">
    </rest:on-http-status>
    Show
    In provider mode, if we want a same processing for different HTTP code returned, we must duplicate definitions of 'onHttpStatus':
    <rest:on-http-status code="404">
    </rest:on-http-status>
    <rest:on-http-status code="409">
    </rest:on-http-status>
    <rest:on-http-status code="418">
    </rest:on-http-status>
    We should be able to use a list for the attribute 'code':
    <rest:on-http-status code="404|409|418">
    </rest:on-http-status>
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Thu, 2 Jun 2022 - 17:59:16 +0200

Added in branch petals-bc-rest-1.3.x

Show
Christophe DENEUX added a comment - Thu, 2 Jun 2022 - 17:59:16 +0200 Added in branch petals-bc-rest-1.3.x
Hide
Christophe DENEUX added a comment - Thu, 2 Jun 2022 - 17:59:27 +0200

Reopened to be merged in trunk

Show
Christophe DENEUX added a comment - Thu, 2 Jun 2022 - 17:59:27 +0200 Reopened to be merged in trunk
Hide
Christophe DENEUX added a comment - Tue, 12 Jul 2022 - 15:21:56 +0200

Merged in trunk

Show
Christophe DENEUX added a comment - Tue, 12 Jul 2022 - 15:21:56 +0200 Merged in trunk

People

Dates

  • Created:
    Thu, 2 Jun 2022 - 17:54:24 +0200
    Updated:
    Tue, 12 Jul 2022 - 15:23:10 +0200
    Resolved:
    Tue, 12 Jul 2022 - 15:22:05 +0200