Jetzt kostenlos registrieren. Mitglieder surfen ohne Werbung auf Android-Hilfe.de!
Zurück   Android-Hilfe.de > Android Developer > Android App Entwicklung

Illegal path attribute.. HTTPS

Das Thema "Illegal path attribute.. HTTPS" befindet sich unter Android App Entwicklung auf Android-Hilfe.de.


Antwort

 

Themen-Optionen Ansicht
Alt 28.09.2011, 15:12   #1 (permalink)
Neuer Benutzer

Registriert seit: 18.09.2011
Beiträge: 10
Abgegebene Danke: 0
Erhielt 0 Danke für 0 Beiträge
Standard Illegal path attribute.. HTTPS

Hallo Leute,

Momentan arbeite Ich an einer App um mich ueber eine HTTPS Seite einzuloggen.
Dabei werden alle Zerificate erlaubt, Ich bekommen aber folgende Fehler im Logcat:
HTML-Code:
WARN/ResponseProcessCookies(4911): Cookie rejected: "BasicClientCookie[version=0,name=ObFormLoginCookie,domain=www.xxxx.com,path=/web/restricted/form?formelement=512663,expiry=null]". Illegal path attribute "/web/restricted/form?formelement=512663". Path of origin: "/web/restricted/form/formelement=512663"
Kan mich da bitte Jemand weiterhelfen um dies zu loesen?
Danke euch.

Mein Code:
Code:
 
DefaultHttpClient client = 
null;
try {
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());
trustStore.load(null, null);
SSLSocketFactory sf = new CustomSSLSocketFactory(trustStore);
sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
// Setting up parameters
HttpParams params =
new BasicHttpParams();
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
HttpProtocolParams.setContentCharset(params, "utf-8");
params.setBooleanParameter("http.protocol.expect-continue", false);
// Setting timeout
HttpConnectionParams.setConnectionTimeout(params, 5000);
HttpConnectionParams.setSoTimeout(params, 5000);
// Registering schemes for both HTTP and HTTPS
SchemeRegistry registry =
new SchemeRegistry();
registry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
registry.register(new Scheme("https", sf, 443));
// Creating thread safe client connection manager
ClientConnectionManager ccm =
new ThreadSafeClientConnManager(params, registry);
// Creating HTTP client
client =
new DefaultHttpClient(ccm, params);
// Registering user name and password for authentication
client.getCredentialsProvider().setCredentials(
new AuthScope(null, -1), // Input user and password
new UsernamePasswordCredentials(username, password));
} catch (Exception e) {
client = new DefaultHttpClient();
}
final String url = "https://www.xxxx.com/web/restricted/form/formelement=512663";
HttpPost httpPost = new HttpPost(url);
HttpResponse response = client.execute(httpPost);
Log.w("Response ","Status line : "+ response.toString()); // 200 if successfully logged in
Lucius1972 ist offline   Mit Zitat antworten
Alt 28.09.2011, 15:51   #2 (permalink)
Ehren-Mitglied
 
Benutzerbild von Thyrion

Modell: HTC Desire

Registriert seit: 21.07.2009
Beiträge: 9.876
Abgegebene Danke: 93
Erhielt 1.785 Danke für 1.389 Beiträge
Standard AW: Illegal path attribute.. HTTPS

Schau dir mal den Pfad deines Elements und den Pfad des Cookies an. Die stimmen nicht überein und daher wird aus Sicherheitsgründen die Warnung geworfen:

"/web/restricted/form?formelement=512663" (value)
und
"/web/restricted/form/formelement=512663" (Path of origin)


Zitat:
Zitat von RFC 2109
4.3.2 Rejecting Cookies

To prevent possible security or privacy violations, a user agent
rejects a cookie (shall not store its information) if any of the
following is true:

* The value for the Path attribute is not a prefix of the request-
URI.
...


Ich vermute auch mal, dass du hier ein ? statt / setzen wolltest, oder?
-> final String url = "https://www.xxxx.com/web/restricted/form/formelement=512663";
__________________
Thyrion
Siemens C25 / Nokia 6510 / SE K700i / Samsung Galaxy I7500 (rooted) / HTC Desire (rooted / S-ON)

Kein Support via PN und E-Mail. Bitte das Forum nutzen!
Traut Euch, die Suche beißt nicht! - Android-Hilfe.de - Forenregeln - Eine Bitte an alle Android-Neulinge...

Kein Punkt? Kein Komma? Keine Hilfe!
schreibst du alles klein? dann sind deine shift-tasten aber ganz schön einsam. DRÜCK sie mal öfter!
Thyrion ist offline   Mit Zitat antworten
Alt 28.09.2011, 16:14   #3 (permalink)
Neuer Benutzer

Registriert seit: 18.09.2011
Beiträge: 10
Abgegebene Danke: 0
Erhielt 0 Danke für 0 Beiträge
Standard AW: Illegal path attribute.. HTTPS

Hi Thyrion,

Erstmal danke fuer deinen Hint aber auch dies klappt nicht.
Ob Ich nun
https://www.xxxx.com/web/restricted/form/formelement=512663 oder https://www.xxxx.com/web/restricted/form?formelement=512663 setze noch immer der selbe Fehler.
Ich bastle schon Tage um einen korrekten Einlog zu bekommen aber es will nicht klappen.
Zum verzweifeln..
Kann es irgendwo anders dran liegen..?

Gruss,
Lucius1972 ist offline   Mit Zitat antworten
Alt 28.09.2011, 16:34   #4 (permalink)
Neuer Benutzer

Registriert seit: 18.09.2011
Beiträge: 10
Abgegebene Danke: 0
Erhielt 0 Danke für 0 Beiträge
Standard AW: Illegal path attribute.. HTTPS

Hallo Thyrion,

Wenn Ich es so im Browser eingebe klappt der Login:
https://www.xxxx.com/web/restricted/...eb4e486abc4007

Ich nehme an swfrmsig=545616f1e29bc538843ec7aa908122b1e47225386 d4b5e407f126d339d62becf06da22df9bf4261868769722e20 2fbb60f2486b19002b518d01e507464ebbaa6c7799cd17ab04 e1345e620d16c8159c8daeb4e486abc4007
ist mein Cookie?

Gruss,
Lucius1972 ist offline   Mit Zitat antworten
Alt 28.09.2011, 18:35   #5 (permalink)
Neuer Benutzer

Registriert seit: 18.09.2011
Beiträge: 10
Abgegebene Danke: 0
Erhielt 0 Danke für 0 Beiträge
Standard AW: Illegal path attribute.. HTTPS

Ist da keiner der weiterhelfen kann?
Vielleicht uebersehe Ich ja was..
Lucius1972 ist offline   Mit Zitat antworten
Antwort

Stichworte
-

Themen-Optionen
Ansicht


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
Fehlermeldung: adview missing required XML attribute "adSize" baerchen Cat StarGate Forum 1 23.07.2011 20:54
N64 Emulator illegal? Android-2.2 Sonstige Apps & Widgets 6 24.06.2011 15:02
Neue PATH-Variablen für das SDK r08 + Java JDK LordSeth Root / Hacking / Modding für T-Mobile G1 4 14.12.2010 16:06
I Music Illegal?! I7500White Samsung Galaxy (I7500) Forum 24 26.09.2010 21:48
Entbranden als Dienstleistung illegal? mastachief Smalltalk und Offtopic 5 14.07.2010 09:10




Du liest gerade: "Illegal path attribute.. HTTPS" unter "Android App Entwicklung" auf Android-Hilfe.de.


Powered by vBulletin®
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
© Android-Hilfe.de 2012 - All rights reserved.