SSHOC / sshoc-marketplace-backend

Code for the backend
Apache License 2.0
2 stars 0 forks source link

Adding steps failing when body contains contributors #19

Closed dpancic closed 1 year ago

dpancic commented 4 years ago

In GitLab by @vronk on Jun 12, 2020, 14:43

Hi @tparkola , I am trying to add to ingest a step on a workflow. I use the attached body. The request fails with 500. If I remove the contributors array completely the request succeeds.

{
  "accessibleAt" : "https://raw.githubusercontent.com/ParthenosWP4/SSK/master/steps/step_IC2_201017.xml",
  "contributors" : [ {
    "actor" : {
      "id" : "1"
    },
    "role" : {
      "code" : "author"
    }
  }, {
    "actor" : {
      "id" : "2"
    },
    "role" : {
      "code" : "author"
    }
  }, {
    "actor" : {
      "id" : "3"
    },
    "role" : {
      "code" : "author"
    }
  } ],
  "description" : "Infrared-reflected (IRR) images record the reflective\n      properties of the object in the IR range (>700 nm) when this is illuminated with infrared\n      radiation.",
  "label" : "Image Capture 2: Capturing IRR images",
  "licenses" : [ {
    "code" : "cc-by-4.0"
  } ],
  "properties" : [ {
    "type" : {
      "code" : "repository-url"
    },
    "value" : "https://raw.githubusercontent.com/ParthenosWP4/SSK/master/scenarios/step_IC2_201017.xml"
  }, {
    "concept" : {
      "uri" : "http://iso639-3.sil.org/code/eng"
    },
    "type" : {
      "code" : "language"
         }
  } ],
  "source" : {
    "id" : "2"
  },
  "sourceItemId" : "step_IC2_201017"
}
dpancic commented 4 years ago

In GitLab by @tparkola on Jun 20, 2020, 22:24

mentioned in commit dccb3f68cce161372906ab75e481190f573f4e91

dpancic commented 4 years ago

In GitLab by @tparkola on Jun 22, 2020, 20:21

Hi @vronk, I fixed it.

dpancic commented 4 years ago

In GitLab by @vronk on Jul 6, 2020, 15:47

Hi @tparkola, is this deployed already? I am still having this issue.

dpancic commented 4 years ago

In GitLab by @vronk on Jul 7, 2020, 17:06

Seems fixed, thx!

dpancic commented 4 years ago

In GitLab by @vronk on Jul 7, 2020, 17:06

closed