Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.7
-
WIN7
Salesforce service with Auth2 Bearer authorization
-
Unknown
Description
In CXF-4873 you guys fixed escape ? problem in OPERATION part.
But in service name, it can still contains a ? character.
For example, when I try to connect Salesforce with Auth2 bearer authorization,
I got the callback service address QName similar like this:
{https://na7.salesforce.com/id/00DA0000000ajozMAA/005A0000000qeS5IAI?oauth_token=00DA0000000ajoz%21AQ4AQI9IkV9EjnMLiXWUMvYMjQPGexBrTGJSduVIpYx09NI3Rv0rVX5QMQiD_mS7OK6TbMVSzL.451_bRpcwHbhQ9se_fttQ}tRESTClient
Then below error may appear:
2013-11-22 09:57:14,864 | WARN | 1074256089-10261 | ctMessageResponseTimeInterceptor | ctMessageResponseTimeInterceptor 147 | 124 - org.apache.cxf.c xf-rt-management - 2.7.7 | Create Counter''s ObjectName failed. {0} javax.management.RuntimeOperationsException Create Counter''s ObjectName failed. {0} Caused by: java.lang.IllegalArgumentException: Repository: cannot add mbean for pattern name org.apache.cxf:bus.id=esb_demo.OAuth2SalesforceUserInfo_ContextMap-cxf786212177,type=Performance.Counter.Client,service="https://na7.salesforce.com/id/00DA0000000ajozMAA/005A0000000qeS5IAI?oauth_token=00DA0000000ajoz%21AQ4AQI9IkV9EjnMLiXWUMvYMjQPGexBrTGJSduVIpYx09NI3Rv0rVX5QMQiD_mS7OK6TbMVSzL.451_bRpcwHbhQ9se_fttQ}tRESTClient",port="tRESTClient"
So the escape ? should also be fixed on ServiceName when create the Counter''s ObjectName .
Same problem but in another case.