Commit 3ed7f068 authored by Gabriel Guardincerri's avatar Gabriel Guardincerri Committed by gguardin

[JM-1322] Clearspace groups provider doesn't work when group name contains spaces

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@10192 b35dd754-fafc-0310-a699-88a17e54d16e
parent df428427
......@@ -25,6 +25,7 @@ import org.jivesoftware.openfire.user.UserNotFoundException;
import org.jivesoftware.util.Log;
import org.xmpp.packet.JID;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
......@@ -326,7 +327,7 @@ public class ClearspaceGroupProvider implements GroupProvider {
private Element getGroupByName(String name) throws GroupNotFoundException {
try {
String path = URL_PREFIX + "groups/" + name;
String path = URL_PREFIX + "groups/" + URLEncoder.encode(name, "UTF-8");
return manager.executeRequest(GET, path);
} catch (GroupNotFoundException gnfe) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment