Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread zahid
Actually this is *one of many *punishments following the sin of choosing *.nix and not Microsoft Windows. Have ever heard of "*chmod*" in windows ? MS windows trust you with your machine. You bought it , you paid for it , you own it. although you have many ways of installing software. ap

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Emmanuel Bourg
Le 04/01/2020 à 16:06, Pham Huu Bang a écrit : > Thanks for this link > https://salsa.debian.org/java-team/tomcat9/blob/master/debian/README.Debian. > But I cannot *read* the file from /tmp (not *write* file to /tmp). The > strange thing is, it can read another file from another location, e.g in >

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
Hi, Thanks for this link https://salsa.debian.org/java-team/tomcat9/blob/master/debian/README.Debian. But I cannot *read* the file from /tmp (not *write* file to /tmp). The strange thing is, it can read another file from another location, e.g in /opt/: ls -ltr /opt/rasdaman/etc/petascope.properti

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Olaf Kock
On 04.01.20 15:35, bphamhuu wrote: > Hello, > > I have a java web application by Tomcat 9 servlet container which tries to > read a file in /tmp folder with 777 permission on Ubuntu 18.04 > > ls -ltr /tmp/test.txt > -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt > > The java code is:

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
And here is the full stack trace from my java web application using Spring Boot. INFO [2020-01-04 14:42:08] RemoteCoverageUtil@80: # Cannot read file. Reason: File '/tmp/test.txt' does not exist java.io.FileNotFoundException: File '/tmp/test.txt' does not exist at org.apache.commons.io.Fi

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread Pham Huu Bang
Hi, The stack trace is short with FileNotFoundException # Cannot read file. Reason: File '/tmp/test.txt' does not exist java.io.FileNotFoundException: File '/tmp/test.txt' does not exist at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:254) at org.apache.commons.io.FileUtils.

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread M. Manna
Hi, On Sat, 4 Jan 2020 at 14:36, bphamhuu wrote: > Hello, > > I have a java web application by Tomcat 9 servlet container which tries to > read a file in /tmp folder with 777 permission on Ubuntu 18.04 > > ls -ltr /tmp/test.txt > -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt > > The

Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-04 Thread bphamhuu
Hello, I have a java web application by Tomcat 9 servlet container which tries to read a file in /tmp folder with 777 permission on Ubuntu 18.04 ls -ltr /tmp/test.txt -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt The java code is: try { result = FileUtils.readFileToStri