Repository navigation
fix: replace break with continue in getNoContentRequestResponsePair() - #2189
Merged
lbroudoux merged 1 commit intoJun 26, 2026
Conversation
When an x-microcks-refs example is missing path parameters for a URI_PARTS or URI_ELEMENTS dispatcher, the previous break exited the entire iterator loop, silently dropping all remaining valid examples. Using continue skips only the incomplete example and processes the rest. Fixes microcks#2188 Signed-off-by: Harish R S <[email protected]>
Harishrs2006
requested review from
SebastienDegodez,
lbroudoux and
yada
as code owners
June 25, 2026 16:45
lbroudoux
pushed a commit
that referenced
this pull request
Aug 5, 2026
…#2189) When an x-microcks-refs example is missing path parameters for a URI_PARTS or URI_ELEMENTS dispatcher, the previous break exited the entire iterator loop, silently dropping all remaining valid examples. Using continue skips only the incomplete example and processes the rest. Fixes #2188 Signed-off-by: Harish R S <[email protected]> (cherry picked from commit b9c262e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Fixes #2188
In
getNoContentRequestResponsePair(), when an example fromx-microcks-refsis missing path parameters for a
URI_PARTSorURI_ELEMENTSdispatcher, theprevious
breakexited the entirerequestRefsIteratorloop silently droppingall remaining valid examples after the incomplete one.
The intent is clearly to skip only the current example (the comment says
"Do not register this request / response pair").
continueis the correctstatement.
Note: the equivalent block in the sibling method already uses
continuecorrectly(line 647) this brings
getNoContentRequestResponsePair()into the same pattern.Change
webapp/src/main/java/io/github/microcks/util/openapi/OpenAPIImporter.javaline 740:break-continue