Andrea Aime ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae9469ffc-5e16-4c2b-b7b0-b9c46e912f9e
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10572?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 ) GEOS-10572 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10572?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 ) The layer styles resources has dangling links and lacks the default style ( 
https://osgeo-org.atlassian.net/browse/GEOS-10572?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 )

Issue Type: Bug Assignee: Andrea Aime ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae9469ffc-5e16-4c2b-b7b0-b9c46e912f9e
 ) Created: 01/Jul/22 12:29 PM Priority: Medium Reporter: Andrea Aime ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae9469ffc-5e16-4c2b-b7b0-b9c46e912f9e
 )

The style controller is setup to allow fetching styles from a layer:

   @GetMapping(
           value = { "/styles" , "/layers/{layerName}/styles" , 
"/workspaces/{workspaceName}/styles" })
   public RestWrapper<?> stylesGet(
           @PathVariable(required = false ) String layerName,
           @PathVariable(required = false ) String workspaceName) {

However, the links generation pretty much assumes the request is starting from 
“styles” or the workspace styles, rather than the layer, and ends up generating 
dangling links for the layer styles case.

Also, the style list does not contain the default layer (LayerInfo.getStyles() 
only returns the associated style, getDefaultStyle() is used to retrieve the 
default one).

( 
https://osgeo-org.atlassian.net/browse/GEOS-10572#add-comment?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10572#add-comment?atlOrigin=eyJpIjoiYzU0YjNkOGM0ZTU2NGYwMGJjYjkxZDM1YjU2MGRhMDQiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100201- 
sha1:e6ee73e )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to