[ https://issues.apache.org/jira/browse/AMBARI-25459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhiguo Wu updated AMBARI-25459: ------------------------------- Fix Version/s: 2.8.0 > Ambari doesn't show versions page after invalid repo was added > -------------------------------------------------------------- > > Key: AMBARI-25459 > URL: https://issues.apache.org/jira/browse/AMBARI-25459 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.7.5 > Reporter: Papirkovskyy Myroslav > Assignee: Papirkovskyy Myroslav > Priority: Critical > Labels: pull-request-available > Fix For: 2.8.0, 2.7.6 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > Steps to reproduce: > # Deploy cluster. > # Add repository version with "****:****" as credentials (set skip > validation before saving). > # Try to open versions page. > ambari-server log: > {code:java} > 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) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org