{"id":3645,"date":"2014-04-24T12:46:52","date_gmt":"2014-04-24T17:46:52","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=3645"},"modified":"2014-04-24T12:46:52","modified_gmt":"2014-04-24T17:46:52","slug":"how-does-atg-calculate-a-checksum-on-a-file-asset","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2014\/04\/24\/how-does-atg-calculate-a-checksum-on-a-file-asset\/","title":{"rendered":"How does ATG calculate a checksum on a file asset"},"content":{"rendered":"<p>Here is how a checksum is calculated by ATG.  This could be invaluable if you ever have to fix data.<\/p>\n<p>Get the checksum on the publishing agent filesystem&#8230;<\/p>\n<pre>\r\n-bash-4.1$ pwd\r\n\/opt\/jboss\/kits\/current\/atg_bootstrap.war\/WEB-INF\/ATG-INF\/DAS\/lib\r\n-bash-4.1$ java -cp classes.jar atg.core.io.CRC64 \/tmp\/MobileHomePageTargeter.properties\r\nVia Direct Table Algorithm Bytes    : 0x3c1aab4c8b8c9a0b 4330962336917264907\r\nVia Simple Algorithm Bytes          : 0x3c1aab4c8b8c9a0b 4330962336917264907\r\nVia Direct Table Algorithm Streaming: 0x3c1aab4c8b8c9a0b 4330962336917264907\r\nVia Simple Algorithm Streaming      : 0x3c1aab4c8b8c9a0b 4330962336917264907\r\n-bash-4.1$\r\n<\/pre>\n<p>&#8230;and in the database&#8230;<\/p>\n<pre lang=\"sql>\r\nSQL> select checksum\r\n  2    from atg_pub_prod.epub_file_asset\r\n  3    where filename = 'MobileHomePageTargeter.properties'\r\n  4      and last_modified = (select max(last_modified)\r\n  5                             from atg_pub_prod.epub_file_asset\r\n  6                             where filename = 'MobileHomePageTargeter.properties');\r\n\r\n               CHECKSUM\r\n-----------------------\r\n    4330962336917264907\r\n\r\nSQL> \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is how a checksum is calculated by ATG. This could be invaluable if you ever have to fix data. Get the checksum on the publishing agent filesystem&#8230; -bash-4.1$ pwd \/opt\/jboss\/kits\/current\/atg_bootstrap.war\/WEB-INF\/ATG-INF\/DAS\/lib -bash-4.1$ java -cp classes.jar atg.core.io.CRC64 \/tmp\/MobileHomePageTargeter.properties Via Direct Table&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2014\/04\/24\/how-does-atg-calculate-a-checksum-on-a-file-asset\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[37,38],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/3645"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3645"}],"version-history":[{"count":4,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/3645\/revisions"}],"predecessor-version":[{"id":3649,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/3645\/revisions\/3649"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3645"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}