cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7304) WADL generator doesn't work properly in case cyrillic characters is used in URL
Date Wed, 29 Mar 2017 19:44:42 GMT

    [ https://issues.apache.org/jira/browse/CXF-7304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947778#comment-15947778
] 

Marat commented on CXF-7304:
----------------------------

We have init-param for CXFServlet in web.xml.
                <init-param>
			<param-name>uriEncoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
and additional:
	<filter>
		<filter-name>CharacterEncodingFilter</filter-name>
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>CharacterEncodingFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

My URI is http://localhost:8110/org.openl.rules.ruleservice.ws-5.20.0-SNAPSHOT/REST/datasource/Привет/DriverAgeType
shows in google chrome, but it sends as http://localhost:8110/org.openl.rules.ruleservice.ws-5.20.0-SNAPSHOT/REST/datasource/%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82/DriverAgeType

This is a POST request without any parameter.

Server doesn't respond to the HTTP requests also. I found that JAXRSUtil class in findTargetMethod
method has following code:
if (uriTemplate != null && uriTemplate.match(path, map)) {
I have path variable in this line equal to "/org.openl.rules.ruleservice.ws-5.20.0-SNAPSHOT/REST/datasource/%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82/DriverAgeType"
if I use Cyrillic chars. But if I use only Latin chars it equals to "/DriverAgeType".

> WADL generator doesn't work properly in case cyrillic characters is used in URL
> -------------------------------------------------------------------------------
>
>                 Key: CXF-7304
>                 URL: https://issues.apache.org/jira/browse/CXF-7304
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.11
>         Environment: Windows 10, Java 8
>            Reporter: Marat
>            Priority: Minor
>
> WADL generator doesn't work properly in case Cyrillic characters is used in URL. WADL
generator skips all methods description when URL contains Cyrillic characters. If I replace
Cyrillic characters in URL to Latin characters generator will work fine.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message