Jenkins Robot Framework Plugin issue while opening log.html and repost.html.

4,022 views
Skip to first unread message

Alok

unread,
Jan 18, 2016, 7:50:38 AM1/18/16
to robotframework-users

Hello,

I see for Jenkins version 1.641, 1.643 and 1.6.44, below error when we try to browse the ROBOT tests report/logs (i have Robot Framework Plugin v 1.6.2 ):-


Opening Robot Framework log failed

  • Verify that you have JavaScript enabled in your browser.
  • Make sure you are using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug

I am using Chrome 47.0.2526.106, IE10, FF42 (Tried this Jenkins environments v1.641, 1.643, 1.644)..


IS this a known bug?

Thanks,
-alok

Tatu Aalto

unread,
Jan 18, 2016, 10:02:31 AM1/18/16
to alokkuma...@gmail.com, robotframework-users

Ugh

Have you looked at here: https://groups.google.com/forum/m/#!topic/robotframework-users/58Gxyxm9gns

-Tatu

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Alokkumar Mahajan

unread,
Jan 19, 2016, 12:18:54 AM1/19/16
to Tatu Aalto, robotframework-users
Thanks for reply, i also found that its already tracked as a bug @ https://issues.jenkins-ci.org/browse/JENKINS-32118

Adding -Dhudson.model.DirectoryBrowserSupport.CSP= in Jenkins startup script i could resolve this issue temporary.

SURYA RAJAMANICKAM

unread,
Apr 5, 2017, 3:10:36 AM4/5/17
to robotframe...@googlegroups.com, aalto...@gmail.com
Hi 

Could you help out. I'm using .war file for Jenkins ver. 2.32.1. I gave input on command line -Dhudson.model.DirectoryBrowserSupport.CSP= "sandbox allow-scripts; default-src 'self'; style-src 'self' 'unsafe-inline';" -jar jenkins.war

But still the HTML reports are not getting published on jenkins . FYI my system properties shows hudson.model.DirectoryBrowserSupport.CSP with the mentioned value

Could you correct me on the command line argument set up which would be helpful .Thanking you on helping me on this.

Please be informed that i tired for java -Dhudson.model.DirectoryBrowserSupport.CSP= -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "jenkins.war" and got the command line outputs . But the property in jenkins for hudson.model.DirectoryBrowserSupport.CSP is set empty

