Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S Storage
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 52
    • Issues 52
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • 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 SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Storage
  • Merge requests
  • !74

Fix issue with persistable reference handling in converters;

  • Review changes

  • Download
  • 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
Reviewers
Request review from
Time tracking
Source branch: fix-persist-reference-converters