Skip to content

Commit a82573d

Browse files
authored
Merge pull request #1272 from WebFuzzing/bb-chain-delete-issue
fix for handling of resources
2 parents 5decb71 + d78237c commit a82573d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

core/src/main/kotlin/org/evomaster/core/problem/rest/builder/CreateResourceUtils.kt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,22 @@ object CreateResourceUtils {
5050
POST /x
5151
POST /x/{id}/y
5252
GET /x/{id}/y
53-
not going to save the position of last POST, as same as target
53+
not need to save the position of last POST, as same as target
5454
5555
however, might also be in the case of:
5656
PUT /x/{id}
5757
GET /x/{id}
5858
*/
59-
before.saveCreatedResourceLocation = false
59+
/*
60+
removing the flag here was a mistake.
61+
even if after is not using the resource path, between "before" and "after"
62+
there could be other calls that need it, eg:
63+
64+
PUT /x/{a}
65+
PUT /x/{a}/y/{b}
66+
DELETE /x/{a}
67+
*/
68+
//before.saveCreatedResourceLocation = false
6069

6170
// the target (eg GET) needs to use the location of first POST, or more correctly
6271
// the same location used for the last POST (in case there is a deeper chain)

0 commit comments

Comments
 (0)