[Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread Evelthon Prodromou
Goodmorning everyone,


I am investigating the possibility of using lighttpd's secdownload
module to use expiring links. I'd like to use those in metadata, so that
a link will be valid if viewed within a dspace record, yet inaccessible
if hard linked directly. Just to be clear, these files are not hosted by
dspace.

At first i tried implementing lighttpd's instructions in item-view.xsl,
but creating and md5 sum seems to be next to impossible.

Lighttpd offers ready to use source codes for many languages, including
java, at
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload#Examples.
If i was to use that, where should i add that piece of code and how
should i call it to have the generated hash value in item-view.xsl ?


Many thanks,


Evelthon.
attachment: prodromou_evelthon.vcf--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI question

2012-04-25 Thread Robert Ruiz

Hi,

the real question is:

how to configure the sets that are served to the outside via OAI-PMH. By 
default ?verb=ListSets lists all the sets and that's what we don't want.


Thanks in advance,
Robert


El 19/04/2012 16:46, revskill escribió:
I'm sorry, i really don't understand what harvested items are , 
what're their role ? And what we can do with oai-pmh ?


Thank you for attention.

2012/4/19 Alexandre Magaz Graça alexandre.ma...@udl.cat 
mailto:alexandre.ma...@udl.cat


On dc 18 abr 2012 13:09:00 CEST, helix84 wrote:
 Would this help?

 https://wiki.duraspace.org/display/DSPACE/DSpaceOAISets

 Regards,
 ~~helix84

Hi helix84,

I already thought of most the options in this page when I started
looking at the problem. Still not sure of which is worse...

Thanks,
Àlex


--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
mailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech




--
TRUONG HOANG DUNG*
*/*Librarian **Researcher
*//Information and Library Centre
Mobile: 0121.411.5322
Email: _dun...@hpu.edu.vn mailto:dun...@hpu.edu.vn_/
_/Hai Phong Private University/_ http://lib.hpu.vn


--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2


___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 07:54, Evelthon Prodromou
prodromou.evelt...@ucy.ac.cy wrote:
 If i was to use that, where should i add that piece of code and how
 should i call it to have the generated hash value in item-view.xsl ?

Hi Evelthon,

actually there already is an MD5 checksum calculated for each
bitstream. It's easy to construct the URL in XSL - in your stylesheet
override the xsl:template match=mets:file from item-view.xsl.
You'll need to add the
xmlns:util=org.dspace.app.xmlui.utils.XSLUtils
xmlns:exdate=http://exslt.org/dates-and-times;
attributes to the stylesheet tag
and util and exdate to its exclude-result-prefixes attribute.

To construct the URL, use these values down in a href:
xsl:value-of select=@CHECKSUM/
xsl:value-of select=exdate:date-time()/

That's the easy part - displaying the link. Now to actually make that
link work, you have to change
dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/sitemap.xmap
starting from
map:match pattern=bitstream/handle/*/*/**
to include the new parameters - checksum and timestamp.

Then you have to make use of those parameters in
[dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java

That should be enough to point you in the right direction.

Anyway, I'm wondering what's the reason you want to do this?

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread Evelthon Prodromou
Hi Helix,

Thanks for the reply. I will look into it.

I'm working with lighttpd to host large video files. It seems to be
working but i still have to make some more checks. My problem is that
the url pointing to the file is viewable in the source code leading to
the possibility of a third party linkining to the file. By using the
secdownload module, links expire after a certain amount of time, thus
discouraging direct linking.



Evelthon


On 04/25/2012 11:14 AM, helix84 wrote:
 On Wed, Apr 25, 2012 at 07:54, Evelthon Prodromou
 prodromou.evelt...@ucy.ac.cy wrote:
 If i was to use that, where should i add that piece of code and how
 should i call it to have the generated hash value in item-view.xsl ?
 Hi Evelthon,

 actually there already is an MD5 checksum calculated for each
 bitstream. It's easy to construct the URL in XSL - in your stylesheet
 override the xsl:template match=mets:file from item-view.xsl.
 You'll need to add the
 xmlns:util=org.dspace.app.xmlui.utils.XSLUtils
 xmlns:exdate=http://exslt.org/dates-and-times;
 attributes to the stylesheet tag
 and util and exdate to its exclude-result-prefixes attribute.

 To construct the URL, use these values down in a href:
 xsl:value-of select=@CHECKSUM/
 xsl:value-of select=exdate:date-time()/

 That's the easy part - displaying the link. Now to actually make that
 link work, you have to change
 dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/sitemap.xmap
 starting from
 map:match pattern=bitstream/handle/*/*/**
 to include the new parameters - checksum and timestamp.

 Then you have to make use of those parameters in
 [dspace-src]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java

 That should be enough to point you in the right direction.

 Anyway, I'm wondering what's the reason you want to do this?

 Regards,
 ~~helix84


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 10:37, Evelthon Prodromou
prodromou.evelt...@ucy.ac.cy wrote:
 I'm working with lighttpd to host large video files. It seems to be
 working but i still have to make some more checks. My problem is that
 the url pointing to the file is viewable in the source code leading to
 the possibility of a third party linkining to the file. By using the
 secdownload module, links expire after a certain amount of time, thus
 discouraging direct linking.

You might want to prefer solving that on the file server side by
checking HTTP referer instead of on the DSpace side.

If you insist on doing that in DSpace, you can store the
pre-calculated checksum of externally hosted files in metadata and
only calculate the timestamp on page display.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread Evelthon Prodromou
I don't think the generated bitstream checksum can be used in this
case.  The sum needed in lighttpd's case is the md5 sum of a
concatenated string. The string is made up of a secret pass, the file
name with a forward slash in front, and a time string that was
previously converted to it's hex value.

On the other hand i don't think one can trust the HTTP referer since it
can be manipulated.

Evelthon




On 04/25/2012 11:41 AM, helix84 wrote:
 On Wed, Apr 25, 2012 at 10:37, Evelthon Prodromou
 prodromou.evelt...@ucy.ac.cy wrote:
 I'm working with lighttpd to host large video files. It seems to be
 working but i still have to make some more checks. My problem is that
 the url pointing to the file is viewable in the source code leading to
 the possibility of a third party linkining to the file. By using the
 secdownload module, links expire after a certain amount of time, thus
 discouraging direct linking.
 You might want to prefer solving that on the file server side by
 checking HTTP referer instead of on the DSpace side.

 If you insist on doing that in DSpace, you can store the
 pre-calculated checksum of externally hosted files in metadata and
 only calculate the timestamp on page display.

 Regards,
 ~~helix84


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Creating md5 sums for external links and lighttpd

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 12:20, Evelthon Prodromou
prodromou.evelt...@ucy.ac.cy wrote:
 I don't think the generated bitstream checksum can be used in this
 case.  The sum needed in lighttpd's case is the md5 sum of a
 concatenated string. The string is made up of a secret pass, the file
 name with a forward slash in front, and a time string that was
 previously converted to it's hex value.

OK, I didn't know that. In that case, the approach I described won't
work. You'd have to calculate the checksum in Java in an aspect and
insert it into the DRI (the XML document processed by XSLT).
You might be able to find an XSLT implementation of the MD5 algorithm,
but I'd really avoid that. Also keep in mind that DSpace currently
uses XSLT 1.0, not 2.0.

 On the other hand i don't think one can trust the HTTP referer since it
 can be manipulated.

That's correct, although it must be done consciously by the client,
there's no way of another site publishing a link that forces a client
to use a different referer. I thought you only wanted to reduce load
on your servers, not catch every single access.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Hi,

Do I require to have AuthenticationManager.java and
AuthenticationMethod.java also, or only PasswordAuthentication.java?.

Thanks  regards
Kala

On Tue, Apr 24, 2012 at 9:28 PM, Priya S priya579...@googlemail.com wrote:

 Thank you for the clarification. Will customize
 PasswordAuthentication.java as you mentioned in the earlier mail  get back.

 Thanks  regards
 Priya


 On Tue, Apr 24, 2012 at 9:14 PM, helix84 heli...@centrum.sk wrote:

 On Tue, Apr 24, 2012 at 18:21, Priya S priya579...@googlemail.com
 wrote:
  But I
  have not find the file in the existing system and as I mentioned
 earlier,
  the directory dspace-api is not
  there.[dspace-src]/dspace-api/src/main/java/org/dspace/authenticate/
 But the
  user is getting authenticated, so which file is getting executed here,
 I am
  very much confused.

 As I wrote before, you've got the wrong sources:

 In the installed system that file is a .class file inside a .jar.
 That's why you need to get DSpace source code for your version, in
 particular dspace-1.6.2-src-release (not dspace-1.6.2-release) from
 http://sourceforge.net/projects/dspace/files/DSpace%20Stable/1.6.2/

 (Or you can use git like I said and switch to the 1.6 branch.)

  (org.dspace.app.xmlui.aspect.eperson has got only 2 java
  files.Nativation.java, PasswordLogin.java )

 This file has nothing to do with authentication. Aspects only take
 care of displaying something, not working with database.

 Regards,
 ~~helix84



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 13:16, Priya S priya579...@googlemail.com wrote:
 Do I require to have AuthenticationManager.java and
 AuthenticationMethod.java also, or only PasswordAuthentication.java?.

I do not exactly understand your question.
Yes, they are part of the source distribution and you need the whole
source distrobution to compile an authentication plugin.
No, you probably don't need to _modify_ any of them.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
I am sorry for my simple (may be silly) questions...As i am too new to
dspace and java, struggling to manage. Thank you for the reply.

If I want to use a table Tperson instead of eperson, is it enough if i
replace eperson with Tperson in PasswordAuthentication.java?.

Thnks
P

On Wed, Apr 25, 2012 at 1:22 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 13:16, Priya S priya579...@googlemail.com wrote:
  Do I require to have AuthenticationManager.java and
  AuthenticationMethod.java also, or only PasswordAuthentication.java?.

 I do not exactly understand your question.
 Yes, they are part of the source distribution and you need the whole
 source distrobution to compile an authentication plugin.
 No, you probably don't need to _modify_ any of them.

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 13:39, Priya S priya579...@googlemail.com wrote:
 If I want to use a table Tperson instead of eperson, is it enough if i
 replace eperson with Tperson in PasswordAuthentication.java?.

Definitely not, that's a variable name, not a table name.
One approach is to derive a class from EPerson
(dspace-api/src/main/java/org/dspace/eperson/EPerson.java) and replace
the table name inside it. Then include your derived class in
PasswordAuthentication instead of EPerson.

Another approach is to do any extra database calls you need directly
in PasswordAuthentication.java.

Remember that if you want to connect to a database on a different
machine, you need to change the context given to DatabaseManager
accordingly.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Hi,

I am extremely sorry to trouble you.

Could you please guide me what is the easiest way if I want to use table
Tperson from a different postgres database instead of table eperson?.

Thank you
P

On Wed, Apr 25, 2012 at 1:45 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 13:39, Priya S priya579...@googlemail.com wrote:
  If I want to use a table Tperson instead of eperson, is it enough if i
  replace eperson with Tperson in PasswordAuthentication.java?.

 Definitely not, that's a variable name, not a table name.
 One approach is to derive a class from EPerson
 (dspace-api/src/main/java/org/dspace/eperson/EPerson.java) and replace
 the table name inside it. Then include your derived class in
 PasswordAuthentication instead of EPerson.

 Another approach is to do any extra database calls you need directly
 in PasswordAuthentication.java.

 Remember that if you want to connect to a database on a different
 machine, you need to change the context given to DatabaseManager
 accordingly.

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 13:58, Priya S priya579...@googlemail.com wrote:
 Could you please guide me what is the easiest way if I want to use table
 Tperson from a different postgres database instead of table eperson?.

In any case, you need a connection to this other database. So for each
SQL command operating on the Tperson table you need to set the context
to use a DB connection to your second database:
context.setConnection(dbURL, dbUsername, dbPassword);

Then you pass this context to DatabaseManager methods operating on the
Tperson table. Of course, you'll need to change the table name in SQL
commands, too, or, alternatively, create a view in the second database
mapping Tperson to eperson.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] (no subject)

2012-04-25 Thread paras jain
sir i have added 2 new search or browse categories in dspace.cfg file.but
still i cannot find any new category to be added in dspace.i have make all
required changes in dspace.cfg file or message.xml file as earlier
mention.please guide me sir how i added new categories in dspace list.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Community-wide discussion: easy upgrade scripts

2012-04-25 Thread Iryna Kuchma
Dear DSpace developers and users,

As many of you know, the DSpace Community Advisory Team (DCAT) (
https://wiki.duraspace.org/display/cmtygp/DSpace+Community+Advisory+Team)https://wiki.duraspace.org/display/cmtygp/DSpace+Community+Advisory+Teamhelps
review the JIRA issues classified as new feature requests. The goal
of the DCAT review is to help move the feature along – by helping to flesh
out requirements or ideas for implementation as well as recruiting
developers to work on the request. DCAT generally selects the new feature
requests which appear to be of broad interest in the community. DCAT
discussions are documented and are always open to the entire community for
comment/feedback (
https://wiki.duraspace.org/display/dsforum/DCAT+Discussion+Forum). There
are some new feature requests that would be very useful to discuss with the
entire community on the mailing list rather than just in DCAT. We are
bringing one such request to you today: *Create easy upgrade scripts* (
https://jira.duraspace.org/browse/DS-456).

There is a general understanding within our community that any
simplification to the upgrade process would be greatly appreciated. Easy
upgrade scripts will be useful, in particular for institutions with few
resources in terms of technical staff time. Ideally one script could be
made that would enable going through the entire process responding to
various prompts for config information – i.e. so simple that a repository
manager may be able to do it. We suggest the following research approaches.

*Strategy 1*: We can start with further automation of the latest DSpace
upgrade instructions – a suite of scripts approach. For example, based on
the latest DSpace upgrade instructions: (
https://wiki.duraspace.org/display/DSDOC18/Upgrading+From+1.7.x+to+1.8.x)
the following could possibly be automated further:

   - Diagnostic script that compares your DSpace installation with a
   standard installation and highlights anything that is out of the ordinary
   after which it can give you warnings if some upgrades won't work or might
   cause difficulties.
   - Creation of a full backup of DB, asset store, configurations and
   customizations.
   - Downloading a new DSpace version.
   - Merging customizations.
   - Build DSpace, stop tomcat, update DSpace.
   - Update/Merge Dspaceconfigurations.
   - Generate browse  search indexes – deploy webapp – restart servlet
   container.

This kind of approach wouldn't automate the entire process, but could
simplify it considerably.

*Strategy 2:* Another approach could be through common configurations that
could provide an incentive driving users towards fewer configurations.

*Current activities*: the Agris (FAO) and Odin (UNESCO-IOC) communities are
currently investigating whether they can perform updates/upgrades using
their customized Windows-only (.exe) Installer for DSpace (AgriOcean – a
customized version of DSpace : for more information, go to
http://aims.fao.org/agriocean-dspace). Once it is built, this code may be
something that could be generalizable, at least for Windows-based
installations of DSpace (more detailed are here
https://jira.duraspace.org/browse/DS-456).

*Call for Feedback:* Do you know about any other similar projects? Has any
of you written or come across any easy upgrade scripts?

*Call for Volunteers:* If there are no solutions available yet, would any
of you volunteer to create easy upgrade scripts (e.g. 'dspace upgrade 1.7
1.8'), likely in Java? We can start writing scripts for the most common
database/operating system which in our case is PostgreSQL/Linux (based on
the numbers of users from DSpace Registry (
http://www.dspace.org/whos-using-dspace/Repository-List.html): Database:
PostgreSQL 310, MySQL 58, Oracle 40, Other 12; Operating System Platform:
Linux 224, Microsoft Windows 88, UNIX 28, Solaris 22, HPUX 2).

*Requirements*: Anyone (with the skills, expertise or experience) can
volunteer, you don't have to be a DSpace committer.

Thank you for your interest and input!

DCAT
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Hi,

What are the files involved here apart from the below to incorporate the
changes you mentioned?. Could you pls tell me.

1) PasswordAuthentication.java,
2) Eperson.java

Thnx n rgds
P

On Wed, Apr 25, 2012 at 2:08 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 13:58, Priya S priya579...@googlemail.com wrote:
  Could you please guide me what is the easiest way if I want to use table
  Tperson from a different postgres database instead of table eperson?.

 In any case, you need a connection to this other database. So for each
 SQL command operating on the Tperson table you need to set the context
 to use a DB connection to your second database:
 context.setConnection(dbURL, dbUsername, dbPassword);

 Then you pass this context to DatabaseManager methods operating on the
 Tperson table. Of course, you'll need to change the table name in SQL
 commands, too, or, alternatively, create a view in the second database
 mapping Tperson to eperson.

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 15:17, Priya S priya579...@googlemail.com wrote:
 What are the files involved here apart from the below to incorporate the
 changes you mentioned?. Could you pls tell me.

 1) PasswordAuthentication.java,
 2) Eperson.java

AFAICT, these are the only files that need to be modified. Of course
all the other java files must be present to build DSpace with maven.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Many thanks.

Rgds
P

On Wed, Apr 25, 2012 at 3:21 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 15:17, Priya S priya579...@googlemail.com wrote:
  What are the files involved here apart from the below to incorporate the
  changes you mentioned?. Could you pls tell me.
 
  1) PasswordAuthentication.java,
  2) Eperson.java

 AFAICT, these are the only files that need to be modified. Of course
 all the other java files must be present to build DSpace with maven.

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
I do not have eperson directory in the existing system, so I have
downloaded Eperson.java  rest from

https://github.com/DSpace/DSpace/tree/dspace-1_6_x/dspace-api/src/main/java/org/dspace/eperson

and kept in the same location where I have authenticate module.

Is it correct?. Pls let me know.

Thnx n rgds
P

On Wed, Apr 25, 2012 at 3:23 PM, Priya S priya579...@googlemail.com wrote:

 Many thanks.

 Rgds
 P


 On Wed, Apr 25, 2012 at 3:21 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 15:17, Priya S priya579...@googlemail.com
 wrote:
  What are the files involved here apart from the below to incorporate the
  changes you mentioned?. Could you pls tell me.
 
  1) PasswordAuthentication.java,
  2) Eperson.java

 AFAICT, these are the only files that need to be modified. Of course
 all the other java files must be present to build DSpace with maven.

 Regards,
 ~~helix84



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 15:46, Priya S priya579...@googlemail.com wrote:
 I do not have eperson directory in the existing system, so I have downloaded
 Eperson.java  rest from

 https://github.com/DSpace/DSpace/tree/dspace-1_6_x/dspace-api/src/main/java/org/dspace/eperson

 and kept in the same location where I have authenticate module.

 Is it correct?. Pls let me know.

No, that's not enough. As I wrote twice before, throw away your dspace
sources and download them again. Here's a direct link:

http://downloads.sourceforge.net/project/dspace/DSpace%20Stable/1.6.2/dspace-1.6.2-src-release.tar.gz

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace upgrade problem

2012-04-25 Thread Alain Tschanz
Hello,
I upgraded DSpace from version 1.8.0 to 1.8.2 following the instructions at 
https://wiki.duraspace.org/display/DSDOC18/Upgrading+From+1.8+to+1.8.x, but 
after the upgrade the DSpace version in control panel-DSpace configuration is 
still at 1.8.0. I ran mvn with the clean option and rebuilt DSpace. Still no 
change.

Thank you for your help.

Alain Tschanz
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] how debug postgresql?

