Comments (11)
turb:
Note: in fact, this bug is more strange than I thought.
I have no error only if :
1) I try to add an ssh publishing to an existing build (NPE)
2) Save
3) Go back to configuration => here is my publish over ssh configuration panel
from publish-over-ssh-plugin.
bap:
Have you configured any SSH Servers in the main configuration page (Manage Jenkins > Configure System)?
Could someone have changed the name of the Configuration whilst the Job configuration page was alresdy open?
The line in question is only called from the form validation when configuring a job, and is passed the value of the configuration name that is in the drop down list. The list is generated from the configurations defined in the main configuration. The only way that getConfiguration can return null is if configName is null, or if configName does not match the name of any of the configurations that exist when the call is made.
Where did you see this error - was it in red in the validation area? (where you see "Required", etc.)
I will make the check more robust by returning a validation message like "no such configuration - check System Configuration" if either configName is null, or if a configuration could not be located, but it would be useful to find out what the issue is in your case.
from publish-over-ssh-plugin.
bap:
Sylvain,
Can you also let me know which browser/browser version and OS you were using?
Thanks,
Bap.
from publish-over-ssh-plugin.
turb:
OK, trying to make some tests to answer your different questions, I think I found the problem.
First of all, note it occured paired with JENKINS-9175 - sorry to have forgotten to mention this.
It is in fact the same problem. It occurs if:
- there is no SSH configuration yet (I didn't tested it again yet) OR
- the SSH configuration has some non-ascii chars in its name (so in the same fashion as
JENKINS-9175)
I think that promoted-builds JENKINS-9175 has also a direct influence on it.
My client conf:
- 32b Windows Vista SP2
- Firefox 3.6.16
See attached a capture with the stacktrace (note the non-ascii char "é" that made me test this point).
Could someone have changed the name of the Configuration whilst the Job configuration page was alresdy open?
No.
(I think I answered all questions)
from publish-over-ssh-plugin.
bap:
Thank you for your help.
I guess that the rest of the options (Remove prefix, Remote directory, etc) appeared below the stack trace.
Can you try the 0.10 release of Publish Over SSH Plugin?
This will not give an NPE, but I'd like to know what you get in the source files validation area before you enter anything.
Also can you let me know if there are any errors in the javascript error console? (Firefox > Tools > Error Console)
Can you clear the console, then re open the page - I'm sure there will be errors, but I'd like too see if there are any from my plugin.
Finally can you send me a copy of your jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml configuration file from $JENKINS_HOME?
Make sure you * out any passwords and keys first (host information as well if you want)! - they are encrypted, but delete them anyway.
I'm away for the weekend, so I'll investigate further on Monday.
Thanks agian.
from publish-over-ssh-plugin.
bap:
Pls send the (zipped up) config file to bap-jenkins at BapIT dot co dot uk
from publish-over-ssh-plugin.
turb:
I installed 0.10
As you said, there is no more NPE, but one error:
"Could not find the SSH Server configuration named [Int�gration Argos]- check the System Configuration and then reload this configuration page" (see capture 2)
If if throw away the non-ascii char, there is no error.
—
There is no error in the Firefox console; only warnings, but in French:
"Avertissement : La propriété « charCode » d'un événement « keyup » ne doit pas être utilisée. Cette valeur n'a pas de sens.
Fichier Source : https://issues.jenkins-ci.org/browse/JENKINS-9376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147862#comment-147862
Ligne : 0"
That can be translated as: "Warning: "charCode" property of a "keyup" event should not be used. This value makes no sense".
There is no other warnings (but this one again and again).
I send you my jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml soon.
Thank you for this quick reaction!
from publish-over-ssh-plugin.
Code changed in jenkins
User: bap2000
Path:
src/main/webapp/js/pos.js
http://jenkins-ci.org/commit/publish-over-ssh-plugin/debc24f899188fd247e14aec7d4b915eebc0f7ac
Log:
[FIXED JENKINS-9376] ajax form validation with international characters in configuration name
from publish-over-ssh-plugin.
bap:
Fixed in 0.11
from publish-over-ssh-plugin.
bap:
Thank you so much!
Try 0.11 I think you will find it is fixed.
Can you report back so I can close the issue - or if it is not fixed then I will have another look.
The problem was only with the form validation, the plugin would have worked when run - it was just that it didn't look like it
from publish-over-ssh-plugin.
turb:
Solved in 0.11 (checked).
Thank you very much!
from publish-over-ssh-plugin.
Related Issues (20)
- SSH connexion error to an ubuntu 14.04.6 LTS server
- Remove usages of Prototype JavaScript framework
- Run a Ansible playbook and trigger publish-over-ssh-plugin exception HOT 1
- Plugin is not seeing settings in my config file HOT 6
- Remote call on EC2 failed
- Publish Over SSH fail to Connect remote server HOT 2
- jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [ansible]. Message [Auth fail for methods 'publickey,gssapi-keyex,gssapi-with-mic,password']] HOT 11
- Exception on sftp publish with 1.25 HOT 1
- How do I add a single SSH server using jenkins-rest OR http request?
- ERROR: Exception when publishing, exception message [argument "outputFile" is null] HOT 2
- job-level config for #245 HOT 10
- skip `excludes` from downloading from github HOT 1
- download only specific files for #245 HOT 3
- I cannot push file to remote server with Publish Over SSH
- Is it possible to use different user credentials in the same job and enter password each time the job is started.
- publish-over-ssh-plugin not working on new jenkins server
- Publisher file transfer over ssh hangs at 32 kilobytes HOT 1
- Cannot be saved properly
- Failed to instantiate class jenkins.plugins.publish_over_ssh.options.SshDefaults
- Plugin loading page recursively and eventually crashing browser HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from publish-over-ssh-plugin.