Shinsuke Sugaya 1 rok pred
rodič
commit
ad96194f59

+ 4 - 1
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

@@ -328,10 +328,13 @@ public class FessMultipartRequestHandler implements MultipartRequestHandler {
 
     protected String getRepositoryPath() {
         final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(ServletContext.TEMPDIR);
+        System.out.println("XXX " + tempDirFile);
         if (tempDirFile != null) {
             final String tempDir = tempDirFile.getAbsolutePath();
+            System.out.println("XXX " + tempDir);
             if (StringUtil.isNotBlank(tempDir)) {
-                return tempDir;
+                System.out.println("XXX " + System.getProperty(JAVA_IO_TMPDIR_KEY));
+//                return tempDir;
             }
         }
         return System.getProperty(JAVA_IO_TMPDIR_KEY);

+ 1 - 0
src/test/resources/before_script.sh

@@ -31,4 +31,5 @@ git clone https://github.com/codelibs/fess-testdata.git
 popd >/dev/null
 
 cat ${temp_log_file} ./fess-*/logs/*.log
+curl -s "http://localhost:8080/"
 

+ 1 - 1
src/test/resources/run.sh

@@ -3,7 +3,7 @@
 touch $(ls -d ./fess-*/logs)/fess-crawler.log
 tail -f ./fess-*/logs/*.log &
 
-mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201" --debug
+mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201"
 ret=$?
 
 if [ $ret != 0 ] ; then