Project:Apache Solr Attachments
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The current test done in apachesolr_attachments.install is not compatible with the output from OpenJDK. Here's a patch that fixes this...

diff -u -r1.4 apachesolr_attachments.install
--- apachesolr_attachments.install      12 May 2009 20:47:42 -0000      1.4
+++ apachesolr_attachments.install      22 Oct 2009 19:34:50 -0000
@@ -30,7 +30,7 @@
     $java = variable_get('apachesolr_attachments_java', 'java');
     exec($java .' -version > '. $temp .' 2>&1');
     $stderror = file_get_contents($temp);
-    $found = preg_match('/Java.+Runtime Environment/', $stderror);
+    $found = preg_match('/Runtime Environment/', $stderror);

     if (!$found) {
       $requirements['apachesolr_attachments_java']  = array(

Comments

#1

Actually - this code should be reworked anyhow since I'm about finished with a patch to let you use remote Solr for extraction. In that case java is not needed at all locally.

#2

Status:active» fixed

shoudl be fixed in this issue http://drupal.org/node/490078

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here