[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 8.1.2 doesn't recognize file changes in symlinked folder

Hi Jan,

sorry I was a bit to quick - because you've said it's working for
you I had a look at the framework (Tapestry5) and saw that if
I don't request the file as asset (internally handled by the
framework) and use the real path I get the new file. So it's not
jettys fault.

Thanks,
Lukas



Am 2012-04-12 09:24, schrieb Jan Bartel:
Lukas,

I can't reproduce that using the standard jetty test webapp.

I modified the DefaultServlet to allow serving aliases, then sym
linked $JETTY_HOME/webapps/test/mystatic ->  /tmp/static

I put a few html files in /tmp/static and then modified them
on-the-fly. All of the modifications were picked up when the file was
requested in a browser.

Can you provide more details on your setup?

Jan

On 12 April 2012 17:09, Lukas Ruetz<lukas.ruetz@xxxxxx> wrote:
Hi all,

I'm using Jetty 8.1.2 on Linux.

My problem is that Jetty doesn't recognize changed files IN a folder which
is a symlink.
It looks like this:

/path/to/jetty/webapps/myapp/symlink/changed_file.json

Jetty serves the old version of the file (while Jetty 7.5.0 didn't do that).

I have found this bug here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364502
but it's about a symlink which target is changed, what's a different problem
if I see this
correctly.

How can I avoid this behaviour?

Thanks,
Lukas