我在使用带jira 6.1的mylyn jira连接器时遇到问题
我配置了一些查询,但是现在我无法添加新查询。 我尝试添加相同的查询作为过滤器导入并使用eclipse表单。
在这两种情况下,我都会收到以下错误消息,即使查询本身不包含任何百分比字符:
JQL查询中的错误:字符'%'是保留的JQL 字符。您必须将其括在一个字符串中或使用转义'\ u0025' 代替。 (第1行,第13个字符)
com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: Error in the JQL Query: The character '%' is a reserved JQL character. You must enclose it in a string or use the escape '\u0025' instead. (line 1, character 13)
at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:765)
at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getIssues(JiraRestClientAdapter.java:314)
at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.findIssues(JiraClient.java:371)
at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.findIssues(JiraClient.java:363)
at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.search(JiraClient.java:760)
at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:140)
at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311)
at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268)
at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: com.atlassian.jira.rest.client.RestClientException: Error in the JQL Query: The character '%' is a reserved JQL character. You must enclose it in a string or use the escape '\u0025' instead. (line 1, character 13)
at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:76)
at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.getAndParse(AbstractJerseyRestClient.java:88)
at com.atlassian.jira.rest.client.internal.jersey.JerseySearchRestClient.searchJqlImpl(JerseySearchRestClient.java:107)
at com.atlassian.jira.rest.client.internal.jersey.JerseySearchRestClient.searchJql(JerseySearchRestClient.java:74)
at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$5.call(JiraRestClientAdapter.java:318)
at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$5.call(JiraRestClientAdapter.java:1)
at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:730)
... 9 more
Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 400
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:607)
at com.sun.jersey.api.client.WebResource.get(WebResource.java:187)
at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$1.call(AbstractJerseyRestClient.java:92)
at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:62)
... 15 more
答案 0 :(得分:11)
我知道这是旧的,以防万一其他人来到这里......
我在设置任务回购时错过了https中的“s”,从而出现此错误。添加's'并点击重新验证。它解决了这个问题。
该错误非常具有误导性。
答案 1 :(得分:1)
为“Atlassian Connector for Eclipse”创建了new bug来解决此问题。
具体来说,让我们知道您的JQL查询。我想知道在我们没有逃脱的地方是否有任何空间角色。
事实证明,问题是由JIRA前面的Apache服务器配置错误引起的。如果您遇到类似的情况,请点击查询以在浏览器中打开它 - 通过这种方式查看正在发生的事情要容易得多。
答案 2 :(得分:1)
不幸的是我无法编辑@Jacek anwser,所以让我把它放在这里:
问题是由JIRA前面的Apache服务器配置错误引起的。如果您遇到类似的情况,请点击查询以在浏览器中打开它 - 通过这种方式查看正在发生的事情要容易得多。
Atlassian,请让错误报告更容易理解。