Hi,

Thanks All for your help. Here is the origin and the fix of this issue.

The official documentation about @WebListener is sparse and confusing.
I initially relied on 
https://docs.oracle.com/javaee/7/api/javax/servlet/annotation/WebListener.html 
when @WebListener appeared

So I was no aware that for this to work you need also to put the resulting 
class in something like
framework\webtools\webapp\webtools\WEB-INF\classes\org\apache\ofbiz\webapp\control\WebAppServletContextListener.class
Thanks to 
https://stackoverflow.com/questions/18367514/servletcontextlistener-not-being-invoked

Moreover soon that would need to be changed with Jakarta
https://tomcat.apache.org/tomcat-10.0-doc/servletapi/jakarta/servlet/ServletContext.html
A task we will need to do anyway, OFBIZ-12989 is part of it

To fix the issue, it's much more simple to set
<tracking-mode>COOKIE</tracking-mode>
in catalina/config/web.xml

Then WebAppServletContextListener class can be safely removed.
Apart setting a comment which is not quite useful, all what was done by WebAppServletContextListener class is also done in LoginWorker by autoLoginSet when called by doMainLogin.

I have created https://issues.apache.org/jira/browse/OFBIZ-13136 for that and 
will push now

Jacques


Le 06/09/2024 à 14:50, Jacques Le Roux a écrit :
Thanks Groza,

I have an idea about that, I'll check it does not introduce a regression


Le 06/09/2024 à 11:29, Groza Danut a écrit :
Yes it is, the line at 168 removes the char: .replaceAll(";", "")

That is from the commit 11986593b668661d748789154a6052ef4e1ab1c6 Improved:
Prevent special encoded characters sequences in URLs (OFBIZ-13092)

On Fri, Sep 6, 2024 at 11:16 AM Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

Thanks Groza,

I'll check why we get this URI:

/facility/control/logoutjsessionid=47426E5B6F9A20CD2134E70F4DE525DF.jvm1

Looks like something ahead is removing the ";". Could be related to a
recent security change.

Jacques

Le 05/09/2024 à 11:08, Groza Danut a écrit :
I am able to consistently reproduce the error using the above steps
mentioned by Yang, with one addition: make sure you clear the cookies
each
time before starting. The error is thrown after you click logout.

Debugging in LoginWorker.logout at the following line:
RequestHandler rh = RequestHandler.getRequestHandler(request
.getSession().getServletContext());

I can see that for the servlet context the values are:
sessionTrackingModes null
supportedSessionTrackingModes [COOKIE, URL, SSL]

Also, the program never stops for my breakpoint at the first line in
WebAppServletContextListener.contextInitialized
Are you sure this listener is registered?

Indeed the problem is caused by this line in the ControlFilter: if (!
initialURI.equals(uRIFiltered))
Because the 2 uris are different:
/facility/control/logout;jsessionid=47426E5B6F9A20CD2134E70F4DE525DF.jvm1
/facility/control/logoutjsessionid=47426E5B6F9A20CD2134E70F4DE525DF.jvm1

Can we not provide a fix in here for this jsessionid case?

On Thu, Sep 5, 2024 at 5:38 AM 雷咩咩 <675686...@qq.com.invalid> wrote:

now i get a lot of errors for a lot of pages




https://demo-trunk.ofbiz.apache.org/content/control/main?externalLoginKey=EL2e3c96f3-bd6f-4609-a954-bd795856f143
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.


Please contact the server administrator at dev@ofbiz.apache.org to
inform
them of the time this error occurred, and the actions you performed just
before this error.


More information about this error may be available in the server error
log.







原始邮件



发件人:"雷咩咩"< 675686...@qq.com &gt;;

发件时间:2024/9/5 7:54

收件人:"ofbiz user"< u...@ofbiz.apache.org &gt;;"dev"<
dev@ofbiz.apache.org
&gt;;

主题:回复:Re: 回复:URL Issue


I found one stable steps to reproduce this issue in official trunk demo
site.

go to&nbsp;https://demo-trunk.ofbiz.apache.org/catalog/control/login,
login with admin. the url will be like&nbsp;

https://demo-trunk.ofbiz.apache.org/content/control/main?externalLoginKey=EL9a0d332c-0a33-47a2-8dfd-5fa39aa8ffdd

go to menu content, then click any of the items, such
as&nbsp;WebStorePos


Expected:
can browse


Actual:
url is&nbsp;

https://demo-trunk.ofbiz.apache.org/content/control/EditWebSite;jsessionid=167CC5B83474F1F8F5C7204282259AE3.jvm1?webSiteId=WebStorePos
error
HTTP Status 500 – Internal Server ErrorType Exception Report


Message For security reason this URL is not accepted


Description The server encountered an unexpected condition that
prevented
it from fulfilling the request.


Exception


java.lang.RuntimeException: For security reason this URL is not accepted


org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:172)
javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:53)


org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
Note The full stack trace of the root cause is available in the server
logs.


Apache Tomcat/9.0.91









原始邮件



发件人:"Jacques Le Roux"< jacques.le.r...@les7arts.com &gt;;

发件时间:2024/8/31 22:58

收件人:"user"< u...@ofbiz.apache.org &gt;;

主题:Re: 回复:URL Issue


That's interesting. Because locally I initially did not find any on
mine,
but finally found one (and only one among 9 logs):

127.0.0.1 - - [28/Aug/2024:20:59:40 +0200] "GET
/common/js/jquery/plugins/jsTree/themes/default/d.png HTTP/2.0" 200 7635
"

https://localhost:8443/common/js/jquery/plugins/jsTree/themes/default/style.css
"
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101
Firefox/56.0"
127.0.0.1 - - [28/Aug/2024:21:00:10 +0200] "GET

/example/control/FindExample%3FexternalLoginKey=EL8b0c355f-d7a6-4a59-9b34-bb0fa6bd0d05&amp;sortField=description&amp;noConditionFind=N;jsessionid=7C492ACEDE914E38A49E17F9151F02B2.jvm1
HTTP/2.0" 500 1169 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64;
rv:56.0)
Gecko/20100101 Firefox/56.0"
127.0.0.1 - - [28/Aug/2024:21:00:11 +0200] "GET /favicon.ico HTTP/2.0"
404
682 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0)
Gecko/20100101
Firefox/56.0"
127.0.0.1 - - [28/Aug/2024:21:00:11 +0200] "GET /favicon.ico HTTP/2.0"
404
682 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0)
Gecko/20100101
Firefox/56.0"
127.0.0.1 - - [28/Aug/2024:21:00:12 +0200] "GET /favicon.ico HTTP/2.0"
404
682 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0)
Gecko/20100101
Firefox/56.0"

As others, it's a HTTP 500, rejected for security reason, actually
unrelated to jsessionid. The log stops there. So could be a side effect.
The
session should no longer exists after. It's the end of the day. Closing
OFBiz, not sure how, maybe just putting the computer off.

Still a mystery, an annoying one it's not good to see the jsessionid in
log :/

Jacques

Le 31/08/2024 à 15:56, Omar Abdullwahhab a écrit&nbsp;:
&gt; I didn't understand well,
&gt; But it's a local development machine.
&gt; Not hosted in web or cloud servers.
&gt;
&gt; On Sat, Aug 31, 2024, 4:21 PM Jacques Le Roux
&gt; wrote:
&gt;
&gt;&gt; Thanks Omar,
&gt;&gt;
&gt;&gt; Is that local or on a server?
&gt;&gt;
&gt;&gt; Jacques
&gt;&gt;
&gt;&gt; Le 31/08/2024 à 14:17, Omar Abdullwahhab a écrit :
&gt;&gt;&gt; HI Jacques ,
&gt;&gt;&gt; Here are a few lines of the logs containing jsessionid
&gt;&gt;&gt;
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:14 +0300] "GET
&gt;&gt;&gt; /accounting/control/ListCompanies HTTP/2.0" 200 5147 "
&gt;&gt;&gt; https://localhost:8443/accounting/control/globalGLSettings
"
"Mozilla/5.0
&gt;&gt;&gt; (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:18 +0300] "GET
&gt;&gt;&gt; /rainbowstone/RAINBOWSTONE_SAPHIR.less HTTP/2.0" 200 1560 "
&gt;&gt;&gt;
&gt;&gt;

