You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/05/08 10:18:00 UTC

[jira] [Assigned] (OFBIZ-13389) Updating field with URL with TLD not listed in UtilHttp.extractUrls

     [ https://issues.apache.org/jira/browse/OFBIZ-13389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mridul Pathak reassigned OFBIZ-13389:
-------------------------------------

    Assignee: Mridul Pathak

> Updating field with URL with TLD not listed in UtilHttp.extractUrls 
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-13389
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13389
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 24.09.05
>            Reporter: Vitaly Repetenko
>            Assignee: Mridul Pathak
>            Priority: Major
>
> Hi,
> any field containing URL with TLD not listed in UtilHttp.extractUrls regex will cause form update error: 
> {{HTTP Status 500 – Internal Server Error}}
> {{java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) java.base/java.util.Objects.checkIndex(Objects.java:361) java.base/java.util.ArrayList.get(ArrayList.java:427) org.apache.ofbiz.base.util.UtilHttp.canonicalizeParameterMap(UtilHttp.java:420) org.apache.ofbiz.base.util.UtilHttp.getParameterMap(UtilHttp.java:189) org.apache.ofbiz.base.util.UtilHttp.getParameterMap(UtilHttp.java:144) org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:182) javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:53) org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:70)}}
> Steps to reproduce:
> 1. Open Accounting -> Payment Gateway Config -> PayPal Gateway configuration
> 2. Enter url [https://test.app/test] and press update



--
This message was sent by Atlassian Jira
(v8.20.10#820010)