You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Joshua Watkins (Created) (JIRA)" <ji...@apache.org> on 2012/02/08 11:06:59 UTC
[jira] [Created] (CAMEL-4993) Add session information from cometd
to camel message headers
Add session information from cometd to camel message headers
------------------------------------------------------------
Key: CAMEL-4993
URL: https://issues.apache.org/jira/browse/CAMEL-4993
Project: Camel
Issue Type: Improvement
Components: camel-cometd
Affects Versions: 2.9.0
Reporter: Joshua Watkins
Priority: Minor
The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4993.
--------------------------------
Resolution: Fixed
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Joshua Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271298#comment-13271298 ]
Joshua Watkins commented on CAMEL-4993:
---------------------------------------
Done - https://issues.apache.org/jira/browse/CAMEL-5263
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-4993.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.10.0
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Joshua Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Watkins updated CAMEL-4993:
----------------------------------
Attachment: camelCometdBooleanAndSessionHeaderPatch.txt
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Joshua Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260421#comment-13260421 ]
Joshua Watkins commented on CAMEL-4993:
---------------------------------------
I noticed that I had made an error and not brought over a change from my branch into the patch. The initial version didn't pass the property to the binding. I have added a fix as well as more unit tests to cover this. Additionally, I have added support for booleans as values for the session headers.
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-4993:
-----------------------------------
Assignee: Willem Jiang
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Attachments: cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Joshua Watkins (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Watkins updated CAMEL-4993:
----------------------------------
Attachment: cometdSessionAttributesAsCamelHeaders
Patch for session attributes in Cometd to be added at camel headers. This will enable support for downstream authorization of messages passed through the Cometd security policy.
This feature is disabled by default with a uri parameter to enable it. Additionally only long, string, int, and double are supported as other message mediums may not support more. Currently, I just log an info message when an incompatible type is a session attribute. You may want to change this to be something else.
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Priority: Minor
> Attachments: cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271293#comment-13271293 ]
Willem Jiang commented on CAMEL-4993:
-------------------------------------
@Joshua,
You can create another issue for it, incase we release camel 2.10.0.
I will go through your new patch when I get some time today.
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Joshua Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Watkins reopened CAMEL-4993:
-----------------------------------
I found an issue with the previous patch. Fixes and more tests attached in second patch.
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: camelCometdBooleanAndSessionHeaderPatch.txt, cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4993) Add session information from cometd
to camel message headers
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213261#comment-13213261 ]
Willem Jiang commented on CAMEL-4993:
-------------------------------------
Applied the patch into trunk with thanks to Joshua, I also fixed some Checkstyle errors.
> Add session information from cometd to camel message headers
> ------------------------------------------------------------
>
> Key: CAMEL-4993
> URL: https://issues.apache.org/jira/browse/CAMEL-4993
> Project: Camel
> Issue Type: Improvement
> Components: camel-cometd
> Affects Versions: 2.9.0
> Reporter: Joshua Watkins
> Assignee: Willem Jiang
> Priority: Minor
> Attachments: cometdSessionAttributesAsCamelHeaders
>
>
> The cometd component has the ability to authenticate a connection with a custom SecurityPolicy.[1] This information can then be added to the cometd session for further calls. Unfortunately, session attributes aren't passed to the camel message for processing by endpoints and processors further down the line.
> 1. http://cometd.org/documentation/2.x/howtos/authentication
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira