Decode the url content sent from UI first as URL has encoded url as a whole

This commit is contained in:
Kelven Yang 2011-04-29 14:17:35 -07:00
parent d2e68c2dab
commit b6364627a3
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLDecoder;
import java.nio.channels.ClosedChannelException;
import java.util.ArrayList;
import java.util.Enumeration;
@ -566,6 +567,8 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, ResourceS
String url = cmd.getUrl();
String username = cmd.getUsername();
String password = cmd.getPassword();
url = URLDecoder.decode(url);
URI uri = null;