Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • S Storage
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 55
    • Issues 55
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe Software
  • Platform
  • System
  • Storage
  • Merge requests
  • !74

Fix issue with persistable reference handling in converters;

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Yauheni Lesnikau requested to merge fix-persist-reference-converters into master Sep 29, 2020
  • Overview 2
  • Commits 4
  • Pipelines 10
  • Changes 5

This merge request is link with the another one in os-core-common. The issue was found in the Storage GA and concerned feature of the Gson lib, namely getAsString() method of the com.google.gson.JsonElement class with the subclasses (JsonPrimitive, JsonObject, etc). The thing is that the method overriden safely only for JsomPrimitive subclass, and if the field mapped as JsonObject one (persistableReference in the 'meta' part, in our case) this call throws UnsupportedOperationException. My enhancement prevents undesirable throwing the exception. Also tests were extended

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-persist-reference-converters