https://localhost:8443/ordermgr/control/main?externalLoginKey=ELd87879e0-9c8b-45e4-8c51-efc0d40748f4
&gt;&gt
<
https://localhost:8443/ordermgr/control/main?externalLoginKey=ELd87879e0-9c8b-45e4-8c51-efc0d40748f4&gt;&gt
;
"
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:19 +0300] "GET
&gt;&gt;&gt;
&gt;&gt;

/ordermgr/control/main?externalLoginKey=ELd87879e0-9c8b-45e4-8c51-efc0d40748f4
&gt;&gt;&gt; HTTP/2.0" 200 4571 "
&gt;&gt; https://localhost:8443/accounting/control/ListCompanies";
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:24 +0300] "GET
&gt;&gt;&gt;
&gt;&gt;

/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03
&gt;&gt;&gt; HTTP/2.0" 200 4327 "
&gt;&gt;&gt;
&gt;&gt;

https://localhost:8443/ordermgr/control/main?externalLoginKey=ELd87879e0-9c8b-45e4-8c51-efc0d40748f4
&gt;&gt
<
https://localhost:8443/ordermgr/control/main?externalLoginKey=ELd87879e0-9c8b-45e4-8c51-efc0d40748f4&gt;&gt
;
"
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:29 +0300] "POST
&gt;&gt;&gt;
&gt;&gt;

/facility/control/EditFacility;jsessionid=132931D4CDCAC10AC958ED9DD3F6511A.jvm1
&gt;&gt;&gt; HTTP/2.0" 500 2038 "
&gt;&gt;&gt;
&gt;&gt;

https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03
&gt;&gt
<
https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03&gt;&gt
;
"
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:36 +0300] "POST
&gt;&gt;&gt;
&gt;&gt;

/facility/control/EditFacility;jsessionid=132931D4CDCAC10AC958ED9DD3F6511A.jvm1
&gt;&gt;&gt; HTTP/2.0" 500 2038 "
&gt;&gt;&gt;
&gt;&gt;

https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03
&gt;&gt
<
https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03&gt;&gt
;
"
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:42 +0300] "GET
&gt;&gt;&gt; /rainbowstone/RAINBOWSTONE_SAPHIR.less HTTP/2.0" 200 1560 "
&gt;&gt;&gt; https://localhost:8443/facility/control/FindFacility";
"Mozilla/5.0 (X11;
&gt;&gt;&gt; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0"
&gt;&gt;&gt; 127.0.0.1 - - [26/Aug/2024:20:51:42 +0300] "GET
&gt;&gt;&gt; /facility/control/FindFacility HTTP/2.0" 200 4274 "
&gt;&gt;&gt;
&gt;&gt;

https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03
&gt;&gt
<
https://localhost:8443/facility/control/main?externalLoginKey=ELf5b96d38-f415-4bdf-94d4-7666a2445a03&gt;&gt
;
"
&gt;&gt;&gt; "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101
Firefox/129.0"
&gt;&gt;&gt;
&gt;&gt;&gt; Regards
&gt;&gt;&gt;
&gt;&gt;&gt; On Sat, Aug 31, 2024 at 2:30 PM Jacques Le Roux <
&gt;&gt;&gt; jacques.le.r...@les7arts.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi Omar,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Since Java 7 :
&gt;&gt;&gt;&gt;
&gt;&gt;

https://docs.oracle.com/javaee/7/api/javax/servlet/annotation/WebListener.html
&gt;&gt;&gt;&gt; In OFBiz, ControlEventListener implements
HttpSessionListener
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Did you check locally or on a server your access_logs
if
you find a
&gt;&gt;&gt;&gt; jsessionid there (trunk)?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Jacques
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Le 31/08/2024 à 13:07, Omar Abdullwahhab a écrit :
&gt;&gt;&gt;&gt;&gt; Hi Jacques, Johan,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; According to my investigation to this class (
&gt;&gt;&gt;&gt;&gt; WebAppServletContextListener.java
&gt;&gt;&gt;&gt;&gt; <
&gt;&gt;

https://github.com/apache/ofbiz-framework/blame/31eb051326bcec29f4c932a6d829e0d7c9979a16/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/WebAppServletContextListener.java#L41
&gt;&gt;&gt;&gt;&gt
<
https://github.com/apache/ofbiz-framework/blame/31eb051326bcec29f4c932a6d829e0d7c9979a16/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/WebAppServletContextListener.java#L41&gt;&gt;&gt;&gt;&gt
;
)
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; It seems to be that this listener is never
registered
, so that it has
&gt;&gt; no
&gt;&gt;&gt;&gt;&gt; effect.
&gt;&gt;&gt;&gt;&gt; Note that its annotated with
&gt;&gt;&gt;&gt;&gt; @WebListener
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; So confirm that I am correct, or wrong.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Regards
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Fri, Aug 30, 2024 at 6:30 PM Jacques Le Roux <
&gt;&gt;&gt;&gt;&gt; jacques.le.r...@les7arts.com&gt; wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Actually it's not related to embedded Tomcat in
OFBiz.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Since we 2017 in
WebAppServletContextListener.java we use this line
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;

<<servletContext.setSessionTrackingModes(EnumSet.of(SessionTrackingMode.COOKIE));&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;

https://github.com/apache/ofbiz-framework/blame/31eb051326bcec29f4c932a6d829e0d7c9979a16/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/WebAppServletContextListener.java#L41
&gt;&gt;&gt;&gt;&gt;&gt
<
https://github.com/apache/ofbiz-framework/blame/31eb051326bcec29f4c932a6d829e0d7c9979a16/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/WebAppServletContextListener.java#L41&gt;&gt;&gt;&gt;&gt;&gt
;
If you test locally or maybe in another server than demo one, you will
&gt;&gt;&gt;&gt; not
&gt;&gt;&gt;&gt;&gt;&gt; find in access_logs files any line similar to
the
one below. At least
&gt;&gt; I
&gt;&gt;&gt;&gt; did
&gt;&gt;&gt;&gt;&gt;&gt; not, and that's logical since we use cookies
for
that.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I'm not sure what's the reason yet. If you
could
confirm that it's not
&gt;&gt;&gt;&gt;&gt;&gt; reproductible but in demo server that would
help
to restrain the
&gt;&gt;&gt;&gt;&gt;&gt; possibilities
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; TIA
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Jacques
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Le 29/08/2024 à 10:17, Jacques Le Roux a écrit
:
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Finally it's not that clear.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; As can be found in trunk demo access_logs,
such URLs exist at least
&gt;&gt;&gt;&gt;&gt;&gt; since June 17 2024.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
  access_log.2024-06-17:28:66.249.75.98 -
- [17/Jun/2024:00:11:51
&gt;&gt;&gt;&gt;&gt;&gt; +0000] "GET
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;

