[Dspace-tech] configuring DSpace 4.0 - parameter webui.browse.thumbnail.linkbehaviour

2013-12-30 Thread Evgeni Dimitrov
in dspace.cfg there is:

# where should clicking on a thumbnail from browse/search take the user
# Only values currently supported are "item" and "bitstream"
webui.browse.thumbnail.linkbehaviour = bitstream

It does not say - is it used, or is it ignored by XMLUI. I use XMLUI.
I tried both ways and there is no difference. It always goes to "item"...

Does anybody know?

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] dspace import cmd not encoding utf-8 file names correctly

2013-12-30 Thread Hayden Young
I am trying to export a record from one dspace instance to another.

Using the export cmd line tool, I have successfully exported a record 
but upon opening the resulting zip file I notice that the file name has 
invalid characters where some non-english characters have been used.

Example:

Using:

# ./dspace export -t ITEM -z 123456789_391.zip -d /tmp/ -i 123456789/391 
-n 1

I am able to export the record successfully, but the bitstream file 
called Masterthesis_Midtgård.pdf gets renamed to 
Masterthesis_Midtg├еrd.pdf (note the pipe/dash symbol).

My machine's locale settings are all UTF-8:

# echo $LANG
en_US.UTF-8

# cat /etc/default/locale
LANG="en_US.UTF-8"

# locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX

I've even tried overriding the JAVA_OPTS variable to no avail:

# export JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
# ./dspace export -t ITEM -z 123456789_391.zip -d /tmp/ -i 123456789/391 
-n 1

I can access the file Masterthesis_Midtgård.pdf within XMLUI and via the 
REST API so I don't think it is a Tomcat issue.

Any help much appreciated.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Postgresql "remaining connection slots are reserved for non-replication superuser connections" during record import

2013-12-30 Thread Hayden Young
I'm getting an error when I try to import a record into DSpace 3.x:

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:579)
 at java.sql.DriverManager.getConnection(DriverManager.java:221)
 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:588)
 at org.dspace.core.Context.(Context.java:90)
 at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:430)
 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:601)
 at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)


My command is:

  ./dspace import --test -a -e haydenyo...@wijiti.com -c 123456789/40 -s 
/tmp/ -z item_export_2013_Dec_30_1_103.zip -m /tmp/mapfile

The number of max connections is set to 128 in dspace.cfg. This is just 
a demo instance of DSpace so there shouldn't be much going on there. I 
could increase the number of connections but 128 seems high considering 
hardly anyone accesses this instance (I'm the first person to use it in 
2 weeks).

Any help much appreciated.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette