Re: [Dspace-tech] [Dspace-devel] Hide Community or Collection from the Communities and Collections page

2007-09-05 Thread Andrea Bollini
Robert Tansley ha scritto:
 On 01/09/07, Mark Diggory [EMAIL PROTECTED] wrote:
   
 Restricting access to Communites, Collection or Items directly is
 certainly not what DSpace was designed to do.
 

 The real issue is more that the DSpace authz model has no notion of
 'know of an object's existence' as an action.  One of the 'finish 1.0
 in a finite amount of time' tradeoffs was not to implement this (for
 precisely the reasons that Andrea mentioned -- the complexity and
 expense of evaluating visibility in operations like search, browse and
 harvest.)
   
Hi Rob,
I'm not sure that splitting the current READ permission in a more
granular way could be the rigth solution...
Could we have an EXISTENCE permission on an object without READ
permission? Could we have a READ permission on an object without EXISTENCE?
I think that the answer is NO for both the questions.
IMHO the current permissions are sufficient enough. There is only one
problem about bitstreams READ definition. In fact, while for
communities, collections, item and bundle READ means the possibility of
metadata access (therefore knowing about the object existence), the READ
permission for bitstream allows both medatata (name, size, format, etc.)
and content access (InputStream).
Therefore I think that it would be good to make this behaviour uniform
also hooking-up the READ permission to the InputStream, and this would
also make sense for WRITE permission.

 From a design standpoint, I think authz needs an overhaul as I've
 mentioned many times before; I think introducing the notion of 'know
 of an objects existence' distinct from the existing READ is the right
 way to go about this rather than overloading READ.

 It makes sense to me to have queries evaluated using a particular
 Context
could we use different indexes? Every EPerson could have a set of lucene
indexes, which would contain only the objects that he can see...
In this scenario we need to keep 1 index for any group or eperson that
have READ policies

Andrea
  (be they search etc) only return objects that the
 currently-authenticated e-person can 'see'.  The system has not
 evolved in a way amenable to this, however.  Post-query filtering
 doesn't work because if you ask for 'the first 10 items with titles
 starting with C', you may end up with only 6 visible results.  For a
 more general solution, either every indexing system needs to be
 ACL-aware (yuck), or we should create a unified query API whose
 implementation is ACL-aware, i.e. indexes relevant permissions.
 Lucene seems the most likely candidate for such an API.  Unfortunately
 things seem to be diversifying rather than unifying in this area.

 Rob

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Dspace-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/dspace-devel


   


-- 
Dott. Andrea Bollini
Responsabile tecnico sviluppo e formazione applicativi JAVA
Sezione Servizi per le Biblioteche e l'Editoria Elettronica
CILEA, http://www.cilea.it
tel. +39 06-59292831  cel. +39 348-8277525


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem with uploading a file to the collection

2007-09-05 Thread Christian Voelker
Hello,

Am 05.09.2007 um 04:22 schrieb Shwe Yee Than:

 The second problem is I can't access the Dspace Page (i.e., http:// 
 fsktm.geranium2.um.edu.my:8080/dspace) from any other PCs rather  
 than the localhost.  The following is my configuration for Dspace  
 in the [dspace-source]/config/dspace.cfg file:

Did you change this file after installation?
Did you make sure, these changes got reflected in
[dspace]/config/dspace.cfg?
ant install-cfg would be a means to do so.

 dspace.dir = /home/dspace/tomcat/webapps/dspace

No, this should point to the dir where your assetstore, history
and so on lives. This should not be the same directory that is
exposed to the web. In case you installed it there, you should
change this before going productive. Common procedures expect
this to be separate. Especially any changes you might want to
make to the jsp frontend are far more easily done if you can
just wipe this directory and replace it with a new .war file.
If your bitstreams are in the same directory, that is not
feasable. Besides, there a probably security issues why the
programmers decided to keep both directories separate.

To come back to your question, this variable is never read
by a client and should not be the cause for not being reachable
from outside.

 dspace.url  =  http://fsktm.geranium2.um.edu.my:8080/dspace
 dspace.hostname  =  fsktm.geranium2.um.edu.my

I never saw the ccTLD .my before, but as it is your valid domain,
thats looks fine.

 The fist problem is I've got the following error message
 when I upload a file (.pdf) to the collection.

 HTTP Status 500 -
 ...
 exception
 java.lang.NoClassDefFoundError
 org.dspace.content.Bitstream.create(Bitstream.java:184)
 ...
 note The full stack trace of the root cause is available in the
 Apache Tomcat/5.5.23 logs.

I cant say much to this. It does not look like a DB permissions
issue although this method directly calls the BitstreamStorageManager
which in turn opens a DB connection, but if the problem was there,
then it would be notified as a SQLexeption, not an exeption.
I would go to the tomcat log as advised.
Or, I would change the logging level to info at least
in the log4j configuration.
Is the context you are working in valid?
Id est, are you allowed to upload to this collection?
I guess you would not get to the uplaod page if not.
No, sorry, no help from here.