2012-04-25 Thread ʚïɞ . . . liss . . . εïз

Hello helix84, Thank you very much by the command!!!, it's made that the 
assetstore with 40gb would became in 17 gb. Now I have this problem like I said 
I had delete some records but some metadata like author and subject continues 
to appear in the repository when I look for entries it show me No Entries in 
Index that ok but how can I make for this authors and subject that no have 
entries don't appear. thanks again...  From: heli...@centrum.sk
 Date: Mon, 16 Apr 2012 17:04:45 +0200
 Subject: Re: [Dspace-tech] how debug postgresql?
 To: liss...@hotmail.com
 CC: dspace-tech@lists.sourceforge.net
 
 On Mon, Apr 16, 2012 at 16:47, ʚïɞ...liss ...εïз liss...@hotmail.com wrote:
  I'm working with version 1.7.2 of DSpace've had to delete some collections
  with multiple records the matter is that if you delete the program but not
  the postgresql database use this to continue deleting 8.2 collections will
  continue to give but my database continues to grow and increases the space
  on my hard drive on occasion use a vacuom but lost the links to the records,
  I can do to debug it and not lose links or anything else?
 
 Hello Liss,
 
 I think it's unlikely that your DSpace database has grown to consume
 your entire disk.
 
 It's more likely that the old bitstreams are filling up your disk.
 This is because if you delete an item with a bitstream in DSpace, it's
 not really removed from the assetstore. To actually delete all deleted
 bitstreams from the asset store, run this command (replace [dspace]
 with your dspace installation directory):
 
 [dspace]/bin/dspace cleanup -v
 
 This fact is documented in API docs, but this should probablybe
 stressed more often in User Guide.
 http://projects.dspace.org/8/apidocs/org/dspace/storage/bitstore/package-summary.html
 
 If I'm wrong and you really need to shrink the SQL database, not the
 assetstore, let me know on the list.
 
 Regards,
 ~~helix84
  --
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace upgrade problem

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 16:23, Alain Tschanz atsch...@njstatelib.org wrote:
 I upgraded DSpace from version 1.8.0 to 1.8.2 following the instructions at
 https://wiki.duraspace.org/display/DSDOC18/Upgrading+From+1.8+to+1.8.x, but
 after the upgrade the DSpace version in control panel-DSpace configuration
 is still at 1.8.0. I ran mvn with the clean option and rebuilt DSpace. Still
 no change.

