Aryeh,

On 1/10/24 17:48, Aryeh Friedman wrote:
After upgrading the machine (brand new VM) from FreeBSD 12.X to
14.0-RELEASE, OpenJDK 8 to OpenJdk 21 and Tomcat 9.0.35 to 9.0.84
(copied the existing server.xml over) I am having problems with a
servlet that has worked in the past that uploaded images from one app
(which is re-installed on each version thus no perm files in the web
app) to an other (to give persistence).... i.e.
https://machine/specMed/ to https://macine/images/ and the existing
images are shown as expected but the servlet silently fails (no errors
to browser, catalina.out or anywhere else I can find) and I was
careful to make sure the permissions where identical.... ideas?

Does the user upload the file, or does one web app upload the file to the other one (or both)? How does the file-upload work from a code-perspective?

Some troubleshooting I have tried on our development machine (same
versions as above) it seems to work but not in production (the
primary/"only" difference between the two I can find is production is
https and development is http but the cert from comodo covers the
entire machine [no subdomains or aliases in server.xml] and is
multidomain).   In both cases I set
/usr/local/apache-tomcat-9.0/images to be 777 permissions and owned by
www:www (same uids/gids on both the new and old production machines).
  Note both production and test are brand new VM's never used for
anything but these apps.

Yikes! You really shouldn't use 777 file permissions unless you are absolutely desperate to figure out what is going on. Permissions problems /should/ cause some kind of error message, somewhere.

The "fail silently" problem is concerning. It makes me think maybe nothing is happening at all, and there is actually no "active" failure.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to