Maybe, this gets solved automagically as soon as you solve the
dspace.dir issue. Your server might not be able to write the
.pdf file to a directory beyond webapps because of general
security constraints of the tomcat configuration. That would
make sense. So take care for the simple dspace.cfg stuff first
and you might be done.

Bye, Christian


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] FW: Integrating RoMEO API with DSpace

2007-09-05 Thread Jayan Chirayath Kurian
 

Hi! 

 

The DSpace test instance for finding publishers copyright policies

For testing give IEEE or springer verlag in the search option (middle
panel) at http://repositorydev.ntu.edu.sg/

 

Thanks,

Jayan



From: Jayan Chirayath Kurian 
Sent: Friday, August 31, 2007 3:36 PM
To: dspace-tech@lists.sourceforge.net
Subject: Integrating RoMEO API with DSpace

 

Hi! 

 

The RoMEO API http://www.sherpa.ac.uk/romeo.php allows content
submitters to verify publisher's policies. The following code (taken
from the normal dspace search) was added to the C:\DSPace141\jsp\home
page. This was added immediately after the code for the normal search in
the centre panel. Giving Springer-verlag in the search gives the
policies for the publisher (sample result attached below). Please let me
know if anyone wants to implement this. 

 

form action=http://www.sherpa.ac.uk/romeoapi11.php; method=get
target= _blank

table class=miscTable width=95% align=center

tr

td class=oddRowEvenCol

  h3fmt:message key=jsp.home.search3//h3

  plabel for=tqueryfmt:message
key=jsp.home.search4//label/p

 pinput type=text name=pub size=20 /nbsp;

input type=submit name=submit value=fmt:message
key=jsp.general.search.button/ //p

/td

/tr

/table

/form

 

 

Sample retrieved result

 

 

?xml version=1.0 encoding=ISO-8859-1 ? 

  !DOCTYPE romeoapi (View Source for full doctype...) 

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
romeoapi version=1.1

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
header

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
parameters

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
parameter

  parameternamepub/parametername 

  valuespringer verlag/value 

  /parameter

  /parameters

  numhits1/numhits 

  apicontrolpublisher/apicontrol 

  outcomepublisherFound/outcome 

  messageSearching for publisher: 'springer+verlag', query type:
'ALL'/message 

  timestamp31-Aug-2007:08:30:39/timestamp 

  /header

  journals / 

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
publishers

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
publisher id=74

  nameSpringer Verlag/name 

  aliasGermany/alias 

  homeurlhttp://www.springerlink.com//homeurl 

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
preprints

  prearchivingcan/prearchiving 

  prerestrictions / 

  /preprints

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
postprints

  postarchivingcan/postarchiving 

  postrestrictions / 

  /postprints

- http://www.sherpa.ac.uk/romeoapi11.php?pub=springer+verlag##
conditions

  conditionAuthors own final version can be archived/condition 

  conditionOn authors website or institutional repository or funders
designated website/repository/condition 

  conditionPublished source must be acknowledged/condition 

  conditionMust link to publisher version/condition 

  conditionSet phrase to accompany link to published version (The
original publication is available at www.springerlink.com)/condition 

  conditionArticles in some journals can be made Open Access on
payment of additional charge/condition 

  /conditions

  copyrighta
href=http://www.springer.com/uk/home?SGWID=3-102-45-69724-0referer=www
.springeronline.comSHORTCUT=www.springer.com/sgw/cda/pageitems/document
/cda_downloaddocument/0,11996,0-0-45-69724-0,00.pdfview policy/a
(pdf)/copyright 

  romeocolourgreen/romeocolour 

  /publisher

  /publishers

  /romeoapi

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Psql error

2007-09-05 Thread Mika Stenberg
Im getting a whole lot of errors in my log file (Dspace 1.4.2, Manakin 
1.1 (trunk)) . The one Im worried about is this. Has anyone experienced 
this and perhaps solved it?

Thanks,
Mika


LOG:  unexpected EOF on client connection
org.postgresql.util.PSQLException: An I/O error occured while sending to 
the backend.
 at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:214)
 at 
org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:617)
 at 
org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connection.java:654)
 at 
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection.java:265)
 at 
org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection.java:265)
 at 
org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.rollback(PoolingDriver.java:348)
 at org.dspace.core.Context.abort(Context.java:251)
 at org.dspace.core.Context.finalize(Context.java:384)
 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
 at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
 at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
Caused by: java.net.SocketException: Socket closed
 at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
 at 
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
 at org.postgresql.core.PGStream.flush(PGStream.java:532)
 at 
org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:672)
 at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:187)
 ... 11 more
java.sql.SQLException: Already closed.
 at 
org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:77)
 at 
org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.close(PoolingDriver.java:240)
 at 
org.dspace.storage.rdbms.DatabaseManager.freeConnection(DatabaseManager.java:733)
 at org.dspace.core.Context.abort(Context.java:260)
 at org.dspace.core.Context.finalize(Context.java:384)
 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
 at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
 at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
LOG:  unexpected EOF on client connection

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Batch import error

