Community
Participate
Working Groups
- on the Git Repository page press the Apply Patch button - in the subsequent dialog just press OK without filling in any details - error message is shown: "Apply patch failed. host parameter is null", which is not user-appropriate - the dialog probably should have noted that no patch details were entered when OK was pressed, and as a result not bother calling the thing that attempts to do the work - or perhaps the OK button should have been disabled
Still happens in the latest.
Please fix if easy.
I think you should disable the OK button. Here is an example fix where that was done, fyi: bug 427040
Grant, is the text for this message coming from the server (a la the comments on bug 427040) ? I can likely copy Mark's fix of disabling the OK button (which is indeed better IMO) but if these messages are being presented to the user doesn't *someone* have to translate them ? Perhaps the server should be responding with a messages 'key' (we could even use the existing strings) and have the translation done on the client side prior to display ?
Apparently the server translation issue is larger than just GIT so it'll be handled separately I think... Taking a quick look at the behavior makes me think that even knowing when to enable the OK button may be a problem. GIT returns a variety of different messages depending on the format of the given URL: file:/as.foo: unsupported protocol 'file' www.abc.com: host parameter is null (i.e. same as we get with nothing) file:\\temp\foo.js: invalid url 'file:\\temp\foo.js' incorrect path http://w3.ibm.com: no files changed https://w3.ibm.com Remote host closed connection during handshake Given this I'm not sure whether we should be getting in the way of JGit's handling...
Can we get the messages out first and then worry about the translation? Not sure if the translation is blocking the fix ...
Fixed, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=99447681ac917bea229012f59b376c4a66600775 .