| Summary: | [discovery][jmdns] registerService impl should be more robust | ||
|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Scott Lewis <slewis> |
| Component: | ecf.providers | Assignee: | ecf.core-inbox <ecf.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bugs.eclipse.org |
| Version: | 1.1.0 | ||
| Target Milestone: | 2.0.1 | ||
| Hardware: | All | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Scott Lewis
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. |