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
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
>
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
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:
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
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.
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
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