Hello,

we are running Fedora 3.5 and I was testing the search capabilities of the
Fedora Web administrator.

I don't have any results if I search a word containing letters with diacritic
(like 'é').  The problem is that the web admin encoded its request with
ISO-8859-1 like we can see in the tomcat access log (é in IS0-8859-1 is
%E9):

"GET
/fedora/objects?pid=true&resultFormat=xml&terms=Andr%E9&label=true&flash=true
HTTP/1.1" 200 143

When I use the Basic Search available at url .../fedora/objects, eveything
is fine, the request is sent in UTF-8 format (é in UTF-8 is %C3%A9) :

"GET
/fedora/objects?pid=true&title=true&terms=Andr%C3%A9&query=&maxResults=20
HTTP/1.1" 200 4637

Any idea how can I change the uri encoding for the web administrator ?
Please note that I added the following filter to Fedora web.xml to have the
content encoded in UTF-8.  This change was necessary to make the Basic
Search work correctly at .../fedora/objects.

    <filter>
        <filter-name>SetCharacterEncodingFilter</filter-name>

<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>SetCharacterEncodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

It seems like the presence of this filter does not change anything with the
Fedora Web Administrator neither the configuration of URIEncoding="UTF-8" in
Tomcat server.xml connectors config.

Also, where can I find the Flex source files for the Web Administrator ?

Thanks,

André Lapointe
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to