Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -60,8 +60,8 @@ android { abortOnError false htmlReport true htmlOutput file("$project.buildDir/reports/lint/lint.html") disable 'MissingTranslation' } defaultConfig { minSdkVersion 14 targetSdkVersion 28 Loading lint.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="InvalidPackage"> <ignore path="**/jackrabbit-webdav-2.12.6.jar" /> </issue> </lint> sample_client/lint.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="InvalidPackage"> <ignore path="**/jackrabbit-webdav-2.12.6.jar" /> </issue> </lint> src/com/owncloud/android/lib/common/OwnCloudClient.java +12 −11 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import org.apache.commons.httpclient.params.HttpParams; import java.io.IOException; import java.io.InputStream; import java.util.Locale; public class OwnCloudClient extends HttpClient { Loading Loading @@ -383,13 +384,14 @@ public class OwnCloudClient extends HttpClient { private void logCookiesAtRequest(Header[] headers, String when) { int counter = 0; for (int i=0; i<headers.length; i++) { if (headers[i].getName().toLowerCase().equals("cookie")) { for (Header header : headers) { if ("cookie".equals(header.getName().toLowerCase(Locale.US))) { Log_OC.d(TAG + " #" + mInstanceNumber, "Cookies at request (" + when + ") (" + counter++ + "): " + headers[i].getValue()); header.getValue()); } } if (counter == 0) { Log_OC.d(TAG + " #" + mInstanceNumber, "No cookie at request (" + when + ")"); } Loading @@ -414,10 +416,9 @@ public class OwnCloudClient extends HttpClient { private void logSetCookiesAtResponse(Header[] headers) { int counter = 0; for (int i=0; i<headers.length; i++) { if (headers[i].getName().toLowerCase().equals("set-cookie")) { Log_OC.d(TAG + " #" + mInstanceNumber, "Set-Cookie (" + counter++ + "): " + headers[i].getValue()); for (Header header : headers) { if ("set-cookie".equals(header.getName().toLowerCase(Locale.US))) { Log_OC.d(TAG + " #" + mInstanceNumber, "Set-Cookie (" + counter++ + "): " + header.getValue()); } } if (counter == 0) { Loading src/com/owncloud/android/lib/common/network/BearerAuthScheme.java +4 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ package com.owncloud.android.lib.common.network; import java.util.Map; import com.owncloud.android.lib.common.utils.Log_OC; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpMethod; Loading @@ -34,7 +34,8 @@ import org.apache.commons.httpclient.auth.AuthenticationException; import org.apache.commons.httpclient.auth.InvalidCredentialsException; import org.apache.commons.httpclient.auth.MalformedChallengeException; import com.owncloud.android.lib.common.utils.Log_OC; import java.util.Locale; import java.util.Map; Loading Loading @@ -262,7 +263,7 @@ public class BearerAuthScheme implements AuthScheme /*extends RFC2617Scheme*/ { if (mParams == null) { return null; } return (String) mParams.get(name.toLowerCase()); return (String) mParams.get(name.toLowerCase(Locale.US)); } /** Loading Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -60,8 +60,8 @@ android { abortOnError false htmlReport true htmlOutput file("$project.buildDir/reports/lint/lint.html") disable 'MissingTranslation' } defaultConfig { minSdkVersion 14 targetSdkVersion 28 Loading
lint.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="InvalidPackage"> <ignore path="**/jackrabbit-webdav-2.12.6.jar" /> </issue> </lint>
sample_client/lint.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="InvalidPackage"> <ignore path="**/jackrabbit-webdav-2.12.6.jar" /> </issue> </lint>
src/com/owncloud/android/lib/common/OwnCloudClient.java +12 −11 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import org.apache.commons.httpclient.params.HttpParams; import java.io.IOException; import java.io.InputStream; import java.util.Locale; public class OwnCloudClient extends HttpClient { Loading Loading @@ -383,13 +384,14 @@ public class OwnCloudClient extends HttpClient { private void logCookiesAtRequest(Header[] headers, String when) { int counter = 0; for (int i=0; i<headers.length; i++) { if (headers[i].getName().toLowerCase().equals("cookie")) { for (Header header : headers) { if ("cookie".equals(header.getName().toLowerCase(Locale.US))) { Log_OC.d(TAG + " #" + mInstanceNumber, "Cookies at request (" + when + ") (" + counter++ + "): " + headers[i].getValue()); header.getValue()); } } if (counter == 0) { Log_OC.d(TAG + " #" + mInstanceNumber, "No cookie at request (" + when + ")"); } Loading @@ -414,10 +416,9 @@ public class OwnCloudClient extends HttpClient { private void logSetCookiesAtResponse(Header[] headers) { int counter = 0; for (int i=0; i<headers.length; i++) { if (headers[i].getName().toLowerCase().equals("set-cookie")) { Log_OC.d(TAG + " #" + mInstanceNumber, "Set-Cookie (" + counter++ + "): " + headers[i].getValue()); for (Header header : headers) { if ("set-cookie".equals(header.getName().toLowerCase(Locale.US))) { Log_OC.d(TAG + " #" + mInstanceNumber, "Set-Cookie (" + counter++ + "): " + header.getValue()); } } if (counter == 0) { Loading
src/com/owncloud/android/lib/common/network/BearerAuthScheme.java +4 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ package com.owncloud.android.lib.common.network; import java.util.Map; import com.owncloud.android.lib.common.utils.Log_OC; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpMethod; Loading @@ -34,7 +34,8 @@ import org.apache.commons.httpclient.auth.AuthenticationException; import org.apache.commons.httpclient.auth.InvalidCredentialsException; import org.apache.commons.httpclient.auth.MalformedChallengeException; import com.owncloud.android.lib.common.utils.Log_OC; import java.util.Locale; import java.util.Map; Loading Loading @@ -262,7 +263,7 @@ public class BearerAuthScheme implements AuthScheme /*extends RFC2617Scheme*/ { if (mParams == null) { return null; } return (String) mParams.get(name.toLowerCase()); return (String) mParams.get(name.toLowerCase(Locale.US)); } /** Loading