-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add TODOs for escaping #14734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add TODOs for escaping #14734
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
LoayGhreeb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks valid. I assumed that the field names would not contain special characters (=, !, ~, (, )), but we should consider it if the parser's reserved special characters are allowed in the field names.
We might also open an issue for this, it could be a good first issue.
jablib/src/main/java/org/jabref/logic/search/query/SearchQueryExtractorVisitor.java
Outdated
Show resolved
Hide resolved
…ExtractorVisitor.java Co-authored-by: Loay Ghreeb <[email protected]>
User description
@LoayGhreeb I found this in my local branches. Do you think, it makes sence?
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Documentation
Description
Add TODO comments about missing unescaping logic
Document that field escaping doesn't work as expected
Clarify Lucene field validation behavior in comments
Diagram Walkthrough
File Walkthrough
SearchQueryExtractorVisitor.java
Add TODO for missing field term unescapingjablib/src/main/java/org/jabref/logic/search/query/SearchQueryExtractorVisitor.java
field\=thing=valuedon't work asexpected
SearchQueryVisitor.java
Add TODO for missing field term unescapingjablib/src/main/java/org/jabref/logic/search/query/SearchQueryVisitor.java
field\=thing=valuedon't work asexpected
SearchToLuceneVisitor.java
Add TODO and document field validation logicjablib/src/main/java/org/jabref/logic/search/query/SearchToLuceneVisitor.java
isValidFieldmethod behaviorfields like author
SearchToSqlVisitor.java
Add TODO for missing field term unescapingjablib/src/main/java/org/jabref/logic/search/query/SearchToSqlVisitor.java
field\=thing=valuedon't work asexpected