[JIRA] [cucumber-testresult-plugin] (JENKINS-32593) FileNotFoundException in Cucumber Test Result Plugin with '<' or '>' in scenario name

已查看 3 次
跳至第一个未读帖子

jenkins@kozhevnikov.com (JIRA)

未读,
2016年1月25日 08:11:012016/1/25
收件人 jenkinsc...@googlegroups.com
Ilya Kozhevnikov created an issue
 
Jenkins / Bug JENKINS-32593
FileNotFoundException in Cucumber Test Result Plugin with '<' or '>' in scenario name
Issue Type: Bug Bug
Assignee: James Nord
Components: cucumber-testresult-plugin
Created: 25/Jan/16 1:10 PM
Environment: Windows Server 2008 R2 x64
Jenkins 1.588
Cucumber json test reporting plugin 0.8.2
Priority: Minor Minor
Reporter: Ilya Kozhevnikov

When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot) is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file.

{{Archiving artifacts

[Cucumber Tests] Parsing results.
[Cucumber Tests] parsing salai.test.merlin.json
ERROR: Failed to archive cucumber reports
java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed
at hudson.FilePath.copyTo(FilePath.java:1978)
at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1784)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at hudson.FilePath.write(FilePath.java:1867)
at hudson.FilePath.copyTo(FilePath.java:1971)
... 10 more
}}

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jenkins@kozhevnikov.com (JIRA)

未读,
2016年1月25日 08:13:012016/1/25
收件人 jenkinsc...@googlegroups.com
Ilya Kozhevnikov updated an issue
Change By: Ilya Kozhevnikov
When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot) is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file.

{ { code:java}
Archiving artifacts

[Cucumber Tests] Parsing results.
[Cucumber Tests] parsing salai.test.merlin.json
ERROR: Failed to archive cucumber reports
java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to  c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed
at hudson.FilePath.copyTo(FilePath.java:1978)
at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1784)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at hudson.FilePath.write(FilePath.java:1867)
at hudson.FilePath.copyTo(FilePath.java:1971)
... 10 more

{code
} }

jenkins@kozhevnikov.com (JIRA)

未读,
2016年1月25日 08:14:032016/1/25
收件人 jenkinsc...@googlegroups.com
Ilya Kozhevnikov updated an issue
When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot  with sanitized (\W to _ )  path)  is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file.

jnord@cloudbees.com (JIRA)

未读,
2016年9月17日 23:51:012016/9/17
收件人 jenkinsc...@googlegroups.com
James Nord commented on Bug JENKINS-32593
 
Re: FileNotFoundException in Cucumber Test Result Plugin with '<' or '>' in scenario name

the embedded naming needs to sanitize the name more. than it does.
Guessing the > is the issue in this case.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo
回复全部
回复作者
转发
0 个新帖子