Hi Andrea,

thank you for this information!

So I will open a ticket.

Just for information how we run into this situation. We normally use Version 
2.10 but we have a poor image quality on a new layer and the order to fix it 
quickly. We found out, that only a new GeoServer Version with an old JDBC 
Mosaic-Plugin here makes a good result – of course we know that this is nothing 
to keep an we will report this with all details – for our moment in hurry we 
tried to deploy our workaround. At this way we found out, that this is an issue 
of GeoServer without any plugin or configuration.
Our normal machines are running with linux and there we discovered the problem. 
But on my local windows machine I can reproduce the situation.

Thank you very much!

Regards,
Stefan


Von: [email protected] [mailto:[email protected]] Im Auftrag von Andrea 
Aime
Gesendet: Donnerstag, 25. Januar 2018 09:54
An: Müller, Stefan (LDBV)
Cc: GeoServer Mailing List List
Betreff: Re: [Geoserver-users] GeoServer >=2.11 not starting with 
SecurityManager on Tomcat

Hi,
comments inline.

On Wed, Jan 24, 2018 at 4:40 PM, 
<[email protected]<mailto:[email protected]>> wrote:
Caused by: java.security.AccessControlException: access denied 
("java.io.FilePermission" "Q:\Programme2\Apache Software Foundation\Tomcat 
8.0\webapps\geoserver2-12-1\data\styles\simple_roads.xml.xml" "read")
            at java.security.AccessControlContext.checkPermission(Unknown 
Source)
            at java.security.AccessController.checkPermission(Unknown Source)
            at java.lang.SecurityManager.checkPermission(Unknown Source)
            at java.lang.SecurityManager.checkRead(Unknown Source)
            at sun.nio.fs.WindowsPath.checkRead(Unknown Source)
            at 
sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
            at 
sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
            at sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown 
Source)
            at java.nio.file.Files.readAttributes(Unknown Source)
            at 
org.geoserver.platform.resource.FileSystemResourceStore$FileSystemResource.getType(FileSystemResourceStore.java:434)
            at 
org.geoserver.platform.resource.Resources.exists(Resources.java:52)
            at 
org.geoserver.config.GeoServerLoader.lambda$loadStyles$2(GeoServerLoader.java:872)
            at 
org.geoserver.config.AsynchResourceIterator.lambda$new$0(AsynchResourceIterator.java:97)
            at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)

This code section is new as of GeoServer 2.11, provides much faster data 
directory load times (on Linux at least, where it was developed and tested, no 
core
developers works on Windows anymore, the ones that do won't even make the 
effort of keeping the build up an running):
https://github.com/geoserver/geoserver/wiki/GSIP-155
As usual we asked people to test the 2.11-beta release (11 months ago as of 
now), none reported a similar problem.

I have vague memory on that check, it's not invalid logging but an actual check 
for a .xml.xml file, it was already there in the
style loading code and was kept. However the way the code checks for its 
existence changed, so maybe that's what's triggering
this issue, it may be that in a secured environment trying to access a non 
existing file triggers an AccessControlException
instead of a NoSuchFileException that the code is ready to handle (checking the 
file existence before accessing its attribute
would annihilate a significant chunk of the GSIP-155 speedup unfortunately, 
that has already been tested).

While I don't believe any developer will setup a dev env on a Windows machine 
with a secured tomcat just to check this issue, a blind fix
could be performed to also catch the security exception, and you could test if 
that works or not off a nightly build?
I'd suggest you open a ticket here with details: 
https://osgeo-org.atlassian.net/projects/GEOS/summary

Cheers
Andrea


==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to