-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid error in search when the parameter received by IndexQuery is a …
…record (#129) When using record notation in URL parameters, for example: http://localhost:8080/Plone/@@search?end.query:record:list:date=2022-2-2+00%3A00%3A00&end.range:record=min On the Zope side, this parameter becomes a ZPublisher.HTTPRequest.record, not a dictionary. However, IndexQuery only expected the parameter to be a dictionary. When the parameter is a record and it is not considered when extracting the 'query' key, the error occurs: TypeError: unailshable type: 'record' in search. Now we consider that the parameter can be a record as well.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
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