Re: [dspace-tech] request for help

2016-12-01 Thread Creel, James Silas
Dear Haimanot Birhanu,

Check the wiki documentation here:
https://wiki.duraspace.org/display/DSDOC3x/Discovery

It should tell you all you need to know on this issue.

James

From:  on behalf of Haimanot Birhanu 

Date: Thursday, December 1, 2016 at 6:31 AM
To: "dspace-tech@googlegroups.com" 
Subject: [dspace-tech] request for help

How to Enable Discovery in dspace 3.1
Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] request for help

2016-12-13 Thread Creel, James Silas
Dear Haimanot,

I’m afraid the community here can’t help much without more detailed 
information, such as an error report, logs, or details on your use case and the 
associated configuration.  Without additional details, a general response to 
your question would mostly recapitulate the documentation.

However, I can tell you that one gotcha we’ve had a few times at TAMU is that 
one needs to run the dspace index-discovery job with the -b and -f flags.

Also, if you’re not seeing your desired fields appearing in the sidebar, 
sometimes you need to clear the Tomcat server’s cache.  You can do this by 
deleting the files at
[tomcat-home-dir]/work/localhost/[your-webapp-name] where of course 
[tomcat-home-dir] is your Tomcat installation and [your-webapp-name] might be 
xmlui for example.

Finally, have you considered upgrading to a more recent DSpace version?  
Discovery is enabled by default from 4 up.

James

From:  on behalf of Haimanot Birhanu 

Date: Thursday, December 1, 2016 at 6:31 AM
To: "dspace-tech@googlegroups.com" 
Subject: [dspace-tech] request for help

How to Enable Discovery in dspace 3.1
Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Exporting collection metadata error.

2016-12-16 Thread Creel, James Silas
Dear Stephano,

I believe your problem is not specifically related to the index-discovery task. 
 Most likely, other operations will be intermittently failing as well.  If you 
connect to your postgres server and select from pg_stat_activity, you will 
likely see a lot of queries with a status of idle in transaction by the dspace 
user.  The only solution I know is to restart tomcat.

Good Luck,

James

From:  on behalf of Stephano John 

Date: Thursday, December 15, 2016 at 2:45 AM
To: "dspace-tech@googlegroups.com" 
Subject: [dspace-tech] Exporting collection metadata error.

Dear all,
I moved items of one collection to another collection by exporting metadata and 
importing as an administrator which it has worked fine several time. But the 
same procedures it has failed to work yesterday and it gives me the following 
error when i try to index because what i exported are not displayed on the new 
collection.
please help
Stephano.

/dspace# ./bin/dspace index-discovery
Exception: FATAL: remaining connection slots are reserved for non-replication 
superuser connections
org.postgresql.util.PSQLException: FATAL: remaining connection slots are 
reserved for non-replication superuser connections
at 
org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:471)
at 
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:112)
at 
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at 
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125)
at 
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
at 
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22)
at 
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:215)
at 
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at 
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
at 
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:584)
at org.dspace.core.Context.init(Context.java:121)
at org.dspace.core.Context.(Context.java:95)
at org.dspace.discovery.IndexClient.main(IndexClient.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] When i went for ant fresh_install problem, i got these error messages:

2016-12-22 Thread Creel, James Silas
Dear Haimanot,

The first things to check is your dspace.cfg.  If the community list is not 
showing, this is a sure sign that the database does not contain those 
communities – no solr indexing is required for the hierarchy to show.  So get 
your db admin to check the database at the address of the db.url parameter and 
see that the communities are in the community table.  Otherwise, you might be 
using the wrong database instance or have problems with a migration.

Once you are pointing DSpace to the right database, if the community/collection 
hierarchy and the items appear but the bitstreams are not downloadable, that 
means that the database contains the data you intended but the assetstore is 
missing the files that the database is pointing to.  For this, check the 
assetstore.dir parameter in dspace.cfg and navigate there on the filesystem to 
see that the assets are indeed present.  If not, you’ll need to make a symlink 
or change the parameter.

All my best, and please follow up if you have any more specific concerns.  I 
would also mention that it is good to expand the stack traces when you get 
those error pages to provide more detail.

James


