Skip to content

mustUseAdvisory header logic  #26

@bencart

Description

@bencart

There is an issue with the way the mustUseAdvisory header is being handled in a provider.

Current Logic:

If object has an advisory ref id
    if mustUseAdvisory = true
       process request
    else
       raise error
else
    if mustUseAdvisory = true
       raise error
    else
       process request

Expected Behaviour:

if mustUseAdvisory = true
   if there is a refId clash or the object does not have an advisory ref id
      raise error
   else
      process request
else
   process request assigning a new refid

The response to a create many where the mustUseAdvisory header is unset or set to false should contain a list of "Create Responses" containing advisory refId and it's new refid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions