How does ATG calculate a checksum on a file asset

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…

-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 Algorithm Bytes    : 0x3c1aab4c8b8c9a0b 4330962336917264907
Via Simple Algorithm Bytes          : 0x3c1aab4c8b8c9a0b 4330962336917264907
Via Direct Table Algorithm Streaming: 0x3c1aab4c8b8c9a0b 4330962336917264907
Via Simple Algorithm Streaming      : 0x3c1aab4c8b8c9a0b 4330962336917264907
-bash-4.1$

…and in the database…

	    	
	
	

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.