Niels:

I checked if we were having a work party today, and put a little time into
the activity.

And I finally have a useful answer for you: Why did Resource absolute path
change from being relative to the data directory?

The answer is ... the concept of a Path was used all over our codebase,
with different conversions happening, especially around absolute paths.
This caused problems with a Java 11 change for windows which revealed how
many different conventions we had in the codebase.

So something had to change - paths was made consistent - so if you stopped
with in a debugger, at any point, and saw a "path" you could have
confidence in what it means.

To that end a relative path (anywhere in the codebase) is now relative to
the data directory location.

There is a little bit of code in the REST Resource API that is forgiving
for external scripts that use an absolute path. But it is changed to be
consistent (ie relative path) as soon as possible.

If you find any other special cases we can make note of them.
--
Jody Garnett
-- 
--
Jody Garnett
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to