1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-14 06:58:19 -05:00

Fix FBA authentication, reset query string in getAbsoluteURI()

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@793 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-10-27 09:26:12 +00:00
parent b62e24a906
commit ec97ae1bf4

View File

@ -282,6 +282,8 @@ public class ExchangeSession {
protected String getAbsoluteUri(HttpMethod method, String path) throws URIException {
URI uri = method.getURI();
if (path != null) {
// reset query string
uri.setQuery(null);
if (path.startsWith("/")) {
// path is absolute, replace method path
uri.setPath(path);
@ -1081,7 +1083,7 @@ public class ExchangeSession {
public void createFolder(String folderName) throws IOException {
String folderPath = getFolderPath(folderName);
ArrayList<DavProperty> list = new ArrayList<DavProperty>();
list.add(new DefaultDavProperty(DavPropertyName.create("outlookfolderclass", Namespace.getNamespace("http://schemas.microsoft.com/exchange/")), "IPF.Note"));
list.add(new DefaultDavProperty(DavPropertyName.create("outlookfolderclass", Namespace.getNamespace("http://schemas.microsoft.com/exchange/")), folderClass));
// standard MkColMethod does not take properties, override PropPatchMethod instead
PropPatchMethod method = new PropPatchMethod(URIUtil.encodePath(folderPath), list) {
@Override