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

Content Selectors UI doesn't verify Name properly

    XMLWordPrintable

    Details

    • Story Points:
      2
    • Sprint:
      NXRM Neo Sprint 3, NXRM Neo Sprint 4

      Description

      I noticed that if you attempt to save a content selector with an invalid name, the form fails to submit as expected.

      However, the UI flags the Search Expression field as the source of the problem, not the name field.

      Note that we can use a validator to show the field before submitting

      The logs show the following:

      2021-01-05 17:58:09,870-0500 WARN  [qtp1681806537-227] admin org.sonatype.nexus.siesta.internal.resteasy.ResteasyViolationExceptionMapper - (ID 29fdaa80-acf7-454f-b66c-55c4f4923d72) Response: [400] '[ValidationErrorXO{id='PARAMETER name', message='Only letters, digits, underscores(_), hyphens(-), and dots(.) are allowed and may not start with[ui-issue?]rs, digits, underscores(_), hyphens(-), and dots(.) are allowed and may not start with underscore or dot.]
      

        Attachments

          Activity

            People

            Assignee:
            mmartz Michael Martz
            Reporter:
            mbucher Michael Bucher
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Neo
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title