boxen / puppet-java

Install Java
http://boxen.github.com
MIT License
13 stars 55 forks source link

checksum error when specifying a new version #41

Closed grosser closed 10 years ago

grosser commented 10 years ago

set this in hiera

java::update_version: '60'

not getting this:

Error: Could not back up /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/security/US_export_policy.jar: Got passed new contents for sum {md5}d5d126ae15abecb7d6e3a28b0d57543e
Error: Could not back up /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/security/US_export_policy.jar: Got passed new contents for sum {md5}d5d126ae15abecb7d6e3a28b0d57543e
Error: /Stage[main]/Java/File[/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/security/US_export_policy.jar]/content: change from {md5}d5d126ae15abecb7d6e3a28b0d57543e to {md5}3bb2e88a915b3cb003ca185357a92c16 failed: Could not back up /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/security/US_export_policy.jar: Got passed new contents for sum {md5}d5d126ae15abecb7d6e3a28b0d57543e
grosser commented 10 years ago

@dgoodlad ever see that before ?

grosser commented 10 years ago

fix is

sudo rm /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/security/local_policy.jar
dgoodlad commented 10 years ago

Weird; hadn't seen this before, and haven't been able to replicate it. If you can show me a consistent way to replicate the issue, I'll have a look.

garethr commented 10 years ago

Just to note I've had the same issue (with updated_version: '67'). The same fix, plus

sudo rm /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/security/US_export_policy.jar

worked for me.