matthiasblaesing commented on PR #9794:
URL: https://github.com/apache/netbeans/pull/9794#issuecomment-7020379357

   @dajiaohuang I now tested this against a pureftp docker container. I was 
able to reproduce the issue and verified the fix using that setup.
   
   The unittest looked ok, but failed when executed. It needs to be fixed like 
this:
   
   ```diff
   --- 
a/php/php.project/test/unit/src/org/netbeans/modules/php/project/connections/ftp/FtpClientTest.java
   +++ 
b/php/php.project/test/unit/src/org/netbeans/modules/php/project/connections/ftp/FtpClientTest.java
   @@ -50,7 +50,7 @@
                        return ConfigManager.createEmptyConfigs();
                    }
                });
   -            ConfigManager.Configuration configuration = 
manager.defaultConfiguration();
   +            ConfigManager.Configuration configuration = 
manager.createNew("demo", "Demo config");
                
FtpConnectionProvider.get().createRemoteConfiguration(configuration);
                configuration.putValue(FtpConnectionProvider.HOST, "127.0.0.1");
                configuration.putValue(FtpConnectionProvider.PORT, 
Integer.toString(server.getPort()));
   ```
   
   Please indicate whether you want to integrate this. Given that you indicate 
that this was created by a KI, the alternative would be that I take the change, 
fix it and commit it as a whole.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to