WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
16172
Webkit based browsers are no longer able to properly handle form submission in the Siemens 6520 based routers used by Aliant (Canadian ISP)
https://bugs.webkit.org/show_bug.cgi?id=16172
Summary
Webkit based browsers are no longer able to properly handle form submission i...
Tim Dove
Reported
2007-11-28 07:26:07 PST
As this issue is with the web interface of a router, I have saved the affected page as a web-archive and uploaded it to a personal webspace. Model: Siemens / Efficient Networks Speedstream 6250 DSL Modem/Router. ISP: Bell-Aliant On any interface pages that have multiple buttons, Safari v3.0.4 and any other current webkit based browsers (I have tested Safari v3.0.4 for Mac/PC, Shiira, and OmniWeb) are unable to load the page properly when you click on the button to advance to the next page. The returned error is "Form Input - Error: Invalid Submission Value". IE and gecko based browsers do not experience this problem. Safari v2 did not experience this problem. This is impacting new mac-based customers who are thus unable to set up their service.
Attachments
Safari Packet Dump
(42.18 KB, application/octet-stream)
2007-11-30 18:57 PST
,
Tim Dove
no flags
Details
Camino Packet Dump
(32.05 KB, application/octet-stream)
2007-11-30 18:58 PST
,
Tim Dove
no flags
Details
Safari 2.0.4 Packet Dump
(23.02 KB, application/octet-stream)
2007-12-03 13:04 PST
,
Tim Dove
no flags
Details
Test script
(1.45 KB, text/plain)
2008-01-28 08:18 PST
,
David Kilzer (:ddkilzer)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Tim Dove
Comment 1
2007-11-28 07:29:04 PST
Correction, Router Model # is Siemens 6520, not 6250.
Mark Rowe (bdash)
Comment 2
2007-11-28 21:16:01 PST
<
rdar://problem/5619270
>
David Kilzer (:ddkilzer)
Comment 3
2007-11-28 23:18:17 PST
Tim, do you know if this is a problem with Safari/WebKit submitting forms (sending HTTP requests) that the routers can't handle, or are the routers sending back HTTP responses that Safari/WebKit can't handle? May be related to
Bug 16082
.
Mark Rowe (bdash)
Comment 4
2007-11-29 00:15:04 PST
I'm not sure what the chances are of us getting our hands on such a router configuration, so I think a packet dump may be required here to assist with debugging.
Tim Dove
Comment 5
2007-11-29 05:02:52 PST
Due to the nature of the issue occuring in the router's interface (and thus not a publicly accessible website) I saved one of the error prone pages as a web-archive, and uploaded it to the following:
http://www3.ns.sympatico.ca/guinness/Test/Aliant%20High-Speed%20Networking.webarchive
I then tested the web-archive to ensure that the error would still occur, and it did. The issue is with the back/cancel/next buttons at the bottom. The error only occurs when multiple buttons are present. On pages that only have one button, they work fine. David: Unfortunately my technical knowledge is somewhat limited. The reason I am the one investigating this is because some friends of mine who work in the technical support group remember that I've used macs longer than most, and none of them could figure out what the problem is. They don't even have a mac system to test this on. As far as where the error is occuring, based upon the response, I believe it is an issue of Safari/Webkit submitting HTTP requests that the router either cannot handle, or interprets as invalid. The message "Form Input - Error: Invalid Submission Value" is generated by the router. Now, I realize that it is entirely possible that this error is caused by poor coding on the router. However, as it worked fine in webkit before v3, and still works fine in gecko/IE, I figured it would be worth submitting.
David Kilzer (:ddkilzer)
Comment 6
2007-11-30 03:41:14 PST
(In reply to
comment #5
)
> Due to the nature of the issue occuring in the router's interface (and thus not > a publicly accessible website) I saved one of the error prone pages as a > web-archive, and uploaded it to the following: > >
http://www3.ns.sympatico.ca/guinness/Test/Aliant%20High-Speed%20Networking.webarchive
> > I then tested the web-archive to ensure that the error would still occur, and > it did. The issue is with the back/cancel/next buttons at the bottom. The error > only occurs when multiple buttons are present. On pages that only have one > button, they work fine.
Thanks for posting this! I don't think it may be helpful without access to the router, though. (The webarchive never seems to finish loading after opening it.)
> David: Unfortunately my technical knowledge is somewhat limited. The reason I > am the one investigating this is because some friends of mine who work in the > technical support group remember that I've used macs longer than most, and none > of them could figure out what the problem is. They don't even have a mac system > to test this on. As far as where the error is occuring, based upon the > response, I believe it is an issue of Safari/Webkit submitting HTTP requests > that the router either cannot handle, or interprets as invalid.
Could they try testing with Safari for Windows to see if that has the same issue?
http://www.apple.com/safari/
> The message "Form Input - Error: Invalid Submission Value" is generated by the > router. > > Now, I realize that it is entirely possible that this error is caused by poor > coding on the router. However, as it worked fine in webkit before v3, and still > works fine in gecko/IE, I figured it would be worth submitting.
Yes, we'd still like to know about it! Thanks for submitting this bug report. Another thing you could do is to capture the packets sent to/from the router using a command like this from the terminal (requires you to type your password to become Administrator): sudo tcpdump -s 0 -w packets.tcpdump -i en0 This assumes that "en0" is the ethernet interface your Mac is using (en0 is probably the wired ethernet port while en1 is wireless; run "ifconfig -a" and look for the interface with a valid IP address). It would be helpful to have one run for Safari 3 that fails, and one for Firefox that works (from submitting the same form on the same page). (Make sure to rename "packets.tcpdump" in between runs.) Also note that this command will log ALL NETWORK TRAFFIC, so don't log in to another site while the command is running. If you'd prefer not to post the packet dumps on Bugzilla, let me know.
Tim Dove
Comment 7
2007-11-30 04:40:59 PST
David, I'll be sure to run the packet dump tonight when I get home. I'm on the east coast, so that should still be fairly early to you. When tech support first advised me of this being a Safari issue, the first thing I did was test the router interface on the following browsers: Safari v3.0.4 (Build 523.12) on OS X 10.4.11 Safari v3.0.4 (Build 523.12.9) on WinXP SP2 Shiira v2.2 (Build 070718) on OS X 10.4.11 OmniWeb v5.6 (Build 613.0.93354) on OS X 10.4.11 Camino v1.5.3 on OS X 10.4.11 Firefox v2.0.0.9 on OS X 10.4.11 Firefox v2.0.0.10 on WinXP SP2 IE v6.0.2900.2180.xpsp_sp2_gdr on WinXP SP2 I wanted to see if there were any commonalities. When I saw that the same error occurred in both Safari for mac and Safari for windows, as well as Shiira and OmniWeb, but not on any other browser, that's what led me to believe that webkit was the common denominator and thus led me here. Thanks again for looking into this. I'll be posting that packet dump as soon as I'm able to. Tim
Tim Dove
Comment 8
2007-11-30 18:57:36 PST
Created
attachment 17618
[details]
Safari Packet Dump
Tim Dove
Comment 9
2007-11-30 18:58:11 PST
Created
attachment 17619
[details]
Camino Packet Dump
Tim Dove
Comment 10
2007-11-30 19:01:27 PST
I have posted the two packet dumps as requested. I also tried to see if the router would allow remote login for administration, unfortunately it does not seem to authenticate properly when attempting this. If you require though, I can see if I can find a way around this. Tim
David Kilzer (:ddkilzer)
Comment 11
2007-12-02 19:08:56 PST
(In reply to
comment #3
)
> Tim, do you know if this is a problem with Safari/WebKit submitting forms > (sending HTTP requests) that the routers can't handle, or are the routers > sending back HTTP responses that Safari/WebKit can't handle? > > May be related to
Bug 16082
.
The content-type for the POST is application/x-www-form-urlencoded, so this isn't related to
Bug 16082
.
David Kilzer (:ddkilzer)
Comment 12
2007-12-02 19:34:16 PST
Tim, please note that you'll want to change you username/password for the router since it may be easily decoded using the "Authorization: Basic" header. Safari POST: POST /wrlswizard.cgi HTTP/1.1 Accept-Language: en Accept-Encoding: gzip, deflate Referer:
http://192.168.2.1/wrlswizardj.cgi?src=ADVANCED
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12 Content-Type: application/x-www-form-urlencoded Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Authorization: Basic [REMOVED] Content-Length: 101 Connection: keep-alive Host: 192.168.2.1 wirelessNewId=Cardhu&wirelessNewChannel=1&wirelessNewSec=2&wirelessNewIdBcst=t&wrlsstep=2&BtnVal=NEXT Camino POST: POST /wrlswizard.cgi HTTP/1.1 Host: 192.168.2.1 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.4) Gecko/20070509 Camino/1.5 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-US,en;q=0.9,ja;q=0.9,fr;q=0.8,de;q=0.8,es;q=0.7,it;q=0.6,nl;q=0.6,sv;q=0.5,nb;q=0.4,da;q=0.4,fi;q=0.3,pt;q=0.3,zh-Hans;q=0.2,zh-Hant;q=0.1,ko;q=0.1 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer:
http://192.168.2.1/wrlswizardj.cgi?src=ADVANCED
Authorization: Basic [REMOVED] Content-Type: application/x-www-form-urlencoded Content-Length: 101 wirelessNewId=Cardhu&wirelessNewChannel=1&wirelessNewSec=2&wirelessNewIdBcst=t&wrlsstep=2&BtnVal=NEXT I don't see anything suspiciously different between these two post requests, so I'm inclined to think this is a server-side issue. Some differences I noticed: - Accept-Charset header in Camino POST but not in Safari POST. - Accept-Encoding has a space in Safari POST, but not in Camino POST. - Accept-Language header is much longer for Camino POST than Safari POST. - Keep-Alive header in Camino POST but not in Safari POST. - User-Agent differs (obviously).
David Kilzer (:ddkilzer)
Comment 13
2007-12-02 19:39:41 PST
(In reply to
comment #12
)
> Some differences I noticed: > - Accept-Charset header in Camino POST but not in Safari POST. > - Accept-Encoding has a space in Safari POST, but not in Camino POST. > - Accept-Language header is much longer for Camino POST than Safari POST. > - Keep-Alive header in Camino POST but not in Safari POST. > - User-Agent differs (obviously).
One thing you could try, Tim, is to use change the User Agent to Firefox from the "Debug", "User Agent" menu in Safari to see if that magically fixes the issue.
http://www.macosxhints.com/article.php?story=20030110063041629
David Kilzer (:ddkilzer)
Comment 14
2007-12-02 19:54:16 PST
Tim, do you have a system with Safari 2.0.4 on it to test? If so and it does work with the router, could you capture packets for it as well? Thanks!
Tim Dove
Comment 15
2007-12-03 13:04:50 PST
Created
attachment 17684
[details]
Safari 2.0.4 Packet Dump
Tim Dove
Comment 16
2007-12-03 13:08:23 PST
David, I have posted a packet dump from Safari 2.0.4 (Build 419.3) which does work fine with the router. Let me know if there is anything else that you need. Thanks for the advice on changing the admin info on the router. I'm not too worried right now as it's a dedicated DSL connection for our IPTV service, and not actually used for internet traffic, but I will be updating the information once I'm done using the connection for testing purposes. Regards, Tim
Tim Dove
Comment 17
2007-12-03 13:29:31 PST
I tried the debug menu, and changed the user agent to various options (Safari 2.0.4, Firefox, Netscape, MSIE for windows) and none of them made any difference. Same error occurred. Tim
David Kilzer (:ddkilzer)
Comment 18
2007-12-04 02:20:35 PST
Safari 2.0.4 packet dump of POST (did you capture packets submitting a form from the same web page as the other traces--I would have thought there would have been more form data?): POST /wrlswizard.cgi HTTP/1.1 Accept: */* Accept-Language: en Accept-Encoding: gzip, deflate Referer:
http://192.168.2.1/wrlswizard.cgi
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419.3 (KHTML, like Gecko) Safari/419.3 Content-Type: application/x-www-form-urlencoded Authorization: Basic [REMOVED] Content-Length: 37 Connection: keep-alive Host: 192.168.2.1 wrlsdisabled=0&wrlsstep=1&BtnVal=NEXT Nothing jumps out at me as to why Safari 2.0.4 would work but Safari 3 would not. Tim, have you contacted the company about using Safari 3 for Windows? Surely they have a Windows PC they can install Safari for Windows on to test.
Tim Dove
Comment 19
2007-12-04 19:59:01 PST
David, I believe that the packet dump on Safari 2.0.4 was while performing the exact same action as the previous two, but I can try it again to be sure. It won't be until tomorrow as I have to borrow a laptop that has 2.0.4 on it. In terms of contacting the company, I work for Aliant and have been working with the technical support group on this. We did some testing with Safari v3 for windows, to confirm the issue. We then contacted Siemens Canada regarding the error, and unfortunately their response was simply 'we don't support macs', and they don't support Safari for windows either. I am also in the process of trying to get in touch with a contact at Bell Canada, as they are a partner ISP and use the same router model as us, but with a firmware branded for them. From my understanding, it's the same basic underlying firmware, however slightly modified for each ISP. I have yet to hear back on that front. I understand how hard it can be to troubleshoot without having direct access to the router. I have tried playing around with port forwarding to enable you to log into the router by 'bouncing' it off one of the internal macs (as the router does not support direct remote admin) but haven't had any luck getting that working (I'm not that familiar with port/ip forwarding via ipfw/netd). Would it be of any use if I set up a VNC connection to a guest account that had access to the router? Let me know, as this would not be a problem. Regards, Tim
Alexey Proskuryakov
Comment 20
2007-12-25 08:04:42 PST
(In reply to
comment #19
)
> Would it be of any use if I set up a VNC connection to a guest account that had > access to the router? Let me know, as this would not be a problem.
Yes, that way we'd be able to precisely isolate which header causes these problems. Basically, I'd just replicate Safari's request with command-line curl, and start making it closer to the Firefox one, until it starts working.
Tim Dove
Comment 21
2008-01-10 06:34:51 PST
Now that the Holidays are over, I can see about setting up that VNC connection. Let me know which day would be good to have it set up for (giving me about a day's notice so that I can ensure that the machine is left up and running) and I can email the login details to you directly. This issue has been given higher priority with us now, due to an increase in our mac customer base. Regards, Tim
David Kilzer (:ddkilzer)
Comment 22
2008-01-28 08:18:33 PST
Created
attachment 18736
[details]
Test script Hi Tim, the attached script will attempt to reproduce the Safari 3/WebKit behavior by replaying the same headers. (In testing, I see an extra "TE:" header and the "Connection" header has more than just "keep-alive" on it, but I wanted to get this script to you for testing first.) 1. Edit the script to change the username/password and IP address. 2. Try running the script. It should say the login failed (which is expected). Assuming that the script reproduces the failure, some more things you can try: - Change the headers to match Firefox, and verify that the script successfully logs in. - Change the headers back to match Safari 3, then start changing individual header values (working towards matching Firefox) until the script successfully logs in. Please describe which header(s) you had to change if you find a set that works. Note that if the Perl script doesn't work at all (or you don't want to install some of the modules it requires), you can "fall back" to using plain old telnet and then using copy/paste to try out a set of headers: $ telnet 192.168.2.1 80 POST /wrlswizard.cgi HTTP/1.1 Accept-Language: en Accept-Encoding: gzip, deflate Referer:
http://192.168.2.1/wrlswizardj.cgi?src=ADVANCED
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12 Content-Type: application/x-www-form-urlencoded Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Authorization: Basic [REMOVED] Content-Length: 101 Connection: keep-alive Host: 192.168.2.1 wirelessNewId=Cardhu&wirelessNewChannel=1&wirelessNewSec=2&wirelessNewIdBcst=t&wrlsstep=2&BtnVal=NEXT NOTE: Make sure to fix up the "Authorization" header, and make sure to hit enter twice after the "wirelessNewId=..." line.
Alexey Proskuryakov
Comment 23
2008-04-19 00:29:50 PDT
Closing as INVALID, as we never received the information necessary to proceed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug