Project

General

Profile

Actions

feature request #4644

open

task #6992: Refactor and modernize REST web service API

task #4009: consider using jackson as json library

json lib incorrectly serializes values containig the characters [, ], {, }

Added by Andreas Kohlbecker almost 7 years ago. Updated 9 months ago.

Status:
New
Priority:
Priority14
Category:
cdmlib-remote
Target version:
Start date:
02/09/2015
Due date:
% Done:

0%

Estimated time:
Severity:
normal

Description

for example in the cichorieae Hedypnois Mill. has the nomenclaturalMicroReference @[606]@, which is serialized to json as an array:

"nomenclaturalMicroReference": [
    606
],

https://test.e-taxonomy.eu/cdmserver/cichorieae/name/4da14cc4-fb0b-43a2-a909-82535363f14e.json

this causes the a php warning to appear in the portal, like:

Warning: urlencode() expects parameter 1 to be string, array given in cdm_ws_getNomenclaturalReference() (line 1500 of /var/www/drupal-7.32/sites/_dataportal-production/modules/cdm_dataportal/cdm_api/cdm_api.module).

This is a general problem in json-lib, an should be solved in a general way, e.g. by upgrading to a newer version?


TODO


Related issues

Related to Edit - task #9265: Adapt dataportal to new protologue handlingClosedAndreas Kohlbecker10/29/2020

Actions
Has duplicate Edit - bug #7973: Pages not shown in portal if no digit?DuplicateWolf-Henning Kusber01/09/2019

Actions
Actions #1

Updated by Andreas Kohlbecker almost 7 years ago

  • Target version deleted (cdmlib - Next Major Release)
Actions #2

Updated by Andreas Müller almost 7 years ago

  • Target version set to cdmlib - Next Major Release
Actions #3

Updated by Andreas Kohlbecker over 4 years ago

  • Description updated (diff)
  • Private changed from Yes to No
Actions #4

Updated by Andreas Kohlbecker about 3 years ago

  • Has duplicate bug #7973: Pages not shown in portal if no digit? added
Actions #5

Updated by Andreas Kohlbecker about 1 year ago

  • Related to task #9265: Adapt dataportal to new protologue handling added
Actions #6

Updated by Andreas Kohlbecker about 1 year ago

  • Description updated (diff)
Actions #7

Updated by Andreas Kohlbecker about 1 year ago

  • Description updated (diff)
Actions #8

Updated by Andreas Kohlbecker about 1 year ago

  • Status changed from New to Rejected
  • Target version deleted (cdmlib - Old Next Major Release)

this is no longer relevant since we no longer need to get the microreference separately aa06c1f1a2

The hack mentioned above is removed already.

Actions #9

Updated by Andreas Kohlbecker about 1 year ago

  • Status changed from Rejected to New
  • Priority changed from New to Priority14
  • Target version set to Release 5.19

the above mentioned commit had to be reverted, so this issue is open again

Actions #10

Updated by Andreas Kohlbecker 12 months ago

  • Target version changed from Release 5.19 to Release 5.21
Actions #11

Updated by Andreas Müller 10 months ago

  • Target version changed from Release 5.21 to Release 5.22
Actions #12

Updated by Andreas Kohlbecker 9 months ago

  • Target version changed from Release 5.22 to Release 5.30
Actions

Also available in: Atom PDF