mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-22 14:45:03 +01:00
Add notes for 2018-09-10
This commit is contained in:
parent
daa51bb77a
commit
5e72a7fc30
@ -66,4 +66,51 @@ Caused by: java.lang.RuntimeException: Failed to startup the DSpace Service Mana
|
||||
- One invalid value for `dc.type`
|
||||
- Abenet says she hasn't received any more subscription emails from the CUA module since she unsubscribed yesterday, so I think we don't need create an issue on Atmire's bug tracker anymore
|
||||
|
||||
## 2018-09-10
|
||||
|
||||
- Playing with [strest](https://github.com/eykhagen/strest) to test the DSpace REST API programatically
|
||||
- For example, given this `test.yaml`:
|
||||
|
||||
```
|
||||
version: 1
|
||||
|
||||
requests:
|
||||
test:
|
||||
method: GET
|
||||
url: https://dspacetest.cgiar.org/rest/test
|
||||
validate:
|
||||
raw: "REST api is running."
|
||||
|
||||
login:
|
||||
url: https://dspacetest.cgiar.org/rest/login
|
||||
method: POST
|
||||
data:
|
||||
json: {"email":"test@dspace","password":"thepass"}
|
||||
|
||||
status:
|
||||
url: https://dspacetest.cgiar.org/rest/status
|
||||
method: GET
|
||||
headers:
|
||||
rest-dspace-token: Value(login)
|
||||
|
||||
logout:
|
||||
url: https://dspacetest.cgiar.org/rest/logout
|
||||
method: POST
|
||||
headers:
|
||||
rest-dspace-token: Value(login)
|
||||
|
||||
# vim: set sw=2 ts=2:
|
||||
```
|
||||
|
||||
- Works pretty well, though the DSpace `logout` always returns an HTTP 415 error for some reason
|
||||
- We could eventually use this to test sanity of the API for creating collections etc
|
||||
- A user is getting an error in her workflow:
|
||||
|
||||
```
|
||||
2018-09-10 07:26:35,551 ERROR org.dspace.submit.step.CompleteStep @ Caught exception in submission step:
|
||||
org.dspace.authorize.AuthorizeException: Authorization denied for action WORKFLOW_STEP_1 on COLLECTION:2 by user 3819
|
||||
```
|
||||
|
||||
- Seems to be during submit step, because it's workflow step 1...?
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -18,7 +18,7 @@ I’m testing the new DSpace 5.8 branch in my Ubuntu 18.04 environment and I
|
||||
" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2018-09/" /><meta property="article:published_time" content="2018-09-02T09:55:54+03:00"/>
|
||||
<meta property="article:modified_time" content="2018-09-04T17:31:20+03:00"/>
|
||||
<meta property="article:modified_time" content="2018-09-04T17:33:30+03:00"/>
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="September, 2018"/>
|
||||
<meta name="twitter:description" content="2018-09-02
|
||||
@ -41,9 +41,9 @@ I’m testing the new DSpace 5.8 branch in my Ubuntu 18.04 environment and I
|
||||
"@type": "BlogPosting",
|
||||
"headline": "September, 2018",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2018-09/",
|
||||
"wordCount": "699",
|
||||
"wordCount": "830",
|
||||
"datePublished": "2018-09-02T09:55:54+03:00",
|
||||
"dateModified": "2018-09-04T17:31:20+03:00",
|
||||
"dateModified": "2018-09-04T17:33:30+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -180,6 +180,57 @@ Caused by: java.lang.RuntimeException: Failed to startup the DSpace Service Mana
|
||||
<li>Abenet says she hasn’t received any more subscription emails from the CUA module since she unsubscribed yesterday, so I think we don’t need create an issue on Atmire’s bug tracker anymore</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2018-09-10">2018-09-10</h2>
|
||||
|
||||
<ul>
|
||||
<li>Playing with <a href="https://github.com/eykhagen/strest">strest</a> to test the DSpace REST API programatically</li>
|
||||
<li>For example, given this <code>test.yaml</code>:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>version: 1
|
||||
|
||||
requests:
|
||||
test:
|
||||
method: GET
|
||||
url: https://dspacetest.cgiar.org/rest/test
|
||||
validate:
|
||||
raw: "REST api is running."
|
||||
|
||||
login:
|
||||
url: https://dspacetest.cgiar.org/rest/login
|
||||
method: POST
|
||||
data:
|
||||
json: {"email":"test@dspace","password":"thepass"}
|
||||
|
||||
status:
|
||||
url: https://dspacetest.cgiar.org/rest/status
|
||||
method: GET
|
||||
headers:
|
||||
rest-dspace-token: Value(login)
|
||||
|
||||
logout:
|
||||
url: https://dspacetest.cgiar.org/rest/logout
|
||||
method: POST
|
||||
headers:
|
||||
rest-dspace-token: Value(login)
|
||||
|
||||
# vim: set sw=2 ts=2:
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Works pretty well, though the DSpace <code>logout</code> always returns an HTTP 415 error for some reason</li>
|
||||
<li>We could eventually use this to test sanity of the API for creating collections etc</li>
|
||||
<li>A user is getting an error in her workflow:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>2018-09-10 07:26:35,551 ERROR org.dspace.submit.step.CompleteStep @ Caught exception in submission step:
|
||||
org.dspace.authorize.AuthorizeException: Authorization denied for action WORKFLOW_STEP_1 on COLLECTION:2 by user 3819
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Seems to be during submit step, because it’s workflow step 1…?</li>
|
||||
</ul>
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2018-09/</loc>
|
||||
<lastmod>2018-09-04T17:31:20+03:00</lastmod>
|
||||
<lastmod>2018-09-04T17:33:30+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
@ -184,7 +184,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2018-09-04T17:31:20+03:00</lastmod>
|
||||
<lastmod>2018-09-04T17:33:30+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -195,7 +195,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||
<lastmod>2018-09-04T17:31:20+03:00</lastmod>
|
||||
<lastmod>2018-09-04T17:33:30+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -207,13 +207,13 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2018-09-04T17:31:20+03:00</lastmod>
|
||||
<lastmod>2018-09-04T17:33:30+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||
<lastmod>2018-09-04T17:31:20+03:00</lastmod>
|
||||
<lastmod>2018-09-04T17:33:30+03:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user