Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-14398

Content selector with ' in path errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 3.5.2, 3.6.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Chrome MacOSX
    • Story Points:
      0.5

      Description

      One of the comments on https://docs.sonatype.com/display/Nexus/Content+Selector+Testing is "String literals containing " or ' will be rejected".
      I attempted path =^ "/jtt/jtza'pp/" and got back the below error both in the UI and in the nexus.log:

      2017-09-19 16:16:34,652-0400 ERROR [qtp1843897464-66] admin com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=component}} Exception `073D9309` in storage `component`
      com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select count(*) from asset where (contentExpression(@this, :jexlExpression, :repositorySelector, :repoToContainedGroupMap) == true) and (bucket=#36:0 or bucket=#35:3 or bucket=#36:3 or bucket=#34:3 or bucket=#37:0 or bucket=#38:0 or bucket=#39:0)
      ...
      Caused by: org.apache.commons.jexl3.JexlException$Parsing: org.sonatype.nexus.selector.JexlSelector@1:20 parsing error in 'pp'
      ...
      

      Full here: https://gist.github.com/joedragons/6c052e86c4c19a45a4c569b41b845a15

      So it is rejected but filing in case we want to handle the error (I suspect we normally do, tho this may be an exception).

      I checked 3.5.2 and this is not new to CSEL and not regression.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jtom Joe Tom
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title