From: mailto:dspace-tech@googlegroups.com>> on 
behalf of Haimanot Birhanu 
mailto:haimanoti...@gmail.com>>
Date: Tuesday, December 20, 2016 at 203
To: Luiz dos Santos mailto:luiz...@gmail.com>>
Cc: DSpace Technical Support 
mailto:dspace-tech@googlegroups.com>>
Subject: Re: [dspace-tech] When i went for ant fresh_install problem, i got 
these error messages:

Dear All,

I'm trying to move dspace to another server and i installed the same version of 
dspace on the new machine and try to copy dspace backup files but it seems the 
data migration is ok but the community lists are not there and the items are 
not down loadable. for more I have attached the screen-shots.

Any help is appreciated,

On Wed, Oct 5, 2016 at 12:17 PM, Luiz dos Santos 
mailto:luiz...@gmail.com>> wrote:
You should create the database, use the command below.

createuser --username=postgres --no-superuser --pwprompt dspace


crê eatedb --username=postgres --owner=dspace --encoding=UNICODE dspace

 Wednesday, October 5, 2016, Haimanot Birhanu 
mailto:haimanoti...@gmail.com>> wrote:
 Error:
 [java]  - org.postgresql.util.PSQLException: FATAL: database "dspace" does 
not exist



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.


--
Luiz Claudio Santos
http://luizclaudiosantos.me/



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.co

Re: [dspace-tech]

2017-02-06 Thread Creel, James Silas
Dear Haimanot,

Check in dspace-api/src/main/resources/Messages.properties

A good way to track down files is with the find command.  For example, to 
search the current directory for “messages.properties” case insensitive you 
could use:

find . -iname messages.properties

Best of luck,

James


From:  on behalf of Haimanot Birhanu 

Date: Monday, February 6, 2017 at 6:57 AM
To: DSpace Technical Support 
Subject: [dspace-tech]

Dear all,
I have managed to install dspace 6.0 jspui page on ubuntu 16.04 but unable to 
find Messages.properties in dspace installation directory? any help is 
appreciated.
Kind regards,
Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] dspace rest api to insert a license bundle

2017-02-17 Thread Creel, James Silas
Dear Jose,

We had a use case that called for updating the bundles of bitstreams using the 
bitstream REST endpoint, but had to implement it ourselves.  Compare the 
upstream:
https://github.com/TAMULib/DSpace/blob/tamu-dspace/dspace/modules/rest/src/main/java/org/dspace/rest/BitstreamResource.java#L428

to our customization:
https://github.com/TAMULib/DSpace/blob/tamu-dspace/dspace/modules/rest/src/main/java/org/dspace/rest/BitstreamResource.java#L428

where we use a bundle name in the request to put the bitstream in the desired 
bundle (new logic is there at line 462).

This is in a 5.x context, though, and would need some modifications to get into 
6.x.

Best of luck,

James


On 2/17/17, 4:14 PM, "dspace-tech@googlegroups.com on behalf of Jose Blanco" 
 wrote:

Is there any documentation on how to issue a rest api request to
insert a license bundle with the license file to an item?  Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Cleaning the .bak

2017-10-25 Thread Creel, James Silas
Hi Olivier,

These are perfectly safe to remove, assuming you have no need to revert to a 
prior deployment.  The ant installer backs up your previous deployment in case 
something breaks and you want to roll back.

Regards,

James

On 10/25/17, 4:36 AM, "dspace-tech@googlegroups.com on behalf of Olivier" 
 wrote:

Hello,

I am in desperate need to cleanup some space on my DSpace drive.

I have a serie of directories called webapps.bak-date-time that take a
total of 7GB, the last one having a date of Nov 2015. I want to know how
safe it is to remove them?

I am using DSpace 4.2

Thanks in advance,

Olivier
-- 

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Is this the correct command to update item metadata through REST API?

2016-06-14 Thread Creel, James Silas
Hi Tao,

You could try deleting tomcat’s server-side cache for the webapp.  Look under 
[tomcat-dir]/work/Catalina/localhost/rest.

James

From:  on behalf of Tao Zhao 

Date: Friday, June 10, 2016 at 4:18 PM
To: DSpace Technical Support 
Cc: "tao.zhao@gmail.com" , "heli...@centrum.sk" 

Subject: Re: [dspace-tech] Re: Is this the correct command to update item 
metadata through REST API?