1) Did you run ant update?
2) Did you replace the [dspace] placeholder with the actual
installation directory?
3a) Did you copy over the webapps to the tomcat webapps directory, or,
alternatively
3b) did you define a context pointing to the webapps in dspace directory?
5) Did you restart tomcat at the end?

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Hi,

What I have is the customized dspace from Datadryad,  I am not sure
whether I can do a fresh installation of dspace in it as its been
customized already according to our requirements. so I have to work in the
existing system.

Rgds
P

On Wed, Apr 25, 2012 at 3:51 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 15:46, Priya S priya579...@googlemail.com wrote:
  I do not have eperson directory in the existing system, so I have
 downloaded
  Eperson.java  rest from
 
 
 https://github.com/DSpace/DSpace/tree/dspace-1_6_x/dspace-api/src/main/java/org/dspace/eperson
 
  and kept in the same location where I have authenticate module.
 
  Is it correct?. Pls let me know.

 No, that's not enough. As I wrote twice before, throw away your dspace
 sources and download them again. Here's a direct link:


 http://downloads.sourceforge.net/project/dspace/DSpace%20Stable/1.6.2/dspace-1.6.2-src-release.tar.gz

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] how debug postgresql?

2012-04-25 Thread helix84
1) shut down tomcat
2) [dspace]/bin/dspace index-init
3) start tomcat
That may take a long time depending on the size of your repository.

