Project

General

Profile

Actions

Bug #15418

open

Incorrect links to edit static mapping and WOL on DHCPv6 leases (status_dhcpv6_leases.php). URL parameter values missing.

Added by Patrik Stahlman 2 months ago. Updated 15 days ago.

Status:
Incomplete
Priority:
Normal
Assignee:
-
Category:
DHCP Server (IPv6)
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Release Notes:
Default
Affected Plus Version:
24.03
Affected Architecture:
All

Description

On the DCHPv6 leases page (status_dhcpv6_leases.php), the links for editing the static mapping and WOL are incorrect, the URL parameters "if" and "id" are always empty.

Evidence:

Before fix the URL is wrong:

https://pfsense.local.lan/services_dhcpv6_edit.php?if=&id=

After applying fix the URL is correct:

https://pfsense.local.lan/services_dhcpv6_edit.php?if=lan&id=0

The change:

1) always fetch the interface name so it can be included in URLs
2) store the missing index of the lease in the lease list (same as it is done for IPv4)

Test:
Applied through System Patches with
Path strip Count: 4
Base Directory: /usr/local/www/
(not file upload but copy/paste)

[I noticed this bug is 24.03-RC as I just enabled DHCPv6 functionality, but it might be present in earlier releases also.]


Files

status_dhcpv6_leases.php.patch (1.95 KB) status_dhcpv6_leases.php.patch fix for issue Patrik Stahlman, 04/18/2024 05:34 PM
Actions #1

Updated by Patrik Stahlman 2 months ago

And just to clarify, the broken action links appear for a DHCPv6 lease with static mapping, the action links for a dynamic lease work fine.

Actions #2

Updated by Kris Phillips about 1 month ago

Tested this with DHCPv6 upstream with a delegated prefix. I wasn't able to reproduce this on 24.03.

When adding a static mapping and then going to Status --> DHCPv6 Leases to click the "edit" button for the static mapping, it appears to be normal:

https://X.X.X.X:4433/services_dhcpv6_edit.php?if=opt1&id=0

To reproduce this, did you add both a WOL and Static Mapping at the same time?

Actions #3

Updated by Danilo Zrenjanin about 1 month ago

I couldn't replicate this either:

I can see the correct URL parameters "if" and "id."

https://x.x.x.x:8443/services_dhcpv6_edit.php?if=opt5&id=0

Tested against 24.03 pfSense Plus release

Actions #4

Updated by Kris Phillips 17 days ago

This should be marked as Incomplete until more information can be provided on how this is reproduced. I don't see a bug here with our current understanding.

Actions #5

Updated by Jim Pingle 15 days ago

  • Category changed from Web Interface to DHCP Server (IPv6)
  • Status changed from New to Incomplete
Actions

Also available in: Atom PDF