Now I found even I restart tomcat the old metadata was still there. : -(

So how can I restart/reload to adopt the new updated matadata for the items?

Thanks,

Tao


On Thursday, June 9, 2016 at 1:56:32 PM UTC-5, helix84 wrote:
Seems like you're running into this issue because you're running DSpace 5.3:

https://jira.duraspace.org/browse/DS-2692

It is described here in comments:

https://github.com/DSpace/DSpace/pull/1007

The solution would be to upgrade to 5.4 (or better, to 5.5 which includes a 
critical security fix for XMLUI).


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


On Thu, Jun 9, 2016 at 6:40 PM, Tao Zhao > 
wrote:
Just found out what happened:

The actual metadata has been changed after the command was executed. I can see 
the updated metadata if I open the web page with the browser with the handle ID.

However, if I execute the command curl 
https://abcd.org/rest/items/39850/metadata
 I still get the old metadata information.

Anyone can help me?

Thanks.


On Thursday, June 9, 2016 at 10:15:44 AM UTC-5, Tao Zhao wrote:
curl -X PUT -H "Content-Type: application/json" -H "Accept: application/json" 
-H "rest-dspace-token: b2fcc846-64fa-42b4-a21a-040caac986db" --data 
'[{"key":"dwc.npdg.homestate", "value":"OK", "language":""}]' 
https://abcd.org/rest/items/39850/metadata

I tried this but it did not give me any response information and either change 
the metadata.

Thanks a lot,

Tao
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout

Re: [dspace-tech] DSpace installation problem

2016-07-08 Thread Creel, James Silas
Hi Prakash,

Make sure that your institution’s network allows traffic to oss.sonatype.org 
and repo.maven.apache.org.  I’ve had trouble in the past with installations at 
some institutions for this reason.

James

From:  on behalf of prakash das 

Date: Thursday, July 7, 2016 at 1:19 AM
To: DSpace Technical Support 
Subject: [dspace-tech] DSpace installation problem

when in run "mvn package" in dspace it shows errors.



C:\dspace-5.5-src-release\dspace>mvn package
[INFO] Scanning for projects...
Downloading: 
https://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Downloading: 
http://maven.restlet.org/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Downloading: 
https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.dspace:dspace-parent:5.5: Could not 
transfer artifact org.sonatype.oss:oss-parent:pom:9 from/to sonatype-releases 
(https://oss.sonatype.org/content/repositories/releases/): oss.sonatype.org and 
'parent.relativePath' points at no local POM @ org.dspace:dspace-parent:5.5, 
C:\dspace-5.5-src-release\pom.xml, line 20, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.dspace:dspace:[unknown-version] 
(C:\dspace-5.5-src-release\dspace\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.dspace:dspace-parent:5.5: Could 
not transfer artifact org.sonatype.oss:oss-parent:pom:9 from/to 
sonatype-releases (https://oss.sonatype.org/content/repositories/releases/): 
oss.sonatype.org and 'parent.relativePath' points at no local POM @ 
org.dspace:dspace-parent:5.5, C:\dspace-5.5-src-release\pom.xml, line 20, 
column 13: Unknown host oss.sonatype.org -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Setting a ResourcePolicy via REST API?

2016-08-08 Thread Creel, James Silas
Dear Holly,

We have had success updating the bitstream policies at the bitstream endpoint 
rather than the policy endpoint.  You can just embed the policy JSON in the 
bistream JSON as for example:

{"id":235,"name":"dissertation_0.pdf.txt","handle":null,"type":"bitstream","link":"/rest/bitstreams/235","expand":["parent","policies","all"],"bundleName":"TEXT","description":"ocr_text","format":"Text","mimeType":"text/plain","sizeBytes":43,"parentObject":null,"retrieveLink":"/bitstreams/235/retrieve","checkSum":{"value":"2b0144d81300a4a8c4f2a2a891280a84","checkSumAlgorithm":"MD5"},"sequenceId":-1,"policies":[{"action":"READ","groupId":"5","rpType":"TYPE_CUSTOM"}]}

That worked on my localhost at the /rest/bitstreams/{bitstream id} endpoint.

Best of luck,

James



From:  on behalf of Holly Becker 

Date: Thursday, August 4, 2016 at 3:58 PM
To: DSpace Technical Support 
Subject: [dspace-tech] Re: Setting a ResourcePolicy via REST API?

Hi,

That endpoint gives me item information, but doesn't include anything about 
bitstreams or policies.  Can you clarify your suggestion?

Thanks,
-Holly

On Tuesday, July 12, 2016 at 7:38:40 AM UTC-7, Evgeni Dimitrov wrote:
I think with curl you should do something like this:

curl -X GET -H "Content-Type: application/json" -H "rest-dspace-token: 
d4020530-ce01-471d-a474-5fb0cea04661" 
http://localhost:8080/rest/items/2


On Tuesday, July 12, 2016 at 1:46:18 AM UTC+3, Holly Becker wrote:
Hello all,

I'm trying to post bitstream policies to the REST API, and having trouble 
finding what the correct format for the ResourcePolicy is.  The documentation 
[1] says a ResourcePolicy is  
[{"id":317127,"action":"READ","epersonId":-1,"groupId":0,"resourceId":47166,"resourceType":"bitstream","rpDescription":null,"rpName":null,"rpType":"TYPE_INHERITED","startDate":null,"endDate":null}]
  This looks like the policies returned by /rest/bitstreams/?expand=policies  
However, when I post that policy or policies that look similar I get a 500 
server error [3] on a local install of DSpace 5.

On 
demo.dspace.org
 none of the bitstreams have policies, even when I add one in the GUI, and I 
get a 500 when querying 
https://demo.dspace.org/rest/bitstreams/?expand=policies
 When posting a policy, I get different behavior on 
demo.dspace.org.
  It gives a 400 error, but the same exception. [2]

Can someone point me towards more detailed documentation, or provide an 
explanation of what a ResourcePolicy is supposed to look like?  Is there a 
better or different way to set bitstream policies through the REST API or 
SWORD2 API?

Thanks,
-Holly Becker
Archivematica developer

[1] 
https://wiki.duraspace.org/display/DSDOC5x/REST+API

[2] To reproduce
curl -X POST 
https://demo.dspace.org/rest/bitstreams/ea41e143-0b2c-447a-a46d-681282c6ff9a/policy
 --data 
'[{"id":317127,"action":"READ","epersonId":-1,"groupId":0,"resourceId":47166,"resourceType":"bitstream","rpDescription":null,"rpName":null,"rpType":"TYPE_INHERITED","startDate":null,"endDate":null}]'
 -u 'dspacedemo+ad...@gmail.com:dspace' -H 'Content-type: application/json' -k
Response:
Can not deserialize instance of org.dspace.rest.common.ResourcePolicy out of 
START_ARRAY token
 at [Source: 
org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@43a44ac9;
 line: 1, column: 1]

Or (in Python2, requires 'requests' library):
import

[dspace-tech] REST item creation and dc.provenance

2016-09-28 Thread Creel, James Silas
Hi Everybody,

We have an application where our librarians can curate and publish items to our 
DSpace 5.4 repository with the REST API.  The push is accomplished with a 
sequence of requests, first to create the item, then several more requests to 
upload some files and set the bundles and permissions of them.

We’re finding that the dc.provenance metadatum is created only on the initial 
item creation and so reports that there are 0 bitstreams.  We never were able 
to get the REST API to work with a single request for multiple-file 
multiple-bundle items with permissions, so we had to take this sequenced 
approach.  Obviously, we would like dc.provenance generated after the item has 
been completely assembled.  It looks like a bit of development work, then – 
does it make sense to implement a transactional approach to the REST calls or 
to rework the API to take a much more complicated package in a single request?

I welcome any thoughts or suggestions.

Thanks,

James Creel

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] ant fresh_install error

2016-10-14 Thread Creel, James Silas
Dear Haimanot Birhanu,

It looks like the installer is trying to insert a duplicate row of the 
application/octet-stream which has short description “Unknown” in the bistream 
format registry database table.

If you want to do a fresh install, try using an empty database.  You could drop 
the database and re-create it and run the fresh install again.

Best Regards,

James

From:  on behalf of Haimanot Birhanu 

Date: Friday, October 14, 2016 at 7:07 AM
To: DSpace Technical Support 
Subject: [dspace-tech] ant fresh_install error

ERROR: duplicate key value violates unique constraint 
"bitstreamformatregistry_short_description_key" Detail: Key 
(short_description)=(Unknown) already exists.
Java returned: 1

anyone who have the experience and help me?

Haimanot,
--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.