tirsdag 23. november 2004, 10:16, skrev Aarno Syvänen:
> Yep, this really seems to be a bug. Will check it, thanks for
> reporting.

I modified wap_push_ppg.c (see attachment) to accept the header, but now I get 
the following;

2004-11-23 12:54:46 [9436] [14] DEBUG: PPG: ip_allowed_by_ppg: ip found from 
allowed list
2004-11-23 12:54:46 [9436] [14] DEBUG: we have an username and a password in 
authorization header
2004-11-23 12:54:46 [9436] [14] INFO: PPG: Accept request </wappush> from 
<127.0.0.1>
2004-11-23 12:54:46 [9436] [14] WARNING: PPG: get_mime_boundary: no boundary 
specified
2004-11-23 12:54:46 [9436] [14] WARNING: PPG: No MIME boundary, the request 
unacceptable
2004-11-23 12:54:46 [9436] [14] DEBUG: PPG: send_bad_message_response: telling 
pi
2004-11-23 12:54:46 [9436] [14] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
2004-11-23 12:54:46 [9436] [14] PANIC: gwlib/octstr.c:2340: seems_valid_real: 
Assertion `ostr->len + 1 <= ostr->size' failed. (Called from 
gwlib/octstr.c:317:octstr_destroy.)
2004-11-23 12:54:46 [9436] [14] PANIC: wapbox(gw_panic+0x1a9) [0x80e7b91]
2004-11-23 12:54:46 [9436] [14] PANIC: wapbox [0x80ef645]
2004-11-23 12:54:46 [9436] [14] PANIC: wapbox(octstr_destroy+0x24) [0x80ea20c]
2004-11-23 12:54:46 [9436] [14] PANIC: wapbox [0x8077077]
2004-11-23 12:54:46 [9436] [14] PANIC: wapbox [0x80dc8f8]
2004-11-23 12:54:46 [9436] [14] PANIC: /lib/libpthread.so.0 [0x4007810c]
2004-11-23 12:54:46 [9436] [14] PANIC: /lib/libc.so.6(__clone+0x3a) 
[0x4027160a]
2004-11-23 12:54:46 [9432] [10] DEBUG: HTTP: Destroying HTTPClient area 
0x825b808.
2004-11-23 12:54:46 [9432] [10] DEBUG: HTTP: Destroying HTTPClient for 
`127.0.0.1'.

-- 
--------------------------------
Arne K. Haaje   | www.drlinux.no
Bregneveien 9   | www.drx.no
1825 Tomter     | M: 92 88 44 66
--------------------------------
--- /tmp/kannel-snapshot/gw/wap_push_ppg.c	2004-06-20 20:26:16.000000000 +0200
+++ wap_push_ppg.c	2004-11-23 12:27:53.000000000 +0100
@@ -2895,16 +2895,13 @@
         goto error;
     }
     
-    if (!type_is(*content_header, "multipart/related")) {
-        goto error;
+    if (type_is(*content_header, "multipart/related") || type_is(*content_header, "application/xml") || type_is(*content_header, "application/x-www-form-urlencoded") || type_is(*content_header, "multipart/form-data")) {
+        return 1;
     }
-
-    if (!type_is(*content_header, "application/xml")) {
+    else {
         goto error;
     }
 
-    return 1;
-
 error:
     warning(0, "PPG: headers_acceptable: got unacceptable push headers");
     return 0;

Reply via email to