Project

General

Profile

Bug #7684

Call to MNStorage.update() via REST API returns java.lang.StackOverflowError

Added by Bryce Mecum over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-21
Due date:
% Done:

0%

Story Points:
Sprint:

Description

I was trying to update an object via the REST API via cURL and forgot to enter the correct URL. The cURL command I used and response is:

$ curl -X PUT -H "Authorization: Bearer $TOKEN" -F "pid=resourceMap_doi:10.5065/D6G44NFV" -F "object=@object.xml" -F "sysmeta=@sysmeta.xml" -F "newPid=resourceMap_doi:10.5065/D6G44NFV_v3" $URL
<?xml version="1.0" encoding="UTF-8"?>
java.lang.StackOverflowError

Where $URL was 'https://arcticdata.io/metacat/d1/mn/v2/object' instead of 'https://arcticdata.io/metacat/d1/mn/v2/object/resourceMap_doi:10.5065/D6G44NFV'

I expected to receive some sort of warning/error that I had forgotten to specify the URL properly for this call but instead saw a StackOverflowError.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)