Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25459

Ambari doesn't show versions page after invalid repo was added

    XMLWordPrintableJSON

    Details

      Description

      Steps to reproduce:

      1. Deploy cluster.
      2. Add repository version with "***:***" as credentials (set skip validation before saving).
      3. Try to open versions page.

      ambari-server log:

      2020-01-18 00:45:14,915 ERROR [ambari-client-thread-388] ReadHandler:99 - Bad request:
       java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
       *****:*****
       ^
           at java.util.regex.Pattern.error(Pattern.java:1955)
           at java.util.regex.Pattern.sequence(Pattern.java:2123)
           at java.util.regex.Pattern.expr(Pattern.java:1996)
           at java.util.regex.Pattern.compile(Pattern.java:1696)
           at java.util.regex.Pattern.<init>(Pattern.java:1351)
           at java.util.regex.Pattern.compile(Pattern.java:1028)
           at java.lang.String.replaceFirst(String.java:2178)
           at org.apache.ambari.server.utils.URLCredentialsHider.hideCredentials(URLCredentialsHider.java:48)
           at org.apache.ambari.server.controller.internal.RepositoryResourceProvider.getResources(RepositoryResourceProvider.java:182)
           at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java: 965)
           at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:139)
           at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:529)
           at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:482)
           at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:503)
           at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:503)
           at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:454)
           at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:222)
           at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:77)
           at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:144)
           at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:164)
           at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:128)
           at org.apache.ambari.server.api.services.ClusterStackVersionService.getClusterStackVersions(ClusterStackVersionService.java:68)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpapirkovskyy Papirkovskyy Myroslav
                Reporter:
                mpapirkovskyy Papirkovskyy Myroslav
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m