/partymgr/control/main%3FexternalLoginKey=ELf5183769-2759-476b-946c-2a70afe3c42d&amp;sortField=partyId;jsessionid=EBB57C6C3C345E70501827509E05744C.jvm1
&gt;&gt;&gt;&gt;&gt;&gt;&gt; HTTP/1.1" 500 1165 "-" "Mozilla/5.0
(Linux; Android 6.0.1;
&gt;&gt; Nexus 5X
&gt;&gt;&gt;&gt;&gt;&gt; Build/MMB29P) AppleWebKit/537.36 (KHTML, like
Gecko)
&gt;&gt;&gt;&gt; Chrome/125.0.6422.175
&gt;&gt;&gt;&gt;&gt;&gt;&gt;       Mobile Safari/537.36 (compatible;
Googlebot/2.1; +
&gt;&gt;&gt;&gt;&gt;&gt; http://www.google.com/bot.html)"
&gt;&gt;&gt;&gt;&gt;&gt;&gt; As you can see they are rejected (HTTP 500)
since then too. Actually
&gt;&gt; I
&gt;&gt;&gt;&gt;&gt;&gt; guess they exist for a very long time. Have yet
no idea why and how
&gt;&gt;&gt;&gt; these
&gt;&gt;&gt;&gt;&gt;&gt;&gt; URLs are generated.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; The rejection is "new" and due to a
security
fix done in May 20 2024
&gt;&gt;&gt;&gt;&gt;&gt; with (OFBIZ-13092) "Prevent special encoded
characters sequences in
&gt;&gt;&gt;&gt; URLs"
&gt;&gt;&gt;&gt;&gt;&gt;&gt; So we need to clearly define steps to
manually generate these URLs.
&gt;&gt;&gt;&gt;&gt;&gt; Then, if it's OK, we could allow URLs
containing
";jsessionid=" to
&gt;&gt;&gt;&gt; bypass
&gt;&gt;&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt;&gt;&gt;&gt; security filter.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I copy this email to the dev ML because of
its importance
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Jacques
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Le 28/08/2024 à 15:27, Jacques Le Roux a
écrit :
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Thanks Guys,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I could not reproduce yet, but I think
we
have already enough clues
&gt;&gt; to
&gt;&gt;&gt;&gt;&gt;&gt; fix that.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Also I can find a lot of in trunk demo
log. That will be helpful
&gt;&gt; too.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Jacques
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Le 27/08/2024 à 16:20, 雷咩咩 a écrit :
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; i can reproduce by login with
admin,
randomly click severl places,
&gt;&gt;&gt;&gt;&gt;&gt; then when click logout, see such error:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; HTTP Status 500 – Internal Server
Error
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Type Exception Report
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Message For security reason this
URL
is not accepted
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Description The server encountered
an
unexpected condition that
&gt;&gt;&gt;&gt;&gt;&gt; prevented it from fulfilling the request.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Exception
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; java.lang.RuntimeException: For
security reason this URL is not
&gt;&gt;&gt;&gt;&gt;&gt; accepted
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;

org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:144)
&gt;&gt;

org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Note The full stack trace of the
root
cause is available in the
&gt;&gt;&gt;&gt; server
&gt;&gt;&gt;&gt;&gt;&gt; logs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Apache Tomcat/9.0.91
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Regards,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Yang
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
------------------&nbsp;原始邮件&nbsp;------------------
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 发件人: "user" <
johanhpcro...@gmail.com
&gt;;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 发送时间:&nbsp;2024年8月27日(星期二) 晚上9:12
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 收件人:&nbsp;"user"<
u...@ofbiz.apache.org&gt;;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; 主题:&nbsp;URL Issue
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Not sure if anyone would be able to
assist me, I have found an
&gt;&gt; issue
&gt;&gt;&gt;&gt;&gt;&gt; which
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; can also be replicated within the
demo.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; This issue normally occurs as you
navigate to a module after login.
&gt;&gt;&gt;&gt; It
&gt;&gt;&gt;&gt;&gt;&gt; is
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; not easily replicable, once you
refresh it works and does not occur
&gt;&gt;&gt;&gt;&gt;&gt; again.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Replicated the issue in multiple
modules.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; It usually adds
;jsessionid=######################.jvm1 to all the
&gt;&gt;&gt;&gt;&gt;&gt; URLs and
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this causes a navigation issue.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Once you submit a form or try to
click the logout link, an Internal
&gt;&gt;&gt;&gt; 500
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Internal Server Error is being
returned
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; As an example:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
https://demo-stable.ofbiz.apache.org/partymgr/control/main
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt
<
https://demo-stable.ofbiz.apache.org/partymgr/control/main&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt
;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have screenshots available,
however
I am not able to attach to
&gt;&gt; this
&gt;&gt;&gt;&gt;&gt;&gt; mail.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Please let me know if you need me
to
upload it somewhere.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Kind Regards,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Johan Cronjé
&gt;&gt;&gt;


Reply via email to