Repository navigation
Add failing tests for content path injection - #126
Draft
cursor[bot] wants to merge 1 commit into
Draft
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
Cover get, getList, getListDetail, getObject, getAllContentIds, getAllContents, create, update, and delete. The requests stay failing until an endpoint or content id can no longer change the path or query.
|
Important Review skippedBot user detected. Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
|
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.
Summary
Adds tests that fail while
endpointandcontentIdare concatenated into the content API URL without being confined to a single path segment. A question mark, fragment, slash, backslash, or dot segment in either value changes the path or query of the request that is sent with the client API key.These tests fail on purpose until that is fixed. They pass when the client rejects the value before issuing a request, or sends it as one encoded path segment whose query string is only the one the method built. A check that still requests the original string does not pass.
No product code is changed here.
How to run
Coverage
The tests call
get,getList,getListDetail,getObject,getAllContentIds,getAllContents,create,update, anddelete.createManagementClientis not included.uploadMediasends the constant pathmedia, so a caller cannot supply the path segment these tests cover.