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

Christophe DENEUX made changes - Thu, 2 Jun 2022 - 17:55:11 +0200
Field Original Value New Value
Priority Blocker [ 1 ]
Description In provider mode, if we want a same processing for different HTTP code returned, we must duplicate definitions of 'onHttpStatus':
{code}
<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>
{code}

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

We should be able to use a list for the attribute '{{code}}':
{code}
<rest:on-http-status code="404|409|418">
</rest:on-http-status>
{code}
Christophe DENEUX made changes - Thu, 2 Jun 2022 - 17:55:27 +0200
Status New [ 10000 ] Open [ 10002 ]
Priority Blocker [ 1 ] Minor [ 4 ]
Component/s Provider mode [ 10404 ]
Christophe DENEUX made changes - Thu, 2 Jun 2022 - 17:55:29 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
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
Christophe DENEUX made changes - Thu, 2 Jun 2022 - 17:59:16 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.3.1-SU-UT-FMK [ 11049 ]
Resolution Fixed [ 1 ]
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
Christophe DENEUX made changes - Thu, 2 Jun 2022 - 17:59:27 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Tue, 12 Jul 2022 - 12:54:31 +0200
Fix Version/s 2.2.3-BC [ 10993 ]
Fix Version/s 2.3.1-SU-UT-FMK [ 11049 ]
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
Christophe DENEUX made changes - Tue, 12 Jul 2022 - 15:22:00 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Tue, 12 Jul 2022 - 15:22:05 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Tue, 12 Jul 2022 - 15:22:18 +0200
Fix Version/s 2.3.2-BC [ 11053 ]
Fix Version/s 2.2.3-BC [ 10993 ]
Christophe DENEUX made changes - Tue, 12 Jul 2022 - 15:23:10 +0200
Fix Version/s 2.3.1-BC [ 11048 ]
Fix Version/s 2.3.2-BC [ 11053 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1m 3s
1
Christophe DENEUX
Thu, 2 Jun 2022 - 17:55:27 +0200
Open Open In Progress In Progress
2s
1
Christophe DENEUX
Thu, 2 Jun 2022 - 17:55:29 +0200
In Progress In Progress Resolved Resolved
3m 47s
1
Christophe DENEUX
Thu, 2 Jun 2022 - 17:59:16 +0200
Resolved Resolved Open Open
11s
1
Christophe DENEUX
Thu, 2 Jun 2022 - 17:59:27 +0200
Open Open In Progress In Progress
39d 21h 22m
1
Christophe DENEUX
Tue, 12 Jul 2022 - 15:22:00 +0200
In Progress In Progress Resolved Resolved
5s
1
Christophe DENEUX
Tue, 12 Jul 2022 - 15:22:05 +0200

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