mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2019-04-25
This commit is contained in:
@ -948,4 +948,40 @@ dspace=# SELECT COUNT(text_value) FROM metadatavalue WHERE resource_type_id=2 AN
|
||||
|
||||
- I sent a message to the dspace-tech mailing list to ask for help
|
||||
|
||||
## 2019-04-25
|
||||
|
||||
- Peter pointed out that we need to remove Delicious and Google+ from our social sharing links
|
||||
- Also, it would be nice if we could include the item title in the shared link
|
||||
- I created an issue on GitHub to track this ([#419](https://github.com/ilri/DSpace/issues/419))
|
||||
- I tested the REST API after logging in with my super admin account and I was able to get results for the problematic query:
|
||||
|
||||
```
|
||||
$ curl -f -H "Content-Type: application/json" -X POST "https://dspacetest.cgiar.org/rest/login" -d '{"email":"example@me.com","password":"fuuuuu"}'
|
||||
$ curl -f -H "Content-Type: application/json" -H "rest-dspace-token: b43d41a6-5ac1-455d-b49a-616b8debc25b" -X GET "https://dspacetest.cgiar.org/rest/status"
|
||||
$ curl -f -H "rest-dspace-token: b43d41a6-5ac1-455d-b49a-616b8debc25b" -H "Content-Type: application/json" -X POST "https://dspacetest.cgiar.org/rest/items/find-by-metadata-field" -d '{"key":"cg.subject.cpwf", "value":"WATER MANAGEMENT","language": "en_US"}'
|
||||
```
|
||||
|
||||
- I created a normal user for Carlos to try as an unprivileged user:
|
||||
|
||||
```
|
||||
$ dspace user --add --givenname Carlos --surname Tejo --email blah@blah.com --password 'ddmmdd'
|
||||
```
|
||||
|
||||
- But still I get the HTTP 401 and I have no idea which item is causing it
|
||||
- I enabled more verbose logging in `ItemsResource.java` and now I can at least see the item ID that causes the failure...
|
||||
- The item is not even in the archive, but somehow it is discoverable
|
||||
|
||||
```
|
||||
dspace=# SELECT * FROM item WHERE item_id=74648;
|
||||
item_id | submitter_id | in_archive | withdrawn | last_modified | owning_collection | discoverable
|
||||
---------+--------------+------------+-----------+----------------------------+-------------------+--------------
|
||||
74648 | 113 | f | f | 2016-03-30 09:00:52.131+00 | | t
|
||||
(1 row)
|
||||
```
|
||||
|
||||
- Meet with CodeObia to see progress on AReS version 2
|
||||
- Marissa Van Epp asked me to add a few new metadata values to their Phase II Project Tags field (cg.identifier.ccafsprojectpii)
|
||||
- I created a [pull request](https://github.com/ilri/DSpace/pull/420) for it and will do it the next time I run updates on CGSpace
|
||||
- Communicate with Carlos Tejo from the Land Portal about the `/items/find-by-metadata-value` endpoint
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user