[email protected]
To "Geoserver-devel" [email protected]
Cc
Date Sat, 2 Nov 2019 11:49:13 -0300
Subject Re: [Geoserver-devel] Isolated namespace validation
Tested and indeed, there's a race condition the will leave you with an
invalid configuration
ying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>
>
>
>
>
> From "Gabriel Rolda
-mail.
From "Gabriel Roldan" [email protected]
To "Geoserver-devel" [email protected]
Cc
Date Sat, 2 Nov 2019 11:49:13 -0300
Subject Re: [Geoserver-devel] Isolated namespace validation
Tested and indeed, there's a race conditio
Tested and indeed, there's a race condition the will leave you with an
invalid configuration:
- Have 3 workspaces with the same uri:
ws1:http://example.com
ws2:http://example.com
ws3:http://example.com
- Change the config of ws1 to isolated:false and save
now, depending existing = getNamespaceByUR
Hey,
stumbled upon this code in CatalogImpl.validate(NamespaceInfo) and there
seems to be a bug:
if (!namespace.isIsolated()) {
// not an isolated namespace \ workplace so we need to check
for duplicates
existing = getNamespaceByURI(namespace.getURI());