axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Tak (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-5960) Axis2 version 1.7.9 does not allow word 'wsdl' in xsd file
Date Tue, 25 Jun 2019 16:47:00 GMT

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

Nikita Tak resolved AXIS2-5960.
-------------------------------
    Resolution: Implemented

 

 

Solution:

Instead of using –

*public void* processListService(HttpServletRequest req, HttpServletResponse res) *throws*
IOException, ServletException {     String url = req.getRequestURL().toString();    
String serviceName = *this*.extractServiceName(url);     HashMap services = *this*.configContext.getAxisConfiguration().getServices();
    String query = req.getQueryString(); 

*int* wsdl2 = HttpUtils.indexOfIngnoreCase(query, *"wsdl2"*);
*int* wsdl = HttpUtils.indexOfIngnoreCase(query, *"wsdl"*);
*int* xsd = HttpUtils.indexOfIngnoreCase(query, *"xsd"*);
*int* policy = HttpUtils.indexOfIngnoreCase(query, *"policy"*);

*//processes the files*

}

 

We should use: 

String xsd = req.getParameter(*"xsd"*);

String wsdl2 = req.getParameter(*"wsdl2"*);

String wsdl = req.getParameter(*"wsdl"*);

String policy = req.getParameter(*"policy"*);

 

> Axis2 version 1.7.9 does not allow word 'wsdl' in xsd file
> ----------------------------------------------------------
>
>                 Key: AXIS2-5960
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5960
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.9
>            Reporter: Nikita Tak
>            Priority: Major
>
> Bad code is written to retrive the files.
> Issue in method "processListService" in the below class-
> axis2-transport-http-1.7.9.jar!\org\apache\axis2\transport\http\ListingAgent.class
>  
> The above method compares the string the word 'xsd' or 'wsdl' with query string with
ignorecase, it fails if xsd file name is e.g. Test*WSDL*Types.xsd
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message