Re: Method not supported problem
Vjacheslav Chekushin <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | LMT |
| Message-ID | <[email protected]> |
Hi, Igor. I don't know about device. I can't see it from log file. It may be not real device, but some emulator. Igor Ivoilov wrote: > +1 from me > What device does generate such request? > > > -----Original Message----- > > From: Vjacheslav Chekushin [mailto:[email protected]] > > Sent: Thursday, January 09, 2003 9:22 AM > > To: devel > > Subject: Method not supported problem > > > > > > If get PDU contain HTTP method which not supported, then > > Kannel panics and > > restarts. > > > > Here is problem description: > > > > wap-appl.c: > > error(0, "WSP: Method %s not supported.", > > octstr_get_cstr(method)); > > content_body = octstr_create(""); > > !!!! resp_headers = NULL; > > ret = HTTP_NOT_IMPLEMENTED; > > octstr_destroy(request_body); > > return_reply(ret, content_body, resp_headers, > > client_SDU_size, > > event, session_id, url, x_wap_tod, > > actual_headers); > > wap_event_destroy(event); > > http_destroy_headers(actual_headers); > > > > in return_reply() we call > > http_header_get_content_type(headers, &content.type, &content.charset) > > > > And assertion gw_assert(headers != NULL) force gateway to PANIC. > > > > How it looks in wapbox.log: > > 2003-01-08 18:20:39 [2] DEBUG: Connectionless Get request received. > > 2003-01-08 18:20:39 [7] ERROR: WSP: Method TRACE not supported. > > 2003-01-08 18:20:39 [7] PANIC: gwlib/http.c:2620: > > http_header_get_content_type: > > Assertion `headers != NULL' failed. > > > > I think we must change > > resp_headers = NULL; > > to > > resp_headers = http_create_empty_headers(); > > > > -- > > Vjacheslav Chekushin mailto:[email protected] > > Latvian Mobile Phone Company http://www.lmt.lv > > > > > -- Vjacheslav Chekushin mailto:[email protected] Latvian Mobile Phone Company http://www.lmt.lv