fixed warnings
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1577 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
80c1e5ac97
commit
f50880905e
@ -25,10 +25,11 @@ public class AuthorizeCommand2 extends Command {
|
||||
respond(response, "401 Unauthorized", "Authentication failed.");
|
||||
return;
|
||||
}
|
||||
String onetimeUseToken = AuthSubUtil.getTokenFromReply(URLDecoder
|
||||
.decode(queryString));
|
||||
String sessionToken = AuthSubUtil.exchangeForSessionToken(
|
||||
onetimeUseToken, null);
|
||||
|
||||
String onetimeUseToken = AuthSubUtil.getTokenFromReply(URLDecoder.decode(queryString,"UTF-8"));
|
||||
// FIXME(SM): can we safely assume UTF-8 encoding here?
|
||||
|
||||
String sessionToken = AuthSubUtil.exchangeForSessionToken(onetimeUseToken, null);
|
||||
TokenCookie.setToken(request, response, sessionToken);
|
||||
|
||||
// FeedURLFactory factory = FeedURLFactory.getDefault();
|
||||
|
@ -19,8 +19,8 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Properties;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
@ -36,7 +36,6 @@ import org.apache.commons.fileupload.util.Streams;
|
||||
import org.apache.tools.bzip2.CBZip2InputStream;
|
||||
import org.apache.tools.tar.TarEntry;
|
||||
import org.apache.tools.tar.TarInputStream;
|
||||
import org.apache.velocity.VelocityContext;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user