If you're using XMLUI with Discovery, also run
[dspace]/bin/dspace update-discovery-index -b
after that while tomcat is running.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
On Wed, Apr 25, 2012 at 16:38, Priya S priya579...@googlemail.com wrote:
 What I have is the customized dspace from Datadryad,  I am not sure
 whether I can do a fresh installation of dspace in it as its been customized
 already according to our requirements. so I have to work in the existing
 system.

Again, as I told you, don't develop on a production machine! Do all I
told you on a PC or laptop, not on the server. When your module is
working, only then you will deploy it on the server.

You will only make a database connection from your development machine
to the Dryad database. Or even better, copy over the Tpeople table to
a separate database on your development machine.

If you rush these things, you will most likely break one or both of
your production DSpace installations.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace upgrade problem

2012-04-25 Thread Alain Tschanz
As always, I'm much obliged. I thought I had Tomcat point to the webapps 
directory of Dspace--I have it set up this way on my test server--but the 
production server still looked for the webapps directory in Tomcat. After 
changing the configuration, the correct version number is displaying now in 
control panel-dspace configuration.

Thank you for your quick response. And please pardon my ignorance. 

Alain

-Original Message-
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: Wednesday, April 25, 2012 10:35 AM
To: Alain Tschanz
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] DSpace upgrade problem