C:\jenkins>java -Dhudson.model.DirectoryBrowserSupport.CSP= -Dhudson.lifecycle=h udson.lifecycle.WindowsServiceLifecycle -jar "jenkins.war" Running from: C:\jenkins\jenkins.war webroot: $user.home/.jenkins ←[33mApr 05, 2017 12:49:59 PM Main deleteWinstoneTempContents WARNING: Failed to delete the temporary Winstone file C:\Users\SRAJAM~1\AppData\ Local\Temp\winstone\jenkins.war ←[0mApr 05, 2017 12:49:59 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Logging initialized @343ms Apr 05, 2017 12:49:59 PM winstone.Logger logInternal INFO: Beginning extraction from war file ←[33mApr 05, 2017 12:49:59 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Empty contextPath ←[0mApr 05, 2017 12:49:59 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-9.2.z-SNAPSHOT Apr 05, 2017 12:49:59 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet Jenkins home directory: C:\Users\srajamanickam\.jenkins found at: $user.home/.je nkins Apr 05, 2017 12:50:00 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started w.@5ab956d7{/,file:/C:/Users/srajamanickam/.jenkins/war/,AVAILABLE }{C:\Users\srajamanickam\.jenkins\war} Apr 05, 2017 12:50:00 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started ServerConnector@74ea2410{HTTP/1.1}{0.0.0.0:8080} Apr 05, 2017 12:50:00 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started @1339ms Apr 05, 2017 12:50:00 PM winstone.Logger logInternal INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled Apr 05, 2017 12:50:00 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Apr 05, 2017 12:50:00 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Apr 05, 2017 12:50:00 PM jenkins.bouncycastle.api.SecurityProviderInitializer ad dSecurityProvider INFO: Initializing Bouncy Castle security provider. Apr 05, 2017 12:50:00 PM jenkins.bouncycastle.api.SecurityProviderInitializer ad dSecurityProvider INFO: Bouncy Castle security provider initialized. Apr 05, 2017 12:50:02 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Apr 05, 2017 12:50:02 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Apr 05, 2017 12:50:02 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Apr 05, 2017 12:50:03 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Apr 05, 2017 12:50:03 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Download metadata Apr 05, 2017 12:50:03 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Download metadata. 32 ms Apr 05, 2017 12:50:03 PM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 60316 Apr 05, 2017 12:50:03 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Apr 05, 2017 12:50:03 PM org.springframework.context.support.AbstractApplication Context prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon text@6787c8e1: display name [Root WebApplicationContext]; startup date [Wed Apr 05 12:50:03 IST 2017]; root of context hierarchy Apr 05, 2017 12:50:03 PM org.springframework.context.support.AbstractApplication Context obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.supp ort.StaticWebApplicationContext@6787c8e1]: org.springframework.beans.factory.sup port.DefaultListableBeanFactory@2e691d3d Apr 05, 2017 12:50:03 PM org.springframework.beans.factory.support.DefaultListab leBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support. DefaultListableBeanFactory@2e691d3d: defining beans [authenticationManager]; roo t of factory hierarchy Apr 05, 2017 12:50:03 PM org.springframework.context.support.AbstractApplication Context prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon text@1bd9b9e: display name [Root WebApplicationContext]; startup date [Wed Apr 0 5 12:50:03 IST 2017]; root of context hierarchy Apr 05, 2017 12:50:03 PM org.springframework.context.support.AbstractApplication Context obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.supp ort.StaticWebApplicationContext@1bd9b9e]: org.springframework.beans.factory.supp ort.DefaultListableBeanFactory@6be9642b Apr 05, 2017 12:50:03 PM org.springframework.beans.factory.support.DefaultListab leBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support. DefaultListableBeanFactory@6be9642b: defining beans [filter,legacy]; root of fac tory hierarchy Apr 05, 2017 12:50:05 PM hudson.WebAppMain$3 run INFO: Jenkins is fully up and running ←[33mApr 05, 2017 12:50:27 PM hudson.security.csrf.CrumbFilter doFilter WARNING: Found invalid crumb 95b0b15f46e645e2e8abfd35000deb8a. Will check remai ning parameters for a valid one... ←[0m←[33mApr 05, 2017 12:50:27 PM hudson.security.csrf.CrumbFilter doFilter WARNING: Found invalid crumb 95b0b15f46e645e2e8abfd35000deb8a. Will check remai ning parameters for a valid one... ←[0m←[33mApr 05, 2017 12:50:27 PM hudson.security.csrf.CrumbFilter doFilter WARNING: No valid crumb was included in request for /ajaxBuildQueue. Returning 4 03. ←[0m←[33mApr 05, 2017 12:50:27 PM hudson.security.csrf.CrumbFilter doFilter WARNING: No valid crumb was included in request for /ajaxExecutors. Returning 40 3. ←[0m




On Tuesday, January 19, 2016 at 10:48:54 AM UTC+5:30, Alok wrote:
Thanks for reply, i also found that its already tracked as a bug @ https://issues.jenkins-ci.org/browse/JENKINS-32118

Adding -Dhudson.model.DirectoryBrowserSupport.CSP= in Jenkins startup script i could resolve this issue temporary.
On Mon, Jan 18, 2016 at 8:32 PM, Tatu Aalto <aalto...@gmail.com> wrote:
On 18 Jan 2016 2:50 p.m., "Alok" <alokkuma...@gmail.com> wrote:

Hello,

I see for Jenkins version 1.641, 1.643 and 1.6.44, below error when we try to browse the ROBOT tests report/logs (i have Robot Framework Plugin v 1.6.2 ):-


Opening Robot Framework log failed

  • Verify that you have JavaScript enabled in your browser.
  • Make sure you are using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug

I am using Chrome 47.0.2526.106, IE10, FF42 (Tried this Jenkins environments v1.641, 1.643, 1.644)..


IS this a known bug?

Thanks,
-alok

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

SURYA RAJAMANICKAM

unread,
Apr 5, 2017, 3:42:40 AM4/5/17
to robotframework-users, aalto...@gmail.com
Hi Buddies 

I just found out what mistake I made . Please ignore the error logs . I have solved it by setting following , 

 java "-Dhudson.model.DirectoryBrowserSupport.CSP=false"

Now I could view the Robot Framework .html files .

Thanking you all.

Amol Thakurdware

unread,
Jun 13, 2022, 8:01:00 AM6/13/22
to robotframework-users

Please follow the steps in this video: https://youtu.be/Cw3RMYGOldA
Reply all
Reply to author
Forward
0 new messages