Project

General

Profile

Actions

Bug #12734

open

Long hostname breaks DHCP leases layout

Added by Juri Oo about 2 years ago. Updated about 2 years ago.

Status:
Incomplete
Priority:
Low
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

It appears, that long hostnames will kind of break the dhcp leases status page.
With Nmap package and MAC vendors, the right part is cut off almost completely and horizontal scrollbar is added at the bottom.
Is this normal? I can see long MAC vendors are being cut to 3 rows. Shouldn't the hostname line also be cut at some point (in such rare cases)?

Tested with 2.5.2-RELEASE (amd64). Hostname is 40 characters long.


Files

pf1.JPG (79.9 KB) pf1.JPG without Nmap Juri Oo, 01/26/2022 12:48 PM
pf2.JPG (84 KB) pf2.JPG with Nmap installed Juri Oo, 01/26/2022 12:48 PM
pfsense-dhcp.jpg (118 KB) pfsense-dhcp.jpg Juri Oo, 01/31/2022 12:59 PM
Actions #1

Updated by Jim Pingle about 2 years ago

  • Status changed from New to Incomplete
  • Target version deleted (2.6.0)

You have blanked out so much of the text on those images it's impossible to tell what the problem might be.

It's not uncommon for misbehaving clients to submit out of spec hostnames, and ISC DHCPD takes what they give. The best workaround there is to configure a static mapping for that device with its MAC address and a custom hostname. You can leave the IP address blank and it will still obtain that automatically.

Actions #2

Updated by Juri Oo about 2 years ago

Jim Pingle wrote in #note-1:

You have blanked out so much of the text on those images it's impossible to tell what the problem might be.

It's not uncommon for misbehaving clients to submit out of spec hostnames, and ISC DHCPD takes what they give. The best workaround there is to configure a static mapping for that device with its MAC address and a custom hostname. You can leave the IP address blank and it will still obtain that automatically.

I tried to make a better screenshot, but it seems the layout has almost fixed itself in the meantime (even with this long hostname still there). Horizontal scrollbar is still present, but WOL and static mapping buttons are now visible without scrolling.
I agree, that static mapping is the right fix for this, but I also wish we had more control over the page width in such cases (like the 3 row dashboard).

Actions #3

Updated by Juri Oo about 2 years ago

I added better screenshot with disappeared buttons and scrollbar at the bottom (host with a long hostname is not shown).

In fact - the solution to configure static mapping, using only the hostname and blank IP address does not seem to work - it needs the IP address for the hostname change in dhcp status page!

Actions

Also available in: Atom PDF