Skip to content

Fixed: Ecommerce pages fail to render links when OFBiz runs with a port offset (OFBIZ-13806) - #2576

Merged
mridulpathak merged 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13806-release24.09
Nov 6, 2026
Merged

mridulpathak merged 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13806-release24.09

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

Backported from trunk (#2575).

With a port offset, WebSiteProperties.addPortOffset() parsed every configured port with Integer.valueOf(), including the https port that is blank by default (port.https= in url.properties and no httpsPort on the demo WebStore), so the NumberFormatException broke every link built by OfbizUrlBuilder and the ecommerce pages failed to render. A blank port is now left blank, so that it is taken from the request as before, and the localhost fallback to 8443 in OfbizUrlBuilder adds the port offset too.
@mridulpathak
mridulpathak merged commit 9111732 into apache:release24.09 Nov 6, 2026
6 checks passed
@mridulpathak
mridulpathak deleted the OFBIZ-13806-release24.09 branch November 6, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant