Opened 15 years ago

Last modified 3 years ago

#5972 new bug

DD-WRT administration interface not rendered properly. javascript issues too

Reported by: saivert Owned by: stippi
Priority: normal Milestone: R1
Component: Kits/Web Kit Version: R1/Development
Keywords: render issue Cc: anevilyak
Blocked By: Blocking:
Platform: x86

Description (last modified by pulkomandy)

DD-WRT is a nice third-party firmware interface for a host of cheap wireless routers, most prominently Broadcom based routers like Linksys WRT54G. It has a nice web based administration interface, but this interface is not rendered properly in WebPositive build hrev488 on Haiku r1alpha2.

Provided is screenshot with BeZillaBrowser used as reference since it renders the interface properly and also handles the JavaScript used on the page.

Attachments (3)

dd-wrt_webpositive_bezilla.png (148.5 KB ) - added by saivert 15 years ago.
screenshot for comparison
MerlinWebPositiveGlitches.png (153.1 KB ) - added by AGMS 6 years ago.
Still have graphic glitches on a router web interface, this time Merlin. Some things don't render, tabs like the WiFi Hz only show when you wave the mouse over them.
MerlinWorking.png (219.7 KB ) - added by AGMS 6 years ago.
And here's what the Merlin interface looks like in Firefox.

Download all attachments as: .zip

Change History (24)

by saivert, 15 years ago

screenshot for comparison

comment:1 by michaelvoliveira, 15 years ago

Please report this bug at

http://mmlr.dyndns.org/timeline

Someone please set it to invalid

comment:2 by stippi, 15 years ago

It's ok to report WebPositive issues here.

But from the screenshot, I don't see what the big problem is. Some frames are missing, but the interface looks functional. For all I know, it could be a problem in the page and not WebPositive. Also, could you explain what is non-functional about the Javascript? How about other WebKit browsers, do they all render this interface "correctly"?

comment:3 by saivert, 15 years ago

Chrome, Opera and Internet Explorer handles the DD-WRT web interface ok. Everything works.

The page has some CSS for the FIELDSET tags (the groupbox like elements on the page) which only looks as it is supposed to on Firefox/BeZillaBrowser.

Following JavaScript snippet is the function that is called by the "Add" button on the page. This sets some form (identified by F) values then submits the form.

function forward_add_submit(F) {
F.change_action.value="gozila_cgi";
F.submit_type.value = "add_forward_spec";
apply(F);
}

This is the "apply" function:

function apply(form, text, delay) {
	form.submit();
	for (i = 0; i < form.elements.length; i++) {
		if(defined(form.elements[i].disabled)) 
			form.elements[i].disabled = true;
	}
	if (form.contents) document.getElementById("contents").style.color = '#999999';
}

so it seems like WebPositive's handling of the form submit from javascript is the culprit here. When that is executed it comes with an error message:

Error loading http://192.168.1.1/apply.cgi Server returned norhing (no headers, no data)

The other browser happily submit the form when called from javascript.

comment:4 by saivert, 14 years ago

This bug is still present in build hrev515.

comment:5 by mmadia, 12 years ago

Hi. Our WebKit port (and thus WebPositive) was updated in July. Could you retest this in a new nightly image and report back? http://www.haiku-files.org/haiku/development Thanks!

comment:6 by pulkomandy, 11 years ago

Our WebKit port was updated again last week. Could you retest this in a new nightly image and report back? ​http://www.haiku-files.org/haiku/development Thanks!

comment:7 by anevilyak, 11 years ago

Cc: anevilyak added
Version: R1/alpha2R1/Development

Will check tonight, my router runs this as well. Since it was primarily AJAX issues similar to those seen with GMail, I suspect this is likely to be resolved though.

comment:8 by anevilyak, 11 years ago

The interface renders properly from a visual standpoint, but something's still wrong as far as actually handling it goes. Clicking any of its tabs to go to the corresponding configuration subsection triggers the appropriate http digest authentication dialog, but after one enters credentials, Web+ simply sits there waiting, seemingly for a response, until finally failing with a network read error several minutes later.

comment:9 by pulkomandy, 11 years ago

There may be bugs in our http auth code. It was only tested with dev.haiku-os.org so far.

comment:10 by pulkomandy, 10 years ago

Description: modified (diff)

Does hrev47543 improve the situation?

comment:11 by saivert, 10 years ago

I have no immediate way to verify this as I no longer use DD-WRT.

comment:12 by anevilyak, 10 years ago

Description: modified (diff)

Will give it a try after work.

comment:13 by anevilyak, 10 years ago

Seems there's still an issue with this one: while browsing through the interface generally works, attempting to apply/save settings winds up hitting the interface's apply.cgi and then stopping dead without actually executing it properly. Tested with hrev47561 and DD-WRT v24.

Last edited 10 years ago by anevilyak (previous) (diff)

comment:14 by pulkomandy, 10 years ago

Description: modified (diff)

Does hrev47586 (and especially a1cce97) help with this remaining issue? I'm only guessing here, but this fixed some other cases of stalling requests.

comment:15 by anevilyak, 10 years ago

Description: modified (diff)

Doesn't appear to have made a difference, unfortunately. Web+ does indicate that the apply.cgi request finished both before and after that change, but simply stops there. Is there any network traffic tracing that could be enabled or whatnot, that might yield a better picture of what's going on?

comment:16 by pulkomandy, 10 years ago

Description: modified (diff)

Yes, building the network kit in debug mode will make the HTTP code trace all requests to the standard output. This may provide more hints as to what is going on.

comment:17 by pulkomandy, 9 years ago

Description: modified (diff)

Hi, If this is still a problem, a capture of HTTP requests as suggested in the previous comment would be helpful.

by AGMS, 6 years ago

Still have graphic glitches on a router web interface, this time Merlin. Some things don't render, tabs like the WiFi Hz only show when you wave the mouse over them.

by AGMS, 6 years ago

Attachment: MerlinWorking.png added

And here's what the Merlin interface looks like in Firefox.

comment:18 by sneaky, 6 years ago

http://demoui.asus.com/ has a merlin UX set up. Not at haiku box right now but I think it was glitching where there's an iframe and a bunch of fancy css3 or maybe 2.1 stuff (corners, shadows, lots of heavy bits).

comment:19 by sneaky, 6 years ago

Tried to attach a DD-WRT VirtualBox VM but it was larger than 5MB size limit. I made it with an x86 or x86_64 public vga image that you can get from their website, in any event: https://dd-wrt.com/support/other-downloads/?path=betas%2F2019%2F04-25-2019-r39654%2Fx86%2F

comment:20 by pulkomandy, 6 years ago

shadows are known to be missing and there is a separate ticket for that. The asus page seems to render ok on first display but glitches when scrolling, this is probably because it uses transforms, which are not handled properly in some cases and confuse the update rectangle (see also a possibly related ticket about HTML buttons not showing properly in some cases).

The javascript issues mentionned seems gone now? However I think the http authentication is currently broken, which may be a problem on real routers if they use it (and not some custom login method)

comment:21 by pulkomandy, 3 years ago

Component: Applications/WebPositiveKits/Web Kit
Note: See TracTickets for help on using tickets.