-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Good First IssueIndicates issues suitable for newcomers to design or coding, providing a gentle introduction.Indicates issues suitable for newcomers to design or coding, providing a gentle introduction.Module: FrontendThese issues involve working on HTML, CSS, and JavaScript code that affects the user interface.These issues involve working on HTML, CSS, and JavaScript code that affects the user interface.Type: BugIssues related to software defects or unexpected behavior, which require resolution.Issues related to software defects or unexpected behavior, which require resolution.facetsBehaviour or rendering of facets in a projectBehaviour or rendering of facets in a project
Milestone
Description
The code that generates the GREL expression for the Duplicates facet does not escape the name of the selected column.
If this name contains a single quote character, this results in an invalid GREL expression, hence the facet cannot be used as such.
To Reproduce
Steps to reproduce the behavior:
- First, import the following CSV file:
Jane's column,Jack's column
foo,bar
hey,ho
hey,bar
- Then, create a Duplicates facet on any of the column (using the column menu)
Current Results
The facet's GREL expression is invalid: facetCount(value, 'value', 'Jane's column') > 1.
Expected Behavior
The GREL expression should be valid, for instance facetCount(value, 'value', 'Jane\'s column') > 1 would work.
Versions
- Operating System: irrelevant
- Browser Version: irrelevant
- JRE or JDK Version: irrelevant
- OpenRefine: master
Additional context
Brought up on our mailing list: https://groups.google.com/g/openrefine/c/2ic5F0YGcbk
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueIndicates issues suitable for newcomers to design or coding, providing a gentle introduction.Indicates issues suitable for newcomers to design or coding, providing a gentle introduction.Module: FrontendThese issues involve working on HTML, CSS, and JavaScript code that affects the user interface.These issues involve working on HTML, CSS, and JavaScript code that affects the user interface.Type: BugIssues related to software defects or unexpected behavior, which require resolution.Issues related to software defects or unexpected behavior, which require resolution.facetsBehaviour or rendering of facets in a projectBehaviour or rendering of facets in a project