{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/84","labels_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/84/comments","events_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/84/events","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/84","id":102060324,"number":84,"title":"Get the error message when decrypting the protected PDF file(which is protected by another RMS server)","user":{"login":"Kammy6679","id":10860444,"avatar_url":"https://avatars.githubusercontent.com/u/10860444?v=3","gravatar_id":"","url":"https://api.github.com/users/Kammy6679","html_url":"https://github.com/Kammy6679","followers_url":"https://api.github.com/users/Kammy6679/followers","following_url":"https://api.github.com/users/Kammy6679/following{/other_user}","gists_url":"https://api.github.com/users/Kammy6679/gists{/gist_id}","starred_url":"https://api.github.com/users/Kammy6679/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kammy6679/subscriptions","organizations_url":"https://api.github.com/users/Kammy6679/orgs","repos_url":"https://api.github.com/users/Kammy6679/repos","events_url":"https://api.github.com/users/Kammy6679/events{/privacy}","received_events_url":"https://api.github.com/users/Kammy6679/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-08-20T04:36:39Z","updated_at":"2015-09-10T05:03:05Z","closed_at":null,"body":"One error message:\r\n1. Use john.smith@joshgav.com to get the policy templates, and encrypt a PDF files(test.pdf)\r\n2. Use john.smith@msopentechtest01.onmicrosoft.com to get the policy templates\r\n3. Use john.smith@msopentechtest01.onmicrosoft.com to decrypt test.pdf(which is protected by john.smith@joshgav.com). \r\n4. Type john.smith@joshgav.com and password in login dialog,  get the following error message: “Invalid PL”\r\n\r\n\r\n\r\nAnother error message:\r\n1. Use  john.smith@msopentechtest01.onmicrosoft.com to get the policy templates, and encrypt a PDF files(test.pdf)\r\n2. Use  john.smith@joshgav.com to get the policy templates\r\n3. Use  john.smith@joshgav.com to decrypt test.pdf(which is protected by  john.smith@msopentechtest01.onmicrosoft.com). \r\n4. Type  john.smith@msopentechtest01.onmicrosoft.com and password in login dialog,  get the following error message:  \"Content protected by the on prem servers is not supported in this version.\" \r\n\r\n<b>NOTE:\r\n1. if opening the RMS protected file is PDF format, we call the following code to the above two error message：\r\nm_pUserPolicyResult = UserPolicy::Acquire(publishLicense, csUserID, m_authenticationCallback,\r\n                                                  m_consentCallback, POL_None, RESPONSE_CACHE_INMEMORY);\r\n\r\n1. if opening the RMS protected file is PPDF format, we call the following code to the above two error message：\r\nm_protectedFileStreamResult = ProtectedFileStream::Acquire(orgIStream,\r\n                                                                   userId,\r\n                                                                   m_authenticationCallback,\r\n                                                                   m_consentCallback,\r\n                                                                   POL_None);\r\n\r\n<b>rmsauth_153626-0820.log\r\n15:36:26 INF: FileCache: path: /home/ubuntu/.ms-ad/token_cache.dat\r\n15:36:26 INF: HttpHelperQt: addCACertificateBase64\r\n15:36:26 INF: local: addCACertificate\r\n15:36:26 INF: HttpHelperQt: addCACertificateDer\r\n15:36:26 INF: local: addCACertificate\r\n15:36:27 INF: AuthenticationContext: AuthenticationContext\r\n15:36:27 INF: Authenticator: detectAuthorityType\r\n15:36:27 INF: Authenticator: isAdfsAuthority: '0'\r\n15:36:27 INF: AuthenticationContext: acquireToken\r\n15:36:27 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:27 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:27 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:27 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:27 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://sts.aadrm.com/_sts/oauth/\r\n\tResource: api.aadrm.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (0 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:27 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:27 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:27 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:27 INF: Authenticator: updateFromTemplateAsync\r\n15:36:27 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:27 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:27 INF: FileCache: onBeforeAccess\r\n15:36:27 INF: FileCache: readCache\r\n15:36:27 INF: TokenCache: deserialize\r\n15:36:27 INF: AuthenticationResult: deserialize\r\n15:36:27 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://sts.aadrm.com/_sts/oauth/; resource: api.aadrm.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 1718433536864167329;\r\n15:36:27 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:27 INF: TokenCache: loadFromCache\r\n15:36:27 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:36:27 INF: TokenCache: Local time UTC: '07:36:27 08.20.15', token expiresOn: 17:09:24 08.20.15 (1440090564)\r\n15:36:27 INF: TokenCache: A matching token was found in the cache\r\n15:36:27 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:27 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: 祘x??R\u0002曵鄆撤$k??z?谦!蕺 p\\\r\n\tRefresh Token Hash: }wK銕暍觏?竭x腤聠??菆\u0017???\tExpiration Time: 17:09:24 08.20.15 (1440090564)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:27 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:27 INF: FileCache: onAfterAccess\r\n15:36:28 INF: AuthenticationContext: AuthenticationContext\r\n15:36:28 INF: Authenticator: detectAuthorityType\r\n15:36:28 INF: Authenticator: isAdfsAuthority: '0'\r\n15:36:28 INF: AuthenticationContext: acquireToken\r\n15:36:28 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:28 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:28 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:28 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:28 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://sts.aadrm.com/_sts/oauth/\r\n\tResource: api.aadrm.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (1 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:28 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:28 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:28 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:28 INF: Authenticator: updateFromTemplateAsync\r\n15:36:28 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:28 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:28 INF: FileCache: onBeforeAccess\r\n15:36:28 INF: FileCache: readCache\r\n15:36:28 INF: TokenCache: deserialize\r\n15:36:28 INF: AuthenticationResult: deserialize\r\n15:36:28 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://sts.aadrm.com/_sts/oauth/; resource: api.aadrm.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 1718433536864167329;\r\n15:36:28 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:28 INF: TokenCache: loadFromCache\r\n15:36:28 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:36:28 INF: TokenCache: Local time UTC: '07:36:28 08.20.15', token expiresOn: 17:09:24 08.20.15 (1440090564)\r\n15:36:28 INF: TokenCache: A matching token was found in the cache\r\n15:36:28 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:28 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: 祘x??R\u0002曵鄆撤$k??z?谦!蕺 p\\\r\n\tRefresh Token Hash: }wK銕暍觏?竭x腤聠??菆\u0017???\tExpiration Time: 17:09:24 08.20.15 (1440090564)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:28 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:28 INF: FileCache: onAfterAccess\r\n15:36:33 INF: HttpHelperQt: addCACertificateBase64\r\n15:36:33 INF: local: addCACertificate\r\n15:36:33 INF: HttpHelperQt: addCACertificateDer\r\n15:36:33 INF: local: addCACertificate\r\n15:36:33 INF: AuthenticationContext: AuthenticationContext\r\n15:36:33 INF: Authenticator: detectAuthorityType\r\n15:36:33 INF: Authenticator: isAdfsAuthority: '0'\r\n15:36:33 INF: AuthenticationContext: acquireToken\r\n15:36:33 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:33 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:33 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:33 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:33 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://sts.aadrm.com/_sts/oauth/\r\n\tResource: api.aadrm.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (1 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:33 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:33 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:33 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:33 INF: Authenticator: updateFromTemplateAsync\r\n15:36:33 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:33 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:33 INF: FileCache: onBeforeAccess\r\n15:36:33 INF: FileCache: readCache\r\n15:36:33 INF: TokenCache: deserialize\r\n15:36:33 INF: AuthenticationResult: deserialize\r\n15:36:33 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://sts.aadrm.com/_sts/oauth/; resource: api.aadrm.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 1718433536864167329;\r\n15:36:33 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:33 INF: TokenCache: loadFromCache\r\n15:36:33 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:36:33 INF: TokenCache: Local time UTC: '07:36:33 08.20.15', token expiresOn: 17:09:24 08.20.15 (1440090564)\r\n15:36:33 INF: TokenCache: A matching token was found in the cache\r\n15:36:33 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:33 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: 祘x??R\u0002曵鄆撤$k??z?谦!蕺 p\\\r\n\tRefresh Token Hash: }wK銕暍觏?竭x腤聠??菆\u0017???\tExpiration Time: 17:09:24 08.20.15 (1440090564)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:33 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:33 INF: FileCache: onAfterAccess\r\n15:36:40 INF: FileCache: path: /home/ubuntu/.ms-ad/token_cache.dat\r\n15:36:40 INF: HttpHelperQt: addCACertificateBase64\r\n15:36:40 INF: local: addCACertificate\r\n15:36:40 INF: HttpHelperQt: addCACertificateDer\r\n15:36:40 INF: local: addCACertificate\r\n15:36:40 INF: AuthenticationContext: AuthenticationContext\r\n15:36:40 INF: Authenticator: detectAuthorityType\r\n15:36:40 INF: Authenticator: isAdfsAuthority: '0'\r\n15:36:40 INF: AuthenticationContext: acquireToken\r\n15:36:40 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:40 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:40 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:40 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:40 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://sts.aadrm.com/_sts/oauth/\r\n\tResource: api.aadrm.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (0 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:40 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:40 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:40 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:40 INF: Authenticator: updateFromTemplateAsync\r\n15:36:40 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:40 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:40 INF: FileCache: onBeforeAccess\r\n15:36:40 INF: FileCache: readCache\r\n15:36:40 INF: TokenCache: deserialize\r\n15:36:40 INF: AuthenticationResult: deserialize\r\n15:36:40 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://sts.aadrm.com/_sts/oauth/; resource: api.aadrm.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 1718433536864167329;\r\n15:36:40 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:40 INF: TokenCache: loadFromCache\r\n15:36:40 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:36:40 INF: TokenCache: Local time UTC: '07:36:40 08.20.15', token expiresOn: 17:09:24 08.20.15 (1440090564)\r\n15:36:40 INF: TokenCache: A matching token was found in the cache\r\n15:36:40 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:40 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: 祘x??R\u0002曵鄆撤$k??z?谦!蕺 p\\\r\n\tRefresh Token Hash: }wK銕暍觏?竭x腤聠??菆\u0017???\tExpiration Time: 17:09:24 08.20.15 (1440090564)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:40 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:40 INF: FileCache: onAfterAccess\r\n15:36:51 INF: FileCache: clear\r\n15:36:51 INF: TokenCache: clear\r\n15:36:51 INF: FileCache: onBeforeAccess\r\n15:36:51 INF: FileCache: readCache\r\n15:36:51 INF: TokenCache: deserialize\r\n15:36:51 INF: AuthenticationResult: deserialize\r\n15:36:51 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://sts.aadrm.com/_sts/oauth/; resource: api.aadrm.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 1718433536864167329;\r\n15:36:51 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:51 INF: FileCache: onAfterAccess\r\n15:36:51 INF: FileCache: writeCache\r\n15:36:51 INF: TokenCache: serialize\r\n15:36:51 INF: TokenCache: Serializing token cache with 0 items.\r\n15:36:51 INF: HttpHelperQt: addCACertificateBase64\r\n15:36:51 INF: local: addCACertificate\r\n15:36:51 INF: HttpHelperQt: addCACertificateDer\r\n15:36:51 INF: local: addCACertificate\r\n15:36:52 INF: AuthenticationContext: AuthenticationContext\r\n15:36:52 INF: Authenticator: detectAuthorityType\r\n15:36:52 INF: Authenticator: isAdfsAuthority: '1'\r\n15:36:52 INF: AuthenticationContext: acquireToken\r\n15:36:52 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:52 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:52 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:52 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:52 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/\r\n\tResource: api.rms.rest.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (0 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:52 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:52 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:52 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:52 INF: Authenticator: updateFromTemplateAsync\r\n15:36:52 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:52 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:52 INF: FileCache: onBeforeAccess\r\n15:36:52 INF: FileCache: readCache\r\n15:36:52 INF: FileCache: Cache file doesn't exist! '/home/ubuntu/.ms-ad/token_cache.dat'\r\n15:36:52 INF: TokenCache: loadFromCache\r\n15:36:52 INF: TokenCache: No matching token was found in the cache\r\n15:36:52 INF: AcquireTokenInteractiveHandler: preTokenRequest\r\n15:36:52 INF: AcquireTokenHandlerBase: preTokenRequest\r\n15:36:52 INF: AcquireTokenInteractiveHandler: acquireAuthorization\r\n15:36:52 INF: AcquireTokenInteractiveHandler: sendAuthorizeRequest\r\n15:36:52 INF: AcquireTokenInteractiveHandler: includeFormsAuthParams\r\n15:36:52 INF: AcquireTokenInteractiveHandler: createAuthorizationUri\r\n15:36:52 INF: AcquireTokenInteractiveHandler: createAuthorizationRequest\r\n15:36:57 INF: OAuth2Response: parseAuthorizeResponse\r\n15:36:57 INF: AcquireTokenInteractiveHandler: verifyAuthorizationResult\r\n15:36:57 INF: AcquireTokenHandlerBase: sendTokenRequestAsync\r\n15:36:57 INF: AcquireTokenHandlerBase: sendHttpMessageAsync\r\n15:36:57 INF: HttpHelperQt: sendPostRequestAndDeserializeJsonResponseAsync\r\n15:36:57 INF: HttpHelperQt: createRequest\r\n15:36:57 INF: HttpHelperQt: jobPost\r\n15:36:57 INF: HttpHelperQt: deserializeTokenResponse\r\n15:36:57 INF: HttpHelperQt: logRequestHeaders\r\n15:36:57 INF: HttpHelperQt: --> Headers:\r\n15:36:57 INF: HttpHelperQt: User-Agent: x-client-DM\r\n15:36:57 INF: HttpHelperQt: Content-Type: application/x-www-form-urlencoded\r\n15:36:57 INF: HttpHelperQt: x-client-Ver: 0.1\r\n15:36:57 INF: HttpHelperQt: x-client-SKU: RMSAuth\r\n15:36:57 INF: HttpHelperQt: client-request-id: {a68765f9-b9a6-4c22-96fc-d22f7c505c66}\r\n15:36:57 INF: HttpHelperQt: return-client-request-id: true\r\n15:36:57 INF: HttpHelperQt: request url:  https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/token\r\n15:36:57 INF: HttpHelperQt: request body: redirect_uri=com.foxitsoftware.com.reader-for-linux://authorize&code=AAAAAAAAAAAAAAAAAAAAAA.nsGnUxOp0ggNAogpJg7csPwDEfA.GoshsIxkQ99HtcdDZxnZIhNbt7sCa9HgNb7KEnx_5dpcgyJF568NaPyzO7v_8d2ZU4vqZBS9-tjUXIPWk5kD7U1GSn1euJF-heuOLHZv0V7Nh_NvWcl5NYKow408snc4XJDH_6_OGwPnREn5YPcNFzyME7J-L0eyc4tDdtLyZQyddLIpS6l1l2Lii-E0PJm316uDuJoFvvJwbPB_sVJhZkLqv65L1dF9g8ie8vjIlY0fG78mDpACW3MNXYuOFmWOnlRnrMwbAa7flCDV6IOTcbwO714HTuAH-HAUfZ1qVM4QQuH6lCNF_yiUL2B8DtaGAqYeNDpmBJUVM6aIjoKQ9g&grant_type=authorization_code&client_id=f3295a1c-bcfe-4430-80bf-1c0a5636e8e8&resource=api.rms.rest.com\r\n15:36:57 INF: HttpHelperQt: verifyCorrelationIdHeaderInReponse\r\n15:36:57 INF: HttpHelperQt: deserializeTokenResponse\r\n15:36:57 INF: OAuth2Response: parseTokenResponse\r\n15:36:57 INF: OAuth2Response: curTimeUTC: 07:36:57 08.20.15; expiresIn: 3600\r\n15:36:57 INF: OAuth2Response: tonken expiresOn: 08:36:57 08.20.15 (1440059817)\r\n15:36:57 INF: OAuth2Response: parseIdToken\r\n15:36:57 INF: AcquireTokenInteractiveHandler: postTokenRequest\r\n15:36:57 INF: AcquireTokenHandlerBase: postTokenRequest\r\n15:36:57 INF: Authenticator: updateTenantId\r\n15:36:57 INF: TokenCache: storeToCache\r\n15:36:57 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/; resource: api.rms.rest.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 4953687725061771904;\r\n15:36:57 INF: TokenCache: An item was added to the cache\r\n15:36:57 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/; resource: api.rms.rest.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 4953687725061771904;\r\n15:36:57 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:57 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: K?]o吤緕_v霯旆9\tpk??\u0005酡~?\r\n\tRefresh Token Hash: M劊穚鎓銽9疑S爕??N門?鯈\r\n\tExpiration Time: 08:36:57 08.20.15 (1440059817)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:57 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:57 INF: FileCache: onAfterAccess\r\n15:36:57 INF: FileCache: writeCache\r\n15:36:57 INF: TokenCache: serialize\r\n15:36:57 INF: TokenCache: Serializing token cache with 1 items.\r\n15:36:57 INF: AuthenticationResult: serialize\r\n15:36:58 INF: AuthenticationContext: AuthenticationContext\r\n15:36:58 INF: Authenticator: detectAuthorityType\r\n15:36:58 INF: Authenticator: isAdfsAuthority: '1'\r\n15:36:58 INF: AuthenticationContext: acquireToken\r\n15:36:58 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:36:58 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:36:58 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:36:58 INF: AcquireTokenHandlerBase: createCallState\r\n15:36:58 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/\r\n\tResource: api.rms.rest.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (1 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:36:58 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:36:58 INF: AcquireTokenHandlerBase: runAsync\r\n15:36:58 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:36:58 INF: Authenticator: updateFromTemplateAsync\r\n15:36:58 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:36:58 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:36:58 INF: FileCache: onBeforeAccess\r\n15:36:58 INF: FileCache: readCache\r\n15:36:58 INF: TokenCache: deserialize\r\n15:36:58 INF: AuthenticationResult: deserialize\r\n15:36:58 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/; resource: api.rms.rest.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 4953687725061771904;\r\n15:36:58 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:36:58 INF: TokenCache: loadFromCache\r\n15:36:58 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:36:58 INF: TokenCache: Local time UTC: '07:36:58 08.20.15', token expiresOn: 08:36:57 08.20.15 (1440059817)\r\n15:36:58 INF: TokenCache: A matching token was found in the cache\r\n15:36:58 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:36:58 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: K?]o吤緕_v霯旆9\tpk??\u0005酡~?\r\n\tRefresh Token Hash: M劊穚鎓銽9疑S爕??N門?鯈\r\n\tExpiration Time: 08:36:57 08.20.15 (1440059817)\r\n\tUser Hash: nullptr\r\n\t\r\n15:36:58 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:36:58 INF: FileCache: onAfterAccess\r\n15:37:06 INF: FileCache: path: /home/ubuntu/.ms-ad/token_cache.dat\r\n15:37:06 INF: HttpHelperQt: addCACertificateBase64\r\n15:37:06 INF: local: addCACertificate\r\n15:37:06 INF: HttpHelperQt: addCACertificateDer\r\n15:37:06 INF: local: addCACertificate\r\n15:37:06 INF: AuthenticationContext: AuthenticationContext\r\n15:37:06 INF: Authenticator: detectAuthorityType\r\n15:37:06 INF: Authenticator: isAdfsAuthority: '1'\r\n15:37:06 INF: AuthenticationContext: acquireToken\r\n15:37:06 INF: AuthenticationContext: acquireTokenCommonAsync\r\n15:37:06 INF: AuthenticationContext: createWebAuthenticationDialog\r\n15:37:06 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n15:37:06 INF: AcquireTokenHandlerBase: createCallState\r\n15:37:06 INF: AcquireTokenHandlerBase: === Token Acquisition started:\r\n\tAuthority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/\r\n\tResource: api.rms.rest.com\r\n\tClientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8\r\n\tCacheType: FileCache (0 items)\r\n\tAuthentication Target: 0\r\n\t\r\n15:37:06 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n15:37:06 INF: AcquireTokenHandlerBase: runAsync\r\n15:37:06 INF: AcquireTokenHandlerBase: preRunAsync\r\n15:37:06 INF: Authenticator: updateFromTemplateAsync\r\n15:37:06 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n15:37:06 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n15:37:06 INF: FileCache: onBeforeAccess\r\n15:37:06 INF: FileCache: readCache\r\n15:37:06 INF: TokenCache: deserialize\r\n15:37:06 INF: AuthenticationResult: deserialize\r\n15:37:06 INF: TokenCacheKey: TokenCacheKey::getHashCode(): authority: https://adfs.mobile.dev.foxitsoftware.cn/adfs/oauth2/authorize/; resource: api.rms.rest.com; clientId: f3295a1c-bcfe-4430-80bf-1c0a5636e8e8 uniqueId: ; tokenSubjectType_: 0; hashcode: 4953687725061771904;\r\n15:37:06 INF: TokenCache: Deserialized 1 items to token cache.\r\n15:37:06 INF: TokenCache: loadFromCache\r\n15:37:06 INF: TokenCache: An item matching the requested resource was found in the cache\r\n15:37:06 INF: TokenCache: Local time UTC: '07:37:06 08.20.15', token expiresOn: 08:36:57 08.20.15 (1440059817)\r\n15:37:06 INF: TokenCache: A matching token was found in the cache\r\n15:37:06 INF: AcquireTokenHandlerBase: postRunAsync\r\n15:37:06 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: K?]o吤緕_v霯旆9\tpk??\u0005酡~?\r\n\tRefresh Token Hash: M劊穚鎓銽9疑S爕??N門?鯈\r\n\tExpiration Time: 08:36:57 08.20.15 (1440059817)\r\n\tUser Hash: nullptr\r\n\t\r\n15:37:06 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n15:37:06 INF: FileCache: onAfterAccess\r\n\r\n<b>rms_log_153626-2008.log\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"END_USER_LICENSES_UR\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"END_USER_LICENSES_UR\" returning 0 result(s)\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PUBLISHING_LICENSES_UR\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PUBLISHING_LICENSES_UR\" returning 0 result(s)\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"TEMPLATES_UR\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"TEMPLATES_UR\" returning 0 result(s)\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"CLOUD_DIAGNOSTICS_UR\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"CLOUD_DIAGNOSTICS_UR\" returning 0 result(s)\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PERFORMANCE_UR\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PERFORMANCE_UR\" returning 0 result(s)\r\n15:36:26 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"DNS_CLIENT_RESULT\"\r\n15:36:26 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"DNS_CLIENT_RESULT\" returning 0 result(s)\r\n15:36:26 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/servicediscovery?email=mingjian_chen@msopentechtest01.onmicrosoft.com\r\n15:36:27 INF: Response StatusCode: 401\r\n15:36:27 ERR: error: Host requires authentication\r\n15:36:27 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/servicediscovery?email=mingjian_chen@msopentechtest01.onmicrosoft.com\r\n15:36:27 INF: Response StatusCode: 200\r\n15:36:27 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n15:36:28 INF: Response StatusCode: 401\r\n15:36:28 ERR: error: Host requires authentication\r\n15:36:28 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n15:36:30 INF: Response StatusCode: 200\r\n15:36:33 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n15:36:33 INF: Response StatusCode: 401\r\n15:36:33 ERR: error: Host requires authentication\r\n15:36:33 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n15:36:34 INF: Response StatusCode: 200\r\n15:36:40 INF: +RestClientCache::Lookup: cacheName=\"UR\", tag=\"mingjian_chen@msopentechtest01.onmicrosoft.com\"\r\n15:36:40 INF: -RestClientCache::Lookup: cacheName=\"UR\", tag=\"mingjian_chen@msopentechtest01.onmicrosoft.com\" returning 0 result(s)\r\n15:36:40 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/enduserlicenses\r\n15:36:40 INF: Response StatusCode: 401\r\n15:36:40 ERR: error: Host requires authentication\r\n15:36:40 INF: ==> HttpClientQt::POST https://api.aadrm.com/my/v1/enduserlicenses\r\n15:36:41 INF: Response StatusCode: 400\r\n15:36:41 ERR: error: Error downloading https://api.aadrm.com/my/v1/enduserlicenses - server replied: Bad Request\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"END_USER_LICENSES_UR\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"END_USER_LICENSES_UR\" returning 0 result(s)\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"PUBLISHING_LICENSES_UR\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"PUBLISHING_LICENSES_UR\" returning 0 result(s)\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"TEMPLATES_UR\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"TEMPLATES_UR\" returning 0 result(s)\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"CLOUD_DIAGNOSTICS_UR\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"CLOUD_DIAGNOSTICS_UR\" returning 0 result(s)\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"PERFORMANCE_UR\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"PERFORMANCE_UR\" returning 0 result(s)\r\n15:36:51 INF: +RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"DNS_CLIENT_RESULT\"\r\n15:36:51 INF: -RestClientCache::Lookup: cacheName=\"mobile.dev.foxitsoftware.cn\", tag=\"DNS_CLIENT_RESULT\" returning 0 result(s)\r\n15:36:51 INF: ==> HttpClientQt::GET https://adrms.mobile.dev.foxitsoftware.cn/my/v1/servicediscovery?email=administrator@mobile.dev.foxitsoftware.cn\r\n15:36:52 INF: Response StatusCode: 401\r\n15:36:52 ERR: error: Host requires authentication\r\n15:36:57 INF: ==> HttpClientQt::GET https://adrms.mobile.dev.foxitsoftware.cn/my/v1/servicediscovery?email=administrator@mobile.dev.foxitsoftware.cn\r\n15:36:58 INF: Response StatusCode: 200\r\n15:36:58 INF: ==> HttpClientQt::GET https://adrms.mobile.dev.foxitsoftware.cn/my/v1/templates\r\n15:36:58 INF: Response StatusCode: 401\r\n15:36:58 ERR: error: Host requires authentication\r\n15:36:58 INF: ==> HttpClientQt::GET https://adrms.mobile.dev.foxitsoftware.cn/my/v1/templates\r\n15:36:58 INF: Response StatusCode: 200\r\n15:37:06 INF: +RestClientCache::Lookup: cacheName=\"UR\", tag=\"administrator@mobile.dev.foxitsoftware.cn\"\r\n15:37:06 INF: -RestClientCache::Lookup: cacheName=\"UR\", tag=\"administrator@mobile.dev.foxitsoftware.cn\" returning 0 result(s)\r\n15:37:06 INF: ==> HttpClientQt::GET https://adrms.mobile.dev.foxitsoftware.cn/my/v1/enduserlicenses\r\n15:37:06 INF: Response StatusCode: 401\r\n15:37:06 ERR: error: Host requires authentication\r\n15:37:06 INF: ==> HttpClientQt::POST https://adrms.mobile.dev.foxitsoftware.cn/my/v1/enduserlicenses\r\n15:37:06 INF: Response StatusCode: 400\r\n15:37:06 ERR: error: Error downloading https://adrms.mobile.dev.foxitsoftware.cn/my/v1/enduserlicenses - server replied: Bad Request\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/comments/139118402","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/84#issuecomment-139118402","issue_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/84","id":139118402,"user":{"login":"prvijay","id":11347822,"avatar_url":"https://avatars.githubusercontent.com/u/11347822?v=3","gravatar_id":"","url":"https://api.github.com/users/prvijay","html_url":"https://github.com/prvijay","followers_url":"https://api.github.com/users/prvijay/followers","following_url":"https://api.github.com/users/prvijay/following{/other_user}","gists_url":"https://api.github.com/users/prvijay/gists{/gist_id}","starred_url":"https://api.github.com/users/prvijay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prvijay/subscriptions","organizations_url":"https://api.github.com/users/prvijay/orgs","repos_url":"https://api.github.com/users/prvijay/repos","events_url":"https://api.github.com/users/prvijay/events{/privacy}","received_events_url":"https://api.github.com/users/prvijay/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T05:03:05Z","updated_at":"2015-09-10T05:03:05Z","body":"@Kammy6679 - sorry, I didn't get the comment. Why should we not release the template pointer? Why can't Foxit release this pointer?"}}