{"action":"created","comment":{"url":"https://api.github.com/repos/readium/readium-sdk/pulls/comments/49749495","id":49749495,"diff_hunk":"@@ -45,6 +52,32 @@ bool EncryptionInfo::ParseXML(shared_ptr<xml::Node> node)\n         return false;\n     \n     _path = strings[0];\n+    \n+    // Added by DRM inside, T.H. Kim on 2015-04-15\n+    // To get additional information for the compressed and encrypted contents\n+    strings = xpath.Strings(\"./enc:EncryptionProperties/enc:EncryptionProperty/ep:compression/@method\", node);\n+    if (!strings.empty())\n+    {\n+        if (strings[0] == \"0\" || strings[0] == \"8\")\n+            _compression_method = strings[0];\n+        else\n+            return false;\n+        \n+    }\n+    else if  (strings.empty())\n+        _compression_method = \"0\";\n+    \n+    strings = xpath.Strings(\"./enc:EncryptionProperties/enc:EncryptionProperty/ep:compression/@sourceSize\", node);\n+    if (!strings.empty())\n+    {\n+        for ( int i = 0 ; i < strings[0].size() ; i++)\n+            if (strings[0][i] < '0' || strings[0][i] > '9' )\n+                return false;\n+        \n+        _uncompressed_size = strings[0];\n+    }\n+    /////////////////////////////////////////////////////////////////////////////\n+\n     return true;","path":"ePub3/ePub/encryption.cpp","position":53,"original_position":53,"commit_id":"b49f7cae31f49bb9dde69b760526a042262368ea","original_commit_id":"b49f7cae31f49bb9dde69b760526a042262368ea","user":{"login":"danielweck","id":625201,"avatar_url":"https://avatars.githubusercontent.com/u/625201?v=3","gravatar_id":"","url":"https://api.github.com/users/danielweck","html_url":"https://github.com/danielweck","followers_url":"https://api.github.com/users/danielweck/followers","following_url":"https://api.github.com/users/danielweck/following{/other_user}","gists_url":"https://api.github.com/users/danielweck/gists{/gist_id}","starred_url":"https://api.github.com/users/danielweck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielweck/subscriptions","organizations_url":"https://api.github.com/users/danielweck/orgs","repos_url":"https://api.github.com/users/danielweck/repos","events_url":"https://api.github.com/users/danielweck/events{/privacy}","received_events_url":"https://api.github.com/users/danielweck/received_events","type":"User","site_admin":false},"body":"Following discussion, we might want to consider `Compression` (upper case) and `method` + `originalLength` attribute names (instead of `size`). To be proposed to IDPF OCF specification as fix (EPUB31 revision?).","created_at":"2016-01-14T16:39:25Z","updated_at":"2016-01-14T16:39:25Z","html_url":"https://github.com/readium/readium-sdk/pull/219#discussion_r49749495","pull_request_url":"https://api.github.com/repos/readium/readium-sdk/pulls/219","_links":{"self":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/comments/49749495"},"html":{"href":"https://github.com/readium/readium-sdk/pull/219#discussion_r49749495"},"pull_request":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/219"}}},"pull_request":{"url":"https://api.github.com/repos/readium/readium-sdk/pulls/219","id":51276517,"html_url":"https://github.com/readium/readium-sdk/pull/219","diff_url":"https://github.com/readium/readium-sdk/pull/219.diff","patch_url":"https://github.com/readium/readium-sdk/pull/219.patch","issue_url":"https://api.github.com/repos/readium/readium-sdk/issues/219","number":219,"state":"closed","locked":false,"title":"Conflict resolved full request for update Radium SDK to support LCP implementation","user":{"login":"drminside","id":12824061,"avatar_url":"https://avatars.githubusercontent.com/u/12824061?v=3","gravatar_id":"","url":"https://api.github.com/users/drminside","html_url":"https://github.com/drminside","followers_url":"https://api.github.com/users/drminside/followers","following_url":"https://api.github.com/users/drminside/following{/other_user}","gists_url":"https://api.github.com/users/drminside/gists{/gist_id}","starred_url":"https://api.github.com/users/drminside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drminside/subscriptions","organizations_url":"https://api.github.com/users/drminside/orgs","repos_url":"https://api.github.com/users/drminside/repos","events_url":"https://api.github.com/users/drminside/events{/privacy}","received_events_url":"https://api.github.com/users/drminside/received_events","type":"User","site_admin":false},"body":"I send a pull request again which is conflict resolved from #216 \r\n","created_at":"2015-11-19T20:31:40Z","updated_at":"2016-01-14T16:39:25Z","closed_at":"2015-11-23T23:29:23Z","merged_at":"2015-11-23T23:29:23Z","merge_commit_sha":"897f0aa15129a07548eb63371fb8a59b12daf1a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/readium/readium-sdk/pulls/219/commits","review_comments_url":"https://api.github.com/repos/readium/readium-sdk/pulls/219/comments","review_comment_url":"https://api.github.com/repos/readium/readium-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/readium/readium-sdk/issues/219/comments","statuses_url":"https://api.github.com/repos/readium/readium-sdk/statuses/b49f7cae31f49bb9dde69b760526a042262368ea","head":{"label":"drminside:develop","ref":"develop","sha":"b49f7cae31f49bb9dde69b760526a042262368ea","user":{"login":"drminside","id":12824061,"avatar_url":"https://avatars.githubusercontent.com/u/12824061?v=3","gravatar_id":"","url":"https://api.github.com/users/drminside","html_url":"https://github.com/drminside","followers_url":"https://api.github.com/users/drminside/followers","following_url":"https://api.github.com/users/drminside/following{/other_user}","gists_url":"https://api.github.com/users/drminside/gists{/gist_id}","starred_url":"https://api.github.com/users/drminside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drminside/subscriptions","organizations_url":"https://api.github.com/users/drminside/orgs","repos_url":"https://api.github.com/users/drminside/repos","events_url":"https://api.github.com/users/drminside/events{/privacy}","received_events_url":"https://api.github.com/users/drminside/received_events","type":"User","site_admin":false},"repo":{"id":44787924,"name":"readium-sdk-1","full_name":"drminside/readium-sdk-1","owner":{"login":"drminside","id":12824061,"avatar_url":"https://avatars.githubusercontent.com/u/12824061?v=3","gravatar_id":"","url":"https://api.github.com/users/drminside","html_url":"https://github.com/drminside","followers_url":"https://api.github.com/users/drminside/followers","following_url":"https://api.github.com/users/drminside/following{/other_user}","gists_url":"https://api.github.com/users/drminside/gists{/gist_id}","starred_url":"https://api.github.com/users/drminside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drminside/subscriptions","organizations_url":"https://api.github.com/users/drminside/orgs","repos_url":"https://api.github.com/users/drminside/repos","events_url":"https://api.github.com/users/drminside/events{/privacy}","received_events_url":"https://api.github.com/users/drminside/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drminside/readium-sdk-1","description":"A C++ ePub renderer SDK of similar capability to Adobe's RMSDK.","fork":true,"url":"https://api.github.com/repos/drminside/readium-sdk-1","forks_url":"https://api.github.com/repos/drminside/readium-sdk-1/forks","keys_url":"https://api.github.com/repos/drminside/readium-sdk-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drminside/readium-sdk-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drminside/readium-sdk-1/teams","hooks_url":"https://api.github.com/repos/drminside/readium-sdk-1/hooks","issue_events_url":"https://api.github.com/repos/drminside/readium-sdk-1/issues/events{/number}","events_url":"https://api.github.com/repos/drminside/readium-sdk-1/events","assignees_url":"https://api.github.com/repos/drminside/readium-sdk-1/assignees{/user}","branches_url":"https://api.github.com/repos/drminside/readium-sdk-1/branches{/branch}","tags_url":"https://api.github.com/repos/drminside/readium-sdk-1/tags","blobs_url":"https://api.github.com/repos/drminside/readium-sdk-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drminside/readium-sdk-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drminside/readium-sdk-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/drminside/readium-sdk-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drminside/readium-sdk-1/statuses/{sha}","languages_url":"https://api.github.com/repos/drminside/readium-sdk-1/languages","stargazers_url":"https://api.github.com/repos/drminside/readium-sdk-1/stargazers","contributors_url":"https://api.github.com/repos/drminside/readium-sdk-1/contributors","subscribers_url":"https://api.github.com/repos/drminside/readium-sdk-1/subscribers","subscription_url":"https://api.github.com/repos/drminside/readium-sdk-1/subscription","commits_url":"https://api.github.com/repos/drminside/readium-sdk-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/drminside/readium-sdk-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/drminside/readium-sdk-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/drminside/readium-sdk-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/drminside/readium-sdk-1/contents/{+path}","compare_url":"https://api.github.com/repos/drminside/readium-sdk-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drminside/readium-sdk-1/merges","archive_url":"https://api.github.com/repos/drminside/readium-sdk-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drminside/readium-sdk-1/downloads","issues_url":"https://api.github.com/repos/drminside/readium-sdk-1/issues{/number}","pulls_url":"https://api.github.com/repos/drminside/readium-sdk-1/pulls{/number}","milestones_url":"https://api.github.com/repos/drminside/readium-sdk-1/milestones{/number}","notifications_url":"https://api.github.com/repos/drminside/readium-sdk-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drminside/readium-sdk-1/labels{/name}","releases_url":"https://api.github.com/repos/drminside/readium-sdk-1/releases{/id}","created_at":"2015-10-23T03:12:28Z","updated_at":"2016-01-11T07:21:13Z","pushed_at":"2016-01-13T03:09:09Z","git_url":"git://github.com/drminside/readium-sdk-1.git","ssh_url":"git@github.com:drminside/readium-sdk-1.git","clone_url":"https://github.com/drminside/readium-sdk-1.git","svn_url":"https://github.com/drminside/readium-sdk-1","homepage":null,"size":136866,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"readium:develop","ref":"develop","sha":"2494766fb5d63361f47c88156d5b4ad0173de109","user":{"login":"readium","id":1402124,"avatar_url":"https://avatars.githubusercontent.com/u/1402124?v=3","gravatar_id":"","url":"https://api.github.com/users/readium","html_url":"https://github.com/readium","followers_url":"https://api.github.com/users/readium/followers","following_url":"https://api.github.com/users/readium/following{/other_user}","gists_url":"https://api.github.com/users/readium/gists{/gist_id}","starred_url":"https://api.github.com/users/readium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readium/subscriptions","organizations_url":"https://api.github.com/users/readium/orgs","repos_url":"https://api.github.com/users/readium/repos","events_url":"https://api.github.com/users/readium/events{/privacy}","received_events_url":"https://api.github.com/users/readium/received_events","type":"Organization","site_admin":false},"repo":{"id":7470534,"name":"readium-sdk","full_name":"readium/readium-sdk","owner":{"login":"readium","id":1402124,"avatar_url":"https://avatars.githubusercontent.com/u/1402124?v=3","gravatar_id":"","url":"https://api.github.com/users/readium","html_url":"https://github.com/readium","followers_url":"https://api.github.com/users/readium/followers","following_url":"https://api.github.com/users/readium/following{/other_user}","gists_url":"https://api.github.com/users/readium/gists{/gist_id}","starred_url":"https://api.github.com/users/readium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/readium/subscriptions","organizations_url":"https://api.github.com/users/readium/orgs","repos_url":"https://api.github.com/users/readium/repos","events_url":"https://api.github.com/users/readium/events{/privacy}","received_events_url":"https://api.github.com/users/readium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/readium/readium-sdk","description":"A C++ ePub renderer SDK of similar capability to Adobe's RMSDK.","fork":false,"url":"https://api.github.com/repos/readium/readium-sdk","forks_url":"https://api.github.com/repos/readium/readium-sdk/forks","keys_url":"https://api.github.com/repos/readium/readium-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/readium/readium-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/readium/readium-sdk/teams","hooks_url":"https://api.github.com/repos/readium/readium-sdk/hooks","issue_events_url":"https://api.github.com/repos/readium/readium-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/readium/readium-sdk/events","assignees_url":"https://api.github.com/repos/readium/readium-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/readium/readium-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/readium/readium-sdk/tags","blobs_url":"https://api.github.com/repos/readium/readium-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/readium/readium-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/readium/readium-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/readium/readium-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/readium/readium-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/readium/readium-sdk/languages","stargazers_url":"https://api.github.com/repos/readium/readium-sdk/stargazers","contributors_url":"https://api.github.com/repos/readium/readium-sdk/contributors","subscribers_url":"https://api.github.com/repos/readium/readium-sdk/subscribers","subscription_url":"https://api.github.com/repos/readium/readium-sdk/subscription","commits_url":"https://api.github.com/repos/readium/readium-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/readium/readium-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/readium/readium-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/readium/readium-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/readium/readium-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/readium/readium-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/readium/readium-sdk/merges","archive_url":"https://api.github.com/repos/readium/readium-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/readium/readium-sdk/downloads","issues_url":"https://api.github.com/repos/readium/readium-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/readium/readium-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/readium/readium-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/readium/readium-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/readium/readium-sdk/labels{/name}","releases_url":"https://api.github.com/repos/readium/readium-sdk/releases{/id}","created_at":"2013-01-06T17:44:23Z","updated_at":"2015-12-18T12:34:54Z","pushed_at":"2016-01-13T03:09:10Z","git_url":"git://github.com/readium/readium-sdk.git","ssh_url":"git@github.com:readium/readium-sdk.git","clone_url":"https://github.com/readium/readium-sdk.git","svn_url":"https://github.com/readium/readium-sdk","homepage":null,"size":137142,"stargazers_count":192,"watchers_count":192,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":128,"mirror_url":null,"open_issues_count":71,"forks":128,"open_issues":71,"watchers":192,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/219"},"html":{"href":"https://github.com/readium/readium-sdk/pull/219"},"issue":{"href":"https://api.github.com/repos/readium/readium-sdk/issues/219"},"comments":{"href":"https://api.github.com/repos/readium/readium-sdk/issues/219/comments"},"review_comments":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/219/comments"},"review_comment":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/readium/readium-sdk/pulls/219/commits"},"statuses":{"href":"https://api.github.com/repos/readium/readium-sdk/statuses/b49f7cae31f49bb9dde69b760526a042262368ea"}}}}