Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AttributeError: 'list' object has no attribute 'lstrip' in a virt…
…ual hosting setting when restricting search to multiple paths (path.query is a list).
- Loading branch information
Showing
7 changed files
with
207 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
3 changes: 3 additions & 0 deletions
3
src/plone/restapi/tests/http-examples/search_multiple_paths.req
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GET /plone/@search?path.query=%2Fplone%2Ffolder1&path.query=%2Fplone%2Ffolder2&sort_on=path&path.depth=2 HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
37 changes: 37 additions & 0 deletions
37
src/plone/restapi/tests/http-examples/search_multiple_paths.resp
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
|
||
{ | ||
"@id": "http://localhost:55001/plone/@search?path.query=%2Fplone%2Ffolder1&path.query=%2Fplone%2Ffolder2&path.depth=2", | ||
"items": [ | ||
{ | ||
"@id": "http://localhost:55001/plone/folder1", | ||
"@type": "Folder", | ||
"description": "", | ||
"review_state": "private", | ||
"title": "Folder 1" | ||
}, | ||
{ | ||
"@id": "http://localhost:55001/plone/folder1/doc1", | ||
"@type": "Document", | ||
"description": "", | ||
"review_state": "private", | ||
"title": "Lorem Ipsum" | ||
}, | ||
{ | ||
"@id": "http://localhost:55001/plone/folder2", | ||
"@type": "Folder", | ||
"description": "", | ||
"review_state": "private", | ||
"title": "Folder 2" | ||
}, | ||
{ | ||
"@id": "http://localhost:55001/plone/folder2/doc2", | ||
"@type": "Document", | ||
"description": "", | ||
"review_state": "private", | ||
"title": "Lorem Ipsum" | ||
} | ||
], | ||
"items_total": 4 | ||
} |
This file contains 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
This file contains 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