abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Moody (JIRA)" <j...@apache.org>
Subject [jira] Created: (ABDERA-181) Abdera converts "?" IRI query delimeter in links to "&amp;"
Date Wed, 25 Jun 2008 09:44:45 GMT
Abdera converts "?" IRI query delimeter in links to "&amp;"
-----------------------------------------------------------

                 Key: ABDERA-181
                 URL: https://issues.apache.org/jira/browse/ABDERA-181
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
         Environment: Sun JRE 1.5.0_11
Win XP Pro
            Reporter: Brad Moody


org.apache.abdera.i18n.iri.IRI line 146:

    a_query = UrlEncoding.encode(query,Profile.QUERY.filter(), Profile.PATH.filter());

This causes the "?" query delimeter to be converted to "&amp;".

Technical argument:

According to rfc4287

   The "href" attribute contains the link's IRI. atom:link elements MUST
   have an href attribute, whose value MUST be a IRI reference
   [RFC3987].

According to rfc3987 "?" is valid:

   IRI            = scheme ":" ihier-part [ "?" iquery ]
                         [ "#" ifragment ]


Personally:

I get link hrefs as http://host/path&amp;param=value when what I need is http://host/path?param=value

Cheers,
Brad.

-- 
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