2007-09-05 Thread Hlias Stavrakis
Hi, 
 i have entered a new schema in dspace and use Batch inport tool to enter items 
and metadata values using both DC and MySchema.

During batch import when parsing the first metadata field of MySchema in 
dublin_core.xml i'm getting :

java.sql.SQLException: bad_dublin_core SchemaID=1, isReferencedBy null
 at org.dspace.content.Item.update(Item.java:1463)
 at org.dspace.content.InstallItem.installItem(InstallItem.java:146)
 at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:663)
 at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:506)
 at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:415)
java.sql.SQLException: bad_dublin_core SchemaID=1, isReferencedBy null

the schema id of MySchema is not 1 as reported above but 3.  
Furthermore, the schema element in dublin_core.xml has the right value 
MySchema but the tool recognizes only the basic DC schema because
when i define the same field in DC the tool works fine even if the schema 
element has MySchema value. 

Is there any known bug or something that i did wrong?

Thanks.






-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Batch import error

2007-09-05 Thread Helm, Brian T
If I understand correctly, the ItemImport tool wants a separate xml file for 
each metadata schema.  I don't really like this approach, so what I did was to 
implement a little hack in the ItemImport.java file 
(org/dspace/app/itemimport/ItemImport.java).  In the addDCValue method, above 
this line:

String element = getAttributeValue(n, element);

I added the following block:

String new_schema = getAttributeValue(n, schema);
   if(new_schema != null){
schema = new_schema;
}

This allowed me to use multiple schemas in a single file.


Brian Helm
Programmer
Information Technology Division
UK Libraries
Phone: 859-257-0500 X 2106
Fax: 859-257-0505
E-mail: [EMAIL PROTECTED]



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hlias Stavrakis
Sent: Wednesday, September 05, 2007 9:56 AM
To: dspace-tech Tech
Subject: [Dspace-tech] Batch import error

Hi,
 i have entered a new schema in dspace and use Batch inport tool to enter items 
and metadata values using both DC and MySchema.

During batch import when parsing the first metadata field of MySchema in 
dublin_core.xml i'm getting :

java.sql.SQLException: bad_dublin_core SchemaID=1, isReferencedBy null
 at org.dspace.content.Item.update(Item.java:1463)
 at org.dspace.content.InstallItem.installItem(InstallItem.java:146)
 at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:663)
 at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:506)
 at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:415)
java.sql.SQLException: bad_dublin_core SchemaID=1, isReferencedBy null

the schema id of MySchema is not 1 as reported above but 3.
Furthermore, the schema element in dublin_core.xml has the right value 
MySchema but the tool recognizes only the basic DC schema because
when i define the same field in DC the tool works fine even if the schema 
element has MySchema value.

Is there any known bug or something that i did wrong?

Thanks.






-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Psql error

2007-09-05 Thread James Rutherford
On Wed, Sep 05, 2007 at 04:27:27PM +0300, Mika Stenberg wrote:
 LOG:  unexpected EOF on client connection

This is a problem caused by DSpace not properly closing database
connections. It's nothing to worry about really (although it is probably
indicative of sloppy / incorrect use of the Context somewhere); all that
has happened is that the postgres JDBC driver is trying to use a
connection that it assumes is open when it's not. When the driver
realised it's actually closed, it will just go hunting for another. I
think this is in the list of things that need cleaning up in the near
future...

cheers,

Jim

-- 
James Rutherford  |  Hewlett-Packard Limited registered Office:
Research Engineer |  Cain Road,
HP Labs   |  Bracknell,
Bristol, UK   |  Berks
+44 117 312 7066  |  RG12 1HN.
[EMAIL PROTECTED]   |  Registered No: 690597 England

The contents of this message and any attachments to it are confidential and
may be legally privileged. If you have received this message in error, you
should delete it from your system immediately and advise the sender. To any
recipient of this message within HP, unless otherwise stated you should
consider this message and attachments as HP CONFIDENTIAL.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Running Handle Server on a different machine DSpace 1.4.2

2007-09-05 Thread Lawry Persaud
We have just recently received our CNRI Handle Number and we are running 
DSPACE 1.42.  Our setup is such were our handle server is sitting 
outside our Firewall (FW) and our Dspace Server is within the Firewall.  
We have opened the ports 8000 and 2641 on the FW and between the Handle 
Server and our DSpace server.

We would like to have the handle server pass request to the local 
instance of the handle server running on our DSpace server OR simply NOT 
run the local instance of DSpance Handle Server (sorta of redundant).  
However, DSpace has a handle plugin it runs as a dependency.

Our first course of action is to first install the Handle Server from 
CRNI on the same server as DSpace.  First get that to work and then 
separate the two.  If you run the Handle Server that's packaged with 
DSpace it works, however when we separate yours from DSpace it stops 
working.

Has anyone requested this behavior before or at least have DSpace 
clients who would like to run the CNRI Handle Server outside of Dspace 
and have it talk to the DSpace server.

Thanks in advance.

Lawry Persaud

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech