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 about 9 years ago. Updated about 2 years ago.

Status:
New
Priority:
Priority14
Category:
cdmlib-remote
Target version:
Start date:
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 Kohlbecker

Actions
Has duplicate EDIT - bug #7973: Pages not shown in portal if no digit?DuplicateWolf-Henning Kusber

Actions
Actions #1

Updated by Andreas Kohlbecker about 9 years ago

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

Updated by Andreas Müller about 9 years ago

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

Updated by Andreas Kohlbecker over 6 years ago

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

Updated by Andreas Kohlbecker over 5 years ago

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

Updated by Andreas Kohlbecker over 3 years ago

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

Updated by Andreas Kohlbecker over 3 years ago

  • Description updated (diff)
Actions #7

Updated by Andreas Kohlbecker over 3 years ago

  • Description updated (diff)
Actions #8

Updated by Andreas Kohlbecker over 3 years 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 over 3 years 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 about 3 years ago

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

Updated by Andreas Müller about 3 years ago

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

Updated by Andreas Kohlbecker about 3 years ago

  • Target version changed from Release 5.22 to Release 5.46
Actions #13

Updated by Andreas Müller about 2 years ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller
  • Target version changed from Release 5.46 to Release 5.44
Actions

Also available in: Atom PDF