timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-46518] Configuration files not properly readed in UI configuration form in Firefox #9325

Open timja opened 7 years ago

timja commented 7 years ago

Welcome,

I have some problem with reading configuration in UI forms.

Wrong reading Jenkins location. In jenkins.model.JenkinsLocationConfiguration.xml i have:

'1.0' encoding='UTF-8'?>

  scichy@ibpm.pro
  https://ci.ibpm.pro:7080/

but in UI form I have: . Looks like is reading my JIRA configuration.

The same problem is in configuration in my projects. In configuration file of job called 'mercury-lib' we can found:


  
  
  false
  
  "hudson.plugins.git.GitSCM" plugin="git@3.5.1">
    2
    
      
mercury-lib
ssh://jenkins@sources.ibpm.pro/opt/git/repositories/Mercury/mercury-lib.git
      
    
    
      
master
      
    

but in UI form I have: . Looks like is reading my JIRA configuration.

In general, everything works fine (if we talking about jobs, integrations etc.), but when I want to change my configuration, I always have to keep in mind that these sections are not overwritten with the values that came in the form.


Originally reported by slawas, imported from: Configuration files not properly readed in UI configuration form in Firefox
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 7 years ago

slawas:

I added list of my plugins in attached file console.log

timja commented 7 years ago

slawas:

I see in my logs exception when I go to configuration form:

WARNING: Error while serving https://ci.ibpm.pro:7080/descriptorByName/jenkins.scm.impl.subversion.SubversionSCMSource/fillCredentialsIdItems
java.lang.reflect.InvocationTargetException
    at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
    at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
    at javax.servlet.FilterChain$doFilter.call(Unknown Source)
    at com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:92)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle(Server.java:564)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
    at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:278)
    at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:148)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
    at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
    at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
    at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.LinkageError: com/cloudbees/plugins/credentials/domains/URIRequirementBuilder
    at jenkins.scm.impl.subversion.SubversionSCMSource$DescriptorImpl.doFillCredentialsIdItems(SubversionSCMSource.java:804)
    at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
    at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
    ... 81 more

timja commented 7 years ago

slawas:

OK, I think that exception is not corelated with this issue. I see that all problems is with Firefox browser (https://www.mozilla.org/en-US/firefox/54.0.1/releasenotes/). When I opened UI in Chrome all works fine.

timja commented 7 years ago

slawas:

I upgraded my Firefox to https://www.mozilla.org/en-US/firefox/55.0.3/releasenotes/ and reading configuration in form of UI still is wrong. Workaround for me: I will be use only Chrome browser.

timja commented 7 years ago

slawas:

I changed summary. Problem is when I run UI by Firefox browser

timja commented 7 years ago

oleg_nenashev:

LinkageError does not seem to be something browser-specific. CC stephenconnolly who is the Credentials plugin maintainer

timja commented 7 years ago

danielbeck:

It's unclear what this is about. Are you editing these files while Jenkins is running and expect it to pick up the changes?

timja commented 7 years ago

slawas:

  1. I don't edit any file configuration. I try to show you that in configration file is correctly data (different them data in UI form).
  2. When I try open configuration form in UI by Firefox browser, I have wrong data in form fields.
timja commented 7 years ago

danielbeck:

Interesting. Does the same happen in a private browsing session? My current guess is form autocompletion running wild.

timja commented 7 years ago

stephenconnolly:

oleg_nenashev I am removing credentials plugin, the Subversion plugin has always used public static URIRequirementBuilder URIRequirementBuilder.fromUri(String) and the credentials plugin has not actually changed that signature in 4 years: ( https://github.com/jenkinsci/credentials-plugin/blame/master/src/main/java/com/cloudbees/plugins/credentials/domains/URIRequirementBuilder.java#L74 or https://github.com/jenkinsci/credentials-plugin/blame/ffa71723b80b05a120b1cdaaffae3f04e2414903/src/main/java/com/cloudbees/plugins/credentials/domains/URIRequirementBuilder.java#L85 )

Likely the LinkageError is symptomatic of something else wrong in the classloading on that Jenkins instance