[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-29 Thread arca...@ivanov.biz (JIRA)














































Arcadiy Ivanov
 commented on  JENKINS-24676


Region list not being populated when keys are entered















FYI, this can also happen if AWS keys are correct, but IAM is used and permissions in the policy are lacking. The exception then looks like this:

WARNING: Error while serving http://ci.labs.dev.servicemesh.com:8080/descriptorByName/hudson.plugins.ec2.AmazonEC2Cloud/fillRegionItems
java.lang.reflect.InvocationTargetException
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.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
 

[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-23 Thread fran...@oaklandsoftware.com (JIRA)














































Francis Upton
 commented on  JENKINS-24676


Region list not being populated when keys are entered















I'm not sure. I would prefer that an error be given when you do a test connection and no region has been specified rather than selecting a default region. Wouldn't this be more clear?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-23 Thread recampb...@java.net (JIRA)














































recampbell
 commented on  JENKINS-24676


Region list not being populated when keys are entered















@Francis the problem is that you currently get an unhelpful stacktrace when you try to test the connection. My patch does not select a default region for you, it just uses a default region for the sake of the test  you still must select a region. Make sense?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-23 Thread recampb...@java.net (JIRA)












































 
recampbell
 edited a comment on  JENKINS-24676


Region list not being populated when keys are entered
















@Francis the problem is that you currently get an unhelpful stacktrace when you try to test the connection. My patch does not select a default region for you, it just uses a default region for the sake of the test (and does not save this anywhere)  you still must select a region to complete the configuration. Make sense?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-23 Thread fran...@oaklandsoftware.com (JIRA)














































Francis Upton
 commented on  JENKINS-24676


Region list not being populated when keys are entered















@recampbell, yes makes sense, and maybe I'm just being pedantic, but with your change, wouldn't we be testing the connection with some default region (and it might work) and be misleading for the user, rather than failing the Test Connection with some reasonable message. I agree the current situation is bad.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-12 Thread recampb...@java.net (JIRA)














































recampbell
 commented on  JENKINS-24676


Region list not being populated when keys are entered















I can reproduce this if I enter an invalid AWS secret key.

I think the bug is that the test Connection action should just provide a default region if you haven't selected one.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-12 Thread recampb...@java.net (JIRA)














































recampbell
 commented on  JENKINS-24676


Region list not being populated when keys are entered















Pull request: https://github.com/jenkinsci/ec2-plugin/pull/108



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [ec2] (JENKINS-24676) Region list not being populated when keys are entered

2014-09-11 Thread layton.white...@gmail.com (JIRA)














































Layton Whiteley
 updated  JENKINS-24676


Region list not being populated when keys are entered
















Change By:


Layton Whiteley
(11/Sep/14 4:52 PM)




Summary:


GettingaNPE
Regionlistnotbeingpopulated
when
configuringCloud
keysareentered





Description:


CurrentlyonjenkinsJenkinsver.1.579ec2version1.24enteredcredentials+RSAkey
and
Noregionsarepopulatedinthelisttobeselected
gotthefollowingerrorwhenIclicked`testConnection`Stacktracejavax.servlet.ServletException:java.lang.NullPointerException	atorg.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)	atorg.kohsuke.stapler.Stapler.invoke(Stapler.java:858)	atorg.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)	atorg.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)	atorg.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)	atorg.kohsuke.stapler.Stapler.invoke(Stapler.java:858)	atorg.kohsuke.stapler.Stapler.invoke(Stapler.java:631)	atorg.kohsuke.stapler.Stapler.service(Stapler.java:225)	atjavax.servlet.http.HttpServlet.service(HttpServlet.java:848)	atorg.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)	atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)	athudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)	athudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)	athudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)	atnet.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)	atnet.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:180)	atnet.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)	atorg.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:89)	athudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)	athudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)	atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)	athudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)	atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)	athudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atjenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atorg.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atorg.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atorg.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atjenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	atorg.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)	athudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)	athudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)	athudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)	athudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)	atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)	atorg.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)	atorg.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)	athudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)