Community
Participate
Working Groups
Currently the jmdns provider implementation of registerService fails to detect inappropriate IServiceID.getServiceName() values. It should check for valid information in the IServiceInfo provided to registerService, and throw exceptions if invalid data are provided.
Added following check to JMDSN registerService(svcInfo) implementation: protected void checkServiceInfo(ServiceInfo serviceInfo) throws ECFException { final String serviceName = serviceInfo.getName(); if (serviceName == null) throw new ECFException(Messages.JMDNSDiscoveryContainer_SERVICE_NAME_NOT_NULL); } This checks for null service names. Additional checks to follow (for valid JMDNS names).
Resolving as robustness has been added via comment #1. Also ID creation now does more syntax checking.