maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@codehaus.org>
Subject [jira] (MCHANGES-330) JQL fails if project name is AS
Date Fri, 30 May 2014 13:29:10 GMT

     [ https://jira.codehaus.org/browse/MCHANGES-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dennis Lundberg updated MCHANGES-330:
-------------------------------------

    Component/s: jira

> JQL fails if project name is AS
> -------------------------------
>
>                 Key: MCHANGES-330
>                 URL: https://jira.codehaus.org/browse/MCHANGES-330
>             Project: Maven Changes Plugin
>          Issue Type: Bug
>          Components: jira
>            Reporter: Jason Duke
>
> Error reported is as follows:
> {code}
> [ERROR] Error in the JQL Query: 'AS' is a reserved JQL word. You must surround it in
quotation marks to use it in a query. (line 1, character 11)
> [WARNING] 
> org.apache.maven.plugin.MojoExecutionException: Failed to query issues; response 400
> 	at org.apache.maven.plugin.jira.RestJiraDownloader.reportErrors(RestJiraDownloader.java:198)
> 	at org.apache.maven.plugin.jira.RestJiraDownloader.doExecute(RestJiraDownloader.java:152)
> 	at org.apache.maven.plugin.jira.AdaptiveJiraDownloader.doExecute(AdaptiveJiraDownloader.java:47)
> 	at org.apache.maven.plugin.jira.JiraMojo.executeReport(JiraMojo.java:367)
> 	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
> 	at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:219)
> 	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:319)
> 	at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:135)
> 	at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:175)
> 	at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:138)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
> 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> {code}
> I took a quick peek at the JQL generation code, and it seems likely that simply enclosing
all project names in single quotes would solve it.
> Or maybe it should only be quoted if it is a reserved word, and otherwise not?
> Perhaps other JQL fields should be quoted as well?



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message