From 56af974ccb5cfceade3bc9fb008cbfba69dff60e Mon Sep 17 00:00:00 2001 From: eblondel <emmanuel.blondel1@gmail.com> Date: Thu, 21 Mar 2024 09:50:51 +0100 Subject: [PATCH] fix #31 --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ R/GNOpenAPIManager.R | 3 +-- README.md | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 1318bb2..4f6e24c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: geonapi Type: Package Title: 'GeoNetwork' API R Interface -Version: 0.7-1 +Version: 0.7-2 Date: 2024-03-21 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> diff --git a/NEWS.md b/NEWS.md index 911c77a..24b5e21 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +## [geonapi 0.7-2](https://github.com/eblondel/geonapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://github.com/eblondel/geonapi) + +**Bug fixes** + +* [#31](https://github.com/eblondel/geonapi/issues/31) Empty response for thumbnail publication + ## [geonapi 0.7-1](https://github.com/eblondel/geonapi) | [![CRAN_Status_Badge](https://img.shields.io/badge/CRAN-published-blue.svg)](https://github.com/eblondel/geonapi) **Enhancements** diff --git a/R/GNOpenAPIManager.R b/R/GNOpenAPIManager.R index d973c21..04d37e3 100644 --- a/R/GNOpenAPIManager.R +++ b/R/GNOpenAPIManager.R @@ -482,8 +482,7 @@ GNOpenAPIManager <- R6Class("GNOpenAPIManager", ) if(status_code(req) == 204){ self$INFO("Successfully published thumbnail!") - response <- content(req) - out <- response + out <- TRUE }else{ self$ERROR(sprintf("Error while publishing thumbnail - %s", message_for_status(status_code(req)))) self$ERROR(content(req)) diff --git a/README.md b/README.md index 692614a..0b35423 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ =========== [![Build Status](https://github.com/eblondel/geonapi/actions/workflows/r-cmd-check.yml/badge.svg?branch=master)](https://github.com/eblondel/geonapi/actions/workflows/r-cmd-check.yml) -[![Github_Status_Badge](https://img.shields.io/badge/Github-0.7--1-blue.svg)](https://github.com/eblondel/geonapi) +[![Github_Status_Badge](https://img.shields.io/badge/Github-0.7--2-blue.svg)](https://github.com/eblondel/geonapi) [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/geonapi)](https://cran.r-project.org/package=geonapi) [![CRAN checks](https://badges.cranchecks.info/worst/geosapi.svg)](https://cran.r-project.org/web/checks/check_results_geonapi.html) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345012.svg)](https://doi.org/10.5281/zenodo.1345012)