Skip to content

Commit

Permalink
#64 bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 3, 2023
1 parent 4ebbbd5 commit 9419c7f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
@@ -1,8 +1,8 @@
Package: geosapi
Type: Package
Title: GeoServer REST API R Interface
Version: 0.6-6
Date: 2023-09-01
Version: 0.6-7
Date: 2023-10-03
Authors@R: c(person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762")))
Maintainer: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Description: Provides an R interface to the GeoServer REST API, allowing to upload
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
@@ -1,3 +1,9 @@
## [geosapi 0.6-7](https://cran.r-project.org/package=geosapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-unavailable-red.svg)](https://cran.r-project.org/package=geosapi)

*Bug fixes**

* [#64](https://github.com/eblondel/geosapi/issues/64) Fix workspace-based style creation/update/delete methods

## [geosapi 0.6-6](https://cran.r-project.org/package=geosapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://cran.r-project.org/package=geosapi)

**Enhancements**
Expand Down
6 changes: 3 additions & 3 deletions R/GSStyleManager.R
Expand Up @@ -149,7 +149,7 @@ GSStyleManager <- R6Class("GSStyleManager",
}

reqUrl <- ""
if(!missing(ws) & is.null(ws)){
if(!missing(ws) & !is.null(ws)){
reqUrl <- sprintf("/workspaces/%s", ws)
}
reqUrl <- paste0(reqUrl, "/styles?name=", name)
Expand Down Expand Up @@ -205,7 +205,7 @@ GSStyleManager <- R6Class("GSStyleManager",
}

reqUrl <- ""
if(!missing(ws) & is.null(ws)){
if(!missing(ws) & !is.null(ws)){
reqUrl <- sprintf("/workspaces/%s", ws)
}
reqUrl <- paste0(reqUrl, sprintf("/styles/%s.xml", name))
Expand Down Expand Up @@ -243,7 +243,7 @@ GSStyleManager <- R6Class("GSStyleManager",
deleted <- FALSE

path <- ""
if(!missing(ws) & is.null(ws)){
if(!missing(ws) & !is.null(ws)){
path <- sprintf("/workspaces/%s", ws)
}
path <- paste0(path, sprintf("/styles/%s", name))
Expand Down

0 comments on commit 9419c7f

Please sign in to comment.