Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Demonstrator - Reasoning WebAPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • cogsys
  • Dare2Del
  • Demonstrator - Reasoning WebAPI
  • Issues
  • #35

Closed
Open
Created Dec 02, 2020 by Siebers, Michael@michael.siebersOwner

Undocumented edge case for adding background knowledge

Summary

Adding two items with the same absolute path succeeds if some other property is distinct.

Steps to reproduce

Send a POST request to /bg requesting to add two items with identical path but at least one distinct property.

Example cURL call:

curl --request POST 'http://localhost:4444/bg' \
--header 'Content-Type: application/json' \
--data-raw '[{
        "type" : "directory",
        "abs_path": "/A/B",
        "creation_time": 1
  },
  {
        "type" : "directory",
        "abs_path": "/A/B",
        "creation_time": 2
  }
]'

Observed behavior

The server returns that both items have been added.

{
    "added": 2,
    "received": 2,
    "skipped": 0
}

Expected behavior

Only the first addition should succeed. The second should fail as there is already an item known at this path.

Edited Dec 02, 2020 by Siebers, Michael
Assignee
Assign to
Time tracking