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/10/28 06:32:00 UTC
[jira] [Closed] (OFBIZ-13744) Remove the deprecated ApiContextListener.getApplicationCntx() and its static ServletContext
[ https://issues.apache.org/jira/browse/OFBIZ-13744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13744.
---------------------------------
Fix Version/s: Upcoming Branch
Resolution: Fixed
> Remove the deprecated ApiContextListener.getApplicationCntx() and its static ServletContext
> -------------------------------------------------------------------------------------------
>
> Key: OFBIZ-13744
> URL: https://issues.apache.org/jira/browse/OFBIZ-13744
> Project: OFBiz
> Issue Type: Sub-task
> Components: rest-api
> Affects Versions: Upcoming Branch
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
> Fix For: Upcoming Branch
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> OFBizOpenApiReader, OpenApiUtil and OFBizOpenApiReaderTest call the deprecated getApplicationCntx(), and the warnings are hidden by @SuppressWarnings("deprecation"). The method exposes a static, JVM-wide ServletContext. OpenApiResource now injects @Context ServletContext and passes the dispatcher to the reader through userDefinedOptions. OpenApiUtil.getAttributeSchema takes a Delegator argument. The method, its static field and the suppressions are removed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)