Dangling meta character '*' near index 0
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
When JIRA starts, following stack trace is thrown in atlassian-jira.log
1
2
3
4
5
6
7
8
9
10
11
12
2018-07-19 11:17:52,924 JIRA-Bootstrap ERROR [c.a.s.core.upgrade.PluginUpgrader] Upgrade failed: Dangling meta character '*' near index 0
*
^
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)
Diagnosis
The problem is related to Whitelist plugin and there's incomplete regex configured in JIRA. User can generate a support.zip from their JIRA, extract it & check application.xml from support zip/application-properties for <jira.whitelist.rules> entry.
Cause
The problem could be caused by the entry like below:
1
<jira.whitelist.rules>http://www.atlassian.com/* /* http://jira.megatron:8080/* http://jira.megatron:8080/* http://jira.megatron:8060/*</jira.whitelist.rules>
The additional /* character causing this problem.
Solution
Resolution
Backing up data your JIRA and if you have a test instance, it's highly recommended for you to test the suggestion in the test instance before applying it in your production instance.
Stop your JIRA.
Run the following SQL query:
1
select * from propertytext where propertyvalue like '%*%';
Find the entry /* in propertyvalue column.
Run the following query to remove the data:
1
delete from propertytext where id = '<id of the entry with /* value>';
Restart JIRA and check whether the same stack trace is still shown.
Was this helpful?