On Wed, Apr 25, 2012 at 16:23, Alain Tschanz atsch...@njstatelib.org wrote:
 I upgraded DSpace from version 1.8.0 to 1.8.2 following the 
 instructions at 
 https://wiki.duraspace.org/display/DSDOC18/Upgrading+From+1.8+to+1.8.x
 , but after the upgrade the DSpace version in control panel-DSpace 
 configuration is still at 1.8.0. I ran mvn with the clean option and rebuilt 
 DSpace. Still no change.

1) Did you run ant update?
2) Did you replace the [dspace] placeholder with the actual installation 
directory?
3a) Did you copy over the webapps to the tomcat webapps directory, or, 
alternatively
3b) did you define a context pointing to the webapps in dspace directory?
5) Did you restart tomcat at the end?

Regards,
~~helix84
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] sendPageAndWait not moving on.

2012-04-25 Thread Blanco, Jose
I've made a couple of changes trying to emulate other files that work the way I 
want this to work, and I'm still stuck.

Question, I have 

cocoon.sendPageAndWait(request-item/main,{handle:handle,itemId:itemId,bitstreamId:bitstreamId});

and I have:

  map:match pattern=request-item/main
 map:transform type=RequestItem/
map:transform type=RequestItem
map:parameter name=handle 
value={flow-attribute:handle}/
map:parameter name=itemId 
value={flow-attribute:itemdId}/
map:parameter name=bitstreamId 
value={flow-attribute:bitstreamId}/
/map:transform
  
  /map:match

