{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/68","labels_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/68/comments","events_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/68/events","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/68","id":98075492,"number":68,"title":"Cannot open RMS protected PDF files created by Windows SDK with Linux SDK","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":22,"created_at":"2015-07-30T03:03:13Z","updated_at":"2015-09-10T15:08:26Z","closed_at":null,"body":"1, Protect a PDF file by MSIPC on Windows\r\n2. This protected PDF can be opened by Mac SDK, but can't be opened by Linux SDK. \r\n\r\nCalling the following method, we get the blow error message\r\n\r\nMethod:\r\nm_pUserPolicyResult = UserPolicy::Acquire(publishLicense, csUserID, m_authenticationCallback,\r\n                                                  m_consentCallback, POL_None, RESPONSE_CACHE_INMEMORY);\r\n\r\nMessage: \r\n![rms](https://cloud.githubusercontent.com/assets/10860444/8974939/3f7b1e3c-36aa-11e5-97d7-23a4e5d13e09.png)\r\n\r\n\r\nrms_log_201138-2807.log：\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"END_USER_LICENSES_UR\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"END_USER_LICENSES_UR\" returning 0 result(s)\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PUBLISHING_LICENSES_UR\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PUBLISHING_LICENSES_UR\" returning 0 result(s)\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"TEMPLATES_UR\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"TEMPLATES_UR\" returning 0 result(s)\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"CLOUD_DIAGNOSTICS_UR\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"CLOUD_DIAGNOSTICS_UR\" returning 0 result(s)\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PERFORMANCE_UR\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"PERFORMANCE_UR\" returning 0 result(s)\r\n20:11:38 INF: +RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"DNS_CLIENT_RESULT\"\r\n20:11:38 INF: -RestClientCache::Lookup: cacheName=\"msopentechtest01.onmicrosoft.com\", tag=\"DNS_CLIENT_RESULT\" returning 0 result(s)\r\n20:11:39 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/servicediscovery?email=mingjian_chen@msopentechtest01.onmicrosoft.com\r\n20:11:42 INF: Response StatusCode: 401\r\n20:11:42 ERR: error: Host requires authentication\r\n20:11:42 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/servicediscovery?email=mingjian_chen@msopentechtest01.onmicrosoft.com\r\n20:11:42 INF: Response StatusCode: 200\r\n20:11:42 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n20:11:43 INF: Response StatusCode: 401\r\n20:11:43 ERR: error: Host requires authentication\r\n20:11:43 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/templates\r\n20:11:46 INF: Response StatusCode: 200\r\n20:11:46 INF: ==> HttpClientQt::GET https://api.aadrm.com/my/v1/enduserlicenses\r\n20:11:46 INF: Response StatusCode: 401\r\n20:11:46 ERR: error: Host requires authentication\r\n20:11:46 INF: ==> HttpClientQt::POST https://api.aadrm.com/my/v1/enduserlicenses\r\n20:11:47 INF: Response StatusCode: 400\r\n20:11:47 ERR: error: Error downloading https://api.aadrm.com/my/v1/enduserlicenses - server replied: Bad Request\r\n\r\nrmsauth_201138-0728.log：\r\n20:11:38 INF: FileCache: path: /home/ubuntu/.ms-ad/token_cache.dat\r\n20:11:42 INF: AuthenticationContext: AuthenticationContext\r\n20:11:42 INF: Authenticator: detectAuthorityType\r\n20:11:42 INF: Authenticator: isAdfsAuthority: '0'\r\n20:11:42 INF: AuthenticationContext: acquireToken\r\n20:11:42 INF: AuthenticationContext: acquireTokenCommonAsync\r\n20:11:42 INF: AuthenticationContext: createWebAuthenticationDialog\r\n20:11:42 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n20:11:42 INF: AcquireTokenHandlerBase: createCallState\r\n20:11:42 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\n20:11:42 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n20:11:42 INF: AcquireTokenHandlerBase: runAsync\r\n20:11:42 INF: AcquireTokenHandlerBase: preRunAsync\r\n20:11:42 INF: Authenticator: updateFromTemplateAsync\r\n20:11:42 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n20:11:42 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n20:11:42 INF: FileCache: onBeforeAccess\r\n20:11:42 INF: FileCache: readCache\r\n20:11:42 INF: TokenCache: deserialize\r\n20:11:42 INF: AuthenticationResult: deserialize\r\n20:11:42 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\n20:11:42 INF: TokenCache: Deserialized 1 items to token cache.\r\n20:11:42 INF: TokenCache: loadFromCache\r\n20:11:42 INF: TokenCache: An item matching the requested resource was found in the cache\r\n20:11:42 INF: TokenCache: Local time UTC: '12:11:42 07.28.15', token expiresOn: 22:10:57 07.28.15 (1438121457)\r\n20:11:42 INF: TokenCache: A matching token was found in the cache\r\n20:11:42 INF: AcquireTokenHandlerBase: postRunAsync\r\n20:11:42 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: U\u0006隨^PI?!\u001C,<?G\u001Fd保nu?7禋?h糞\r\n\tRefresh Token Hash: 筿愄@骕@袎 眀鈅\u0017碴*⑧L勢?興0\u001FT?\tExpiration Time: 22:10:57 07.28.15 (1438121457)\r\n\tUser Hash: nullptr\r\n\t\r\n20:11:42 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n20:11:42 INF: FileCache: onAfterAccess\r\n20:11:43 INF: AuthenticationContext: AuthenticationContext\r\n20:11:43 INF: Authenticator: detectAuthorityType\r\n20:11:43 INF: Authenticator: isAdfsAuthority: '0'\r\n20:11:43 INF: AuthenticationContext: acquireToken\r\n20:11:43 INF: AuthenticationContext: acquireTokenCommonAsync\r\n20:11:43 INF: AuthenticationContext: createWebAuthenticationDialog\r\n20:11:43 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n20:11:43 INF: AcquireTokenHandlerBase: createCallState\r\n20:11:43 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\n20:11:43 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n20:11:43 INF: AcquireTokenHandlerBase: runAsync\r\n20:11:43 INF: AcquireTokenHandlerBase: preRunAsync\r\n20:11:43 INF: Authenticator: updateFromTemplateAsync\r\n20:11:43 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n20:11:43 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n20:11:43 INF: FileCache: onBeforeAccess\r\n20:11:43 INF: FileCache: readCache\r\n20:11:43 INF: TokenCache: deserialize\r\n20:11:43 INF: AuthenticationResult: deserialize\r\n20:11:43 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\n20:11:43 INF: TokenCache: Deserialized 1 items to token cache.\r\n20:11:43 INF: TokenCache: loadFromCache\r\n20:11:43 INF: TokenCache: An item matching the requested resource was found in the cache\r\n20:11:43 INF: TokenCache: Local time UTC: '12:11:43 07.28.15', token expiresOn: 22:10:57 07.28.15 (1438121457)\r\n20:11:43 INF: TokenCache: A matching token was found in the cache\r\n20:11:43 INF: AcquireTokenHandlerBase: postRunAsync\r\n20:11:43 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: U\u0006隨^PI?!\u001C,<?G\u001Fd保nu?7禋?h糞\r\n\tRefresh Token Hash: 筿愄@骕@袎 眀鈅\u0017碴*⑧L勢?興0\u001FT?\tExpiration Time: 22:10:57 07.28.15 (1438121457)\r\n\tUser Hash: nullptr\r\n\t\r\n20:11:43 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n20:11:43 INF: FileCache: onAfterAccess\r\n20:11:46 INF: FileCache: path: /home/ubuntu/.ms-ad/token_cache.dat\r\n20:11:46 INF: AuthenticationContext: AuthenticationContext\r\n20:11:46 INF: Authenticator: detectAuthorityType\r\n20:11:46 INF: Authenticator: isAdfsAuthority: '0'\r\n20:11:46 INF: AuthenticationContext: acquireToken\r\n20:11:46 INF: AuthenticationContext: acquireTokenCommonAsync\r\n20:11:46 INF: AuthenticationContext: createWebAuthenticationDialog\r\n20:11:46 INF: AcquireTokenHandlerBase: AcquireTokenHandlerBase\r\n20:11:46 INF: AcquireTokenHandlerBase: createCallState\r\n20:11:46 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\n20:11:46 INF: AcquireTokenInteractiveHandler: AcquireTokenInteractiveHandler\r\n20:11:46 INF: AcquireTokenHandlerBase: runAsync\r\n20:11:46 INF: AcquireTokenHandlerBase: preRunAsync\r\n20:11:46 INF: Authenticator: updateFromTemplateAsync\r\n20:11:46 INF: AcquireTokenHandlerBase: validateAuthorityType\r\n20:11:46 INF: AcquireTokenHandlerBase: notifyBeforeAccessCache\r\n20:11:46 INF: FileCache: onBeforeAccess\r\n20:11:46 INF: FileCache: readCache\r\n20:11:46 INF: TokenCache: deserialize\r\n20:11:46 INF: AuthenticationResult: deserialize\r\n20:11:46 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\n20:11:46 INF: TokenCache: Deserialized 1 items to token cache.\r\n20:11:46 INF: TokenCache: loadFromCache\r\n20:11:46 INF: TokenCache: An item matching the requested resource was found in the cache\r\n20:11:46 INF: TokenCache: Local time UTC: '12:11:46 07.28.15', token expiresOn: 22:10:57 07.28.15 (1438121457)\r\n20:11:46 INF: TokenCache: A matching token was found in the cache\r\n20:11:46 INF: AcquireTokenHandlerBase: postRunAsync\r\n20:11:46 INF: AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:\r\n\tAccess Token Hash: U\u0006隨^PI?!\u001C,<?G\u001Fd保nu?7禋?h糞\r\n\tRefresh Token Hash: 筿愄@骕@袎 眀鈅\u0017碴*⑧L勢?興0\u001FT?\tExpiration Time: 22:10:57 07.28.15 (1438121457)\r\n\tUser Hash: nullptr\r\n\t\r\n20:11:46 INF: AcquireTokenHandlerBase: notifyAfterAccessCache\r\n20:11:46 INF: FileCache: onAfterAccess\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/comments/139274706","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/68#issuecomment-139274706","issue_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/68","id":139274706,"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-10T15:08:25Z","updated_at":"2015-09-10T15:08:25Z","body":"@AgentRX - excellent! Yes, we will make the platform fix and we are tracking it. It requires changes in the service and the agent and haven't gotten around to doing it. Till that point, we would need to set the Web platform. Please resolve the issue as I have merged the changes as well.\r\n\r\n@Kammy6679 - please validate the fix and reactivate if required."}}