Skip to content
GitLab
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 46
    • Issues 46
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and 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 SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Storage
  • Issues
  • #68
Closed
Open
Issue created May 06, 2021 by kenneth liew@kennethliewDeveloper

[Storage / Put / Records][R3][AWS] No validation check on [schema services/kind] for creation of new records.

Summary:Record sucessfully created although the schema does not exist on system.

Details/Example:

Put Method: {{osduonaws_base_url}}/api/storage/v2/records

Body:

[
    {
            "data": {
                "ID" : "ID",
                "Code" : "Code",
                "Description": "Description",
                "Name": "Name"
            },
            "id": "{{data_partition_id}}:reference-data--XXX:Id_2",
            "kind": "{{data_partition_id}}:wks:reference-data--XXX:1.0.0",
            "legal": {
                "legaltags": [
                    "{{data_partition_id}}-public-usa-dataset-1"
                ],
                "otherRelevantDataCountries": [
                    "US"
                ],
                "status": "compliant"
            },
            "acl": {
                "viewers": [
                    "data.default.viewers@{{data_partition_id}}.testing.com"
                ],
                "owners": [
                    "data.default.owners@{{data_partition_id}}.testing.com"
                ]
            }
        }
]

Status : 201 created

Response

{
    "recordCount": 1,
    "recordIds": [
        "opendes:reference-data--XXX:Id_2"
    ],
    "skippedRecordIds": [],
    "recordIdVersions": [
        "opendes:reference-data--XXX:Id_2:1620285305392414"
    ]
}

Get Method :{{osduonaws_base_url}}/api/schema-service/v1/schema/{{data_partition_id}}:wks:reference-data--XXX:1.0.0

Response:

{
    "error": {
        "code": 404,
        "message": "Schema is not present",
        "errors": [
            {
                "domain": "global",
                "reason": "notFound",
                "message": "Schema is not present"
            }
        ]
    }
}
Edited May 07, 2021 by kenneth liew
Assignee
Assign to
Time tracking