You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Amélie Avramo (JIRA)" <ji...@apache.org> on 2010/02/25 16:05:29 UTC

[jira] Created: (CMIS-130) InvalidCharacterException thrown when creating a feed

InvalidCharacterException thrown when creating a feed
-----------------------------------------------------

                 Key: CMIS-130
                 URL: https://issues.apache.org/jira/browse/CMIS-130
             Project: Chemistry
          Issue Type: Bug
            Reporter: Amélie Avramo


org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.

I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.





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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838800#action_12838800 ] 

Julian Reschke commented on CMIS-130:
-------------------------------------

"{" and "}" aren't legal URI characters.

> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


Re: [jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by Julian Reschke <ju...@gmx.de>.
On 26.02.2010 17:27, Florent Guillaume (JIRA) wrote:
>
>      [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838916#action_12838916 ]
>
> Florent Guillaume commented on CMIS-130:
> ----------------------------------------
>
> No, for now it's not necessarily globally unique if the underlying object ids aren't.
> We could add the repository id to the IRI but that still won't guarantee global unicity.
>
> I don't see how we can guarantee that in any case... there's just not enough info at the Chemistry level.

Sounds like something that needs to be added for Atom compliance...

Best regards, Julian

[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838916#action_12838916 ] 

Florent Guillaume commented on CMIS-130:
----------------------------------------

No, for now it's not necessarily globally unique if the underlying object ids aren't.
We could add the repository id to the IRI but that still won't guarantee global unicity.

I don't see how we can guarantee that in any case... there's just not enough info at the Chemistry level.


> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838450#action_12838450 ] 

Florent Guillaume commented on CMIS-130:
----------------------------------------

Could you give a stack trace or a way to reproduce it please?

> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838887#action_12838887 ] 

Florent Guillaume commented on CMIS-130:
----------------------------------------

The problem is how we generate an atom:id, which is an IRI, from the cmis:objectIds we have. Today the code just does: 
    return "urn:x-children:" + id; 
but this is not always (as you saw) a legal IRI. 

One possible fix I'll be testing more in depth as soon as I have the time is to do: 
    return "urn:x-children:" + UrlEncoding.encode(id, Profile.IPATH.filter()); 


> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Issue Comment Edited: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838891#action_12838891 ] 

Julian Reschke edited comment on CMIS-130 at 2/26/10 3:07 PM:
--------------------------------------------------------------

Speaking of which: is this globally unique? It it's not you'll be violating a MUST level requirement in RFC 4287 (Atom).


      was (Author: reschke):
    Wait.

That may make the IRI syntactically legal, but it will still be invalid until you register the "urn:x-children" namespace (there's a registry + registration process) for that.

Speaking of which: is this globally unique? It it's not you'll be violating a MUST level requirement in RFC 4287 (Atom).

  
> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Florent Guillaume (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838453#action_12838453 ] 

Florent Guillaume commented on CMIS-130:
----------------------------------------

Or the Abdera JIRA issue number?

> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Amélie Avramo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838803#action_12838803 ] 

Amélie Avramo commented on CMIS-130:
------------------------------------

Well, the URL is properly percent escaped (http://localhost:8080/children/F%7B0F1E2D3C-4B5A-6978-8796-A5B4C3D2E1F0%7D) as I've said in the issue description there is no problem with link URLs at workspace creation. But at the feed creation the id is decoded.

> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838891#action_12838891 ] 

Julian Reschke commented on CMIS-130:
-------------------------------------

Wait.

That may make the IRI syntactically legal, but it will still be invalid until you register the "urn:x-children" namespace (there's a registry + registration process) for that.

Speaking of which: is this globally unique? It it's not you'll be violating a MUST level requirement in RFC 4287 (Atom).


> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Amélie Avramo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838795#action_12838795 ] 

Amélie Avramo commented on CMIS-130:
------------------------------------

The problem occurs when I try to get children i.e. with that kind of request : http://localhost:8080/children/F{0F1E2D3C-4B5A-6978-8796-A5B4C3D2E1F0}

Exception is thrown while creating feed (CMISObjectsCollection.createFeedBase)  at feed.setId. I don't have any stacktrace, while debugging  the problem occurs in the parse() method of the IRI class. 

The Abdera issue number is 254.

Thanks.




> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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


[jira] Commented: (CMIS-130) InvalidCharacterException thrown when creating a feed

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838929#action_12838929 ] 

Julian Reschke commented on CMIS-130:
-------------------------------------


Sounds like something that needs to be added for Atom compliance...

Best regards, Julian


> InvalidCharacterException thrown when creating a feed
> -----------------------------------------------------
>
>                 Key: CMIS-130
>                 URL: https://issues.apache.org/jira/browse/CMIS-130
>             Project: Chemistry
>          Issue Type: Bug
>            Reporter: Amélie Avramo
>
> org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x7b({) is thrown when setting the feed Id at feed creation.
> I guess that it comes from Abdera (I've created a JIRA case in Abdera issue tracker) but I'm surprised that there is no problem with link creation, the { is correctly escaped.

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