[JIRA] (COMETD-368) SecurityPolicy.[canCreate() | canPublish()] do not allow customization of the response message

3 views
Skip to first unread message

Simone Bordet (Created) (JIRA)

unread,
Apr 27, 2012, 5:14:25 AM4/27/12
to comet...@googlegroups.com
SecurityPolicy.[canCreate() | canPublish()] do not allow customization of the response message
----------------------------------------------------------------------------------------------

Key: COMETD-368
URL: http://bugs.cometd.org/browse/COMETD-368
Project: CometD
Issue Type: Bug
Components: java-server
Affects Versions: 2.4.1
Reporter: Simone Bordet
Assignee: Simone Bordet


When {{SecurityPolicy.[canCreate() | canPublish()]}} are called, the reply message has not been created yet, so within those methods calling {{message.getAssociated()}} returns null.
We should setup the reply before calling those methods.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: http://bugs.cometd.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Simone Bordet (Resolved) (JIRA)

unread,
Apr 27, 2012, 5:19:25 AM4/27/12
to comet...@googlegroups.com

[ http://bugs.cometd.org/browse/COMETD-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Bordet resolved COMETD-368.
----------------------------------

Fix Version/s: 2.4.2
Resolution: Fixed

Fixed. Now reply messages are setup before calling {{SecurityPolicy}} methods.

> SecurityPolicy.[canCreate() | canPublish()] do not allow customization of the response message
> ----------------------------------------------------------------------------------------------
>
> Key: COMETD-368
> URL: http://bugs.cometd.org/browse/COMETD-368
> Project: CometD
> Issue Type: Bug
> Components: java-server
> Affects Versions: 2.4.1
> Reporter: Simone Bordet
> Assignee: Simone Bordet
> Fix For: 2.4.2
>
>
> When {{SecurityPolicy.canCreate()}} or {{SecurityPolicy.canPublish()}} are called, the reply message has not been created yet, so within those methods calling {{message.getAssociated()}} returns null.
Reply all
Reply to author
Forward
0 new messages