But when I get to ehte RequestItem there is nothing in itemId.  I'm either not 
really passing it, or I have some setup error.  Any ideas?

-Jose

-Original Message-
From: Blanco, Jose [mailto:blan...@umich.edu] 
Sent: Tuesday, April 24, 2012 2:02 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] sendPageAndWait not moving on.

I'm stuck.  I created a page where the user enters some data, I then want to 
process the data based on button that is pressed.  To do this I have created a 
js file that contains this function:

function startRequestItem()
{
  var handle = cocoon.request.get(handle);
  var itemId = cocoon.request.get(itemId);
  var bitstreamId = cocoon.request.get(bitstreamId);
  var result;

 do
  {


sendPageAndWait(request-item/main,{handle:handle,itemId:itemId,bitstreamId:bitstreamId},result);

if (cocoon.request.get(submit_send_request_item))
{
  var item = Item.find(getDSContext(),itemId);
  
cocoon.redirectTo(cocoon.request.getContextPath()+/handle/+item.getHandle(),true);
  getDSContext().complete();
  item = null;
  cocoon.exit();
}
if (cocoon.request.get(submit_cancel_request_item))
{
  var item = Item.find(getDSContext(),itemId);
  
cocoon.redirectTo(cocoon.request.getContextPath()+/handle/+item.getHandle(),true);
  getDSContext().complete();
  item = null;
  cocoon.exit();
}
  }
  while (true);

}

But what I'm seeing is that the request-item/main is processed but when a 
button is hit you don't return from the sendPageAndWait function.  The same 
page is just refreshed.

Here is what I have in the sitemap:

  map:match pattern=request-item
map:match type=request pattern=artifact-continue
 map:call continuation={1}/
 /map:match
 map:call function=startRequestItem/
  /map:match


AND


  !-- requested item --
  map:match pattern=request-item/main
 map:transform type=RequestItem/
   map:serialize type=xml/
  /map:match


I hope this is enough info to get some suggestions.

Thank you!  Jose



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Has anyone ingested scanned documents directly into DSpace?

2012-04-25 Thread Magnus Norberg

Hello everyone,

Has anyone ingested scanned documents directly into DSpace? What system did you 
use and how did it work?

Thank you!

/Greetings from Magnus, Sweden
  --
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Media Filter Errors

2012-04-25 Thread Brett Arno

Hello All,

I'm receiving a good portion of errors when running the filter-media 
command and wondering if anyone can provide some insight.


I'm running 1.7.2 XMLUI with Mirage on a Red Hat server. Most items in 
the instance give this error:


ERROR filtering, skipping bitstream:

Item Handle: 10829/669
Bundle Name: ORIGINAL
File Size: 43066
Checksum: d302cf0378a385ff16610d63943b5368 (MD5)
Asset Store: 0
java.io.IOException: No such file or directory
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:900)
at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
at 
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageManager.java:300)

at org.dspace.content.Bitstream.create(Bitstream.java:205)
at org.dspace.content.Bundle.createBitstream(Bundle.java:384)
at 
org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:760)
at 
org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561)
at 
org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511)
at 
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479)
at 
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414)
at 
org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333)

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:616)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

The first thing I checked was that the items files exist and can be 
accessed through the system and from my large test sample, they all had 
PDFs and all opened fine.


I've tried completely rebuilding the index to see if that may help, but 
that didn't change the results. I've tried indexing with these commands 
and none of them helped:


[dspace]/bin/dpsace index-update
[dspace]/bin/dspace index-init
[dspace]/bin/dspace index-init -r -f

We are using the PDF filter that was issued with the system and not 
using discovery.


I also noticed this error in the DSpace log:
WARN  org.apache.pdfbox.util.PDFStreamEngine @ java.io.IOException: 
Error: expected hex character and not  :32

java.io.IOException: Error: expected hex character and not  :32
at 
org.apache.fontbox.cmap.CMapParser.parseNextToken(CMapParser.java:336)

at org.apache.fontbox.cmap.CMapParser.parse(CMapParser.java:139)
at org.apache.pdfbox.pdmodel.font.PDFont.parseCmap(PDFont.java:556)
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:390)
at 
org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:386)

at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at 
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:567)
at 
org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:250)
at 
org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:208)
at 
org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:378)
at 
org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:302)
at 
org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:258)
at 
org.dspace.app.mediafilter.PDFFilter.getDestinationStream(PDFFilter.java:101)
at 
org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737)
at 
org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561)
at 
org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511)
at 
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479)
at 
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414)
at 
org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333)

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:616)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)


Any help would be greatly appreciated!

--
*Brett Arno*
Library Systems Support Specialist
Herrick Memorial Library
Alfred University
1 Saxon Drive
Alfred, NY 14802
Email: b...@alfred.edu | Phone: 607-871-2989
--
Live 

Re: [Dspace-tech] Media Filter Errors

2012-04-25 Thread helix84
Thanks for the exact info. This has been reported a few times before
and seems to be a permissions problem - dspace is not able to create a
file in assetstore.

Can you take a look at these threads and report back?
http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg16423.html
http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg16446.html

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Media Filter Errors

2012-04-25 Thread helix84
Also this one:
http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg04327.html

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Media Filter Errors

2012-04-25 Thread Brett Arno
Thanks for the helpful advice helix.

  I do notice that our assetstore has 755 permissions set on them for 
the tomcat user.  This may not be the correct user, but it had cleared 
up previous issues that we were getting from the UI during the 
submission phases. I suppose a switch to 777 would clear the issue 
entirely, but I'm not entirely sure our IT folks would be comfortable in 
issuing those permissions even if DSpace is the only application running 
on the server currently.

Right now I think our dspace and tomcat users are completely independent 
of each other, but it's my understanding that typical installations are 
running tomcat from the dspace user. Is this correct and is there a 
solution for our set-up that may help our case?

Thanks,
Brett

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Media Filter Errors

2012-04-25 Thread Brett Arno
I think I'm starting to make some more sense of this, but maybe I'm 
missing something and could use some clarification.

Right now our assetstore is owned by the tomcat user, and the reason we 
did this was because of could not create errors during our submission 
process from the UI. It was originally owned by dspace or a mix of 
dspace/tomcat which we really didn't understand, so we unified it to the 
tomcat user. All was well and good until the current problem.

I'm going to take a guess that the issue is because the PDFbox/media 
filter are run by the dspace user and now that user no longer has the 
correct permissions to create the text file in the assetstore.

So the solution would be to create a method of having both dspace/tomcat 
able to write to the assetstore, which a number of options exist.

Sorry if this is just a regurgitation of everything you already said, I 
just wanted to make sure I understood the problem fully.

Thanks!
-Brett

On 4/25/12 6:00 PM, helix84 wrote:
 On Wed, Apr 25, 2012 at 23:52, Brett Arnobarno...@gmail.com  wrote:
 Thanks for the helpful advice helix.

   I do notice that our assetstore has 755 permissions set on them for the
 tomcat user.  This may not be the correct user, but it had cleared up
 previous issues that we were getting from the UI during the submission
 phases. I suppose a switch to 777 would clear the issue entirely, but I'm
 not entirely sure our IT folks would be comfortable in issuing those
 permissions even if DSpace is the only application running on the server
 currently.

 Right now I think our dspace and tomcat users are completely independent of
 each other, but it's my understanding that typical installations are running
 tomcat from the dspace user. Is this correct and is there a solution for our
 set-up that may help our case?
 In your place I would change dspace to run under the tomcat user. Or
 chown tomcat files by the dspace user, doesn't matter. I do that and I
 never encountered this problem.

 Regards,
 ~~helix84


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread Priya S
Hi,

I am trying to install Dspace 1.6.2 as advised by you. I just followed the
steps in the manual. In Step 8, when i say ant fresh_install, it says build
failed. Here is the err msg.  Could you please tell me where did I make
mistake in dspace.cfg. Thank you.

dspace@fred:~/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir$
ant fresh_install
Buildfile:
/home/dspace/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir/build.xml

init_installation:

init_configs:

test_database:
 [java] 2012-04-26 01:13:43,397 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configura
 [java] Error:
 [java]  - org.apache.commons.dbcp.SQLNestedException: Cannot get a
connection, pool error: Could not create a validated objecttion):
config/dspace.cfg
 [java] 2012-04-26 01:13:43,407 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided log
configuration,if uninitended, check your dspace.cfg for (log.init.config)
 [java]
 [java] Attempting to connect to database:
 [java]  - URL: jdbc:postgresql://localhost:5432/dspace
 [java]  - Driver: org.postgresql.Driver
 [java]  - Username: dspace
 [java]  - Password: d00
 [java]  - Schema: null
 [java]
 [java] Testing con, cause: ValidateObject failed
 [java]
 [java] Please see the DSpace documentation for assistance.
 [java]
 [java] nection...

BUILD FAILED
/home/dspace/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir/build.xml:601:
Java returned: 1

Total time: 1 second


On Wed, Apr 25, 2012 at 4:42 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Apr 25, 2012 at 16:38, Priya S priya579...@googlemail.com wrote:
  What I have is the customized dspace from Datadryad,  I am not sure
  whether I can do a fresh installation of dspace in it as its been
 customized
  already according to our requirements. so I have to work in the existing
  system.

 Again, as I told you, don't develop on a production machine! Do all I
 told you on a PC or laptop, not on the server. When your module is
 working, only then you will deploy it on the server.

 You will only make a database connection from your development machine
 to the Dryad database. Or even better, copy over the Tpeople table to
 a separate database on your development machine.

 If you rush these things, you will most likely break one or both of
 your production DSpace installations.

 Regards,
 ~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] PasswordLogin.java

2012-04-25 Thread helix84
That error means it tried to connect to the database with the login
and password you provided, but it failed.

Did you create the database in Step 4 by these two commands run as root?
createuser -U postgres -d -A -P dspace
createdb -U dspace -E UNICODE dspace
The second command prompted you for password, did you enter d00, the
same value you configured in dspace.cfg?

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech