abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Yuan (JIRA)" <j...@apache.org>
Subject [jira] Created: (ABDERA-238) CharUtil.java doesn't accept 0x60(`) in Profile
Date Thu, 28 May 2009 15:20:46 GMT
CharUtil.java doesn't accept 0x60(`) in Profile
-----------------------------------------------

                 Key: ABDERA-238
                 URL: https://issues.apache.org/jira/browse/ABDERA-238
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
         Environment: Linux and Windows XP
Java SDK 1.6.0_10
Abdera 0.4.0
Tomcat 6.0.18
            Reporter: Ivan Yuan


I use AbstractEntityCollectionAdapter to implement listing search service. In the name of
listing/entry, it contains a 0x60 (`) character, which caused the following exception. 

I checked org.apache.abdera.i18n.text.CharUtils.java, it seems that 0x60 (`) doesn't appear
 in any enum of Profile. It should be defined as a unreserved character, which allows it fall
through during character validating.

Since our service is using this character a lot, we hope this is been fixed as soon as possible.

Thanks,

Ivan Yuan

Stack trace
-----------------------------------------------------------------------------------------------------------------------



27 May, 2009 10:34:03 ERROR org.apache.abdera.protocol.server.impl.AbstractProvider process
: org.apache.abdera.i18n.iri.IRISyntaxException: org.apache.abdera.i18n.text.InvalidCharacterException:
Invalid Character 0x60(`)
 27 May, 2009 10:34:03 INFO  org.apache.abdera.protocol.server.ProviderHelper servererror
: Server error
 org.apache.abdera.i18n.iri.IRISyntaxException: org.apache.abdera.i18n.text.InvalidCharacterException:
Invalid Character 0x60(`)
        at org.apache.abdera.i18n.iri.IRI.parse(IRI.java:639)
        at org.apache.abdera.i18n.iri.IRI.<init>(IRI.java:66)
        at org.apache.abdera.parser.stax.FOMIRI.setValue(FOMIRI.java:79)
        at org.apache.abdera.parser.stax.FOMEntry.setId(FOMEntry.java:398)
        at org.apache.abdera.parser.stax.FOMEntry.setId(FOMEntry.java:377)
        at org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter.addEntryDetails(AbstractEntityCollectionAdapter.java:602)
        at org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter.addFeedDetails(AbstractEntityCollectionAdapter.java:394)
        at org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter.getFeed(AbstractEntityCollectionAdapter.java:370)
        at org.apache.abdera.protocol.server.impl.AbstractProvider.process(AbstractProvider.java:145)
        at org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:42)
        at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.java:90)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x60(`)
        at org.apache.abdera.i18n.text.CodepointIterator$RestrictedCodepointIterator.next(CodepointIterator.java:480)
        at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:915)
        at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:931)
        at org.apache.abdera.i18n.iri.IRI.parse(IRI.java:635)
        ... 23 more


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message