[Dspace-tech] DSpace 4 and Hierachical Authentication

2013-12-16 Thread Clive Gould
Hi

Does anyone know if the LDAP special groups code that was broken in DSpace
3.x will be working in DSpace 4?

I've been waiting for this to work before upgrading

Thanks

Clive
--
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

Re: [Dspace-tech] LDAP auto-registration -- what am I missing?

2013-09-16 Thread Clive Gould
Hi

You might find the information in my blog helpful

http://dspacebromley.blogspot.co.uk/2009/04/dspace-installation-procedure-on-centos.html

Bear in mind it refers to an older version of DSpace so some of the LDAP
settings e.g. special groups have changed

Good luck

Clive


> Message: 1
> Date: Sun, 15 Sep 2013 23:14:29 +0200
> From: helix84 
> Subject: Re: [Dspace-tech] LDAP auto-registration -- what am I
> missing?
> To: Andrew Reid 
> Cc: dspace-tech 
> Message-ID:
>  2j_...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> On Fri, Sep 13, 2013 at 9:56 PM, Andrew Reid  wrote:
> >   The fact that the authentication succeeds makes me think I'm
> > not too far off.  I don't think I've typo'd any of the field
> > names on either side.  Is there some subtlety in the permissions
> > that I'm missing?  Does this work for other people?
>
> Hi Andrew,
>
> yes, that sounds like a permissions "problem" on the side of your LDAP
> server. I'd say that once your user successfully authenticates, he's
> not allowed to read his own attributes (name, surname, ...) and thus
> DSpace stores null.
>
> Do try to log in using some LDAP client (e.g. ldapsearch or a GUI
> client like Apache Directory Studio) using the same user's credentials
> and see if you can read the values of his attributes.
>
> >   I'm not doing heirarchical authentication, should I be?
>
> If you can verify that the problem is what I say it is, you can fix it
> on the LDAP server side by giving all users permission to read their
> attributes (at least those that DSpace needs).
>
> While you could have one special LDAP account that has read
> permissions to all the other accounts and use it to retrieve the
> attribute values, this is not how the code in DSpace currently works.
> Even if you enable hierarchical auth (which you otherwise don't need -
> because the authentication itself works for you), DSpace will still
> use the actual user's account to retrieve its attributes, not the
> search.user account.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&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

Re: [Dspace-tech] Ldap 3.2 working except groups

2013-08-16 Thread Clive Gould
Hi David

I'm pretty sure the special groups code is broken. It was definitely broken
in 3.0 and I can't get it to work using the corrected code copied from 3.2

Clive

Message: 1
Date: Thu, 15 Aug 2013 22:27:03 +
From: "Schuster, David" 
Subject: [Dspace-tech] Ldap 3.2 working except groups
To: ""

Message-ID: <03b6b3e1-bbd6-43ed-a7e3-68bdcef38...@twu.edu>
Content-Type: text/plain; charset="us-ascii"

I have LDAP working now and it creates the accounts but is not putting the
user in the group I have defined in the authenticate-ldap.cfg.

Anyone else see that?
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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] Does anyone have LDAP Special Groups working?

2013-08-15 Thread Clive Gould
Hi

I've tried upgrading from 1.8 to 3.x and LDAP authentication works fine for
both staff and students

However I can't get the LDAP special groups code to work when there is more
than one special group

I've tried including the relevant modified code from DSpace 3.2 in DSpace
3.0 but it still doesn't work

Has anyone else got this working properly?

Thanks

Clive
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-07 Thread Clive Gould
I've just copied over the config file from 3.2 run maven and ant

On restarting Tomcat the problem still seems to be there :((

 1026  cp
/home/dspace/dspace-3.2-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
/home/dspace/dspace-3.0-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
 1034  cd /home/dspace/dspace-3.0-src-release/dspace
 1035  mvn -U clean package
 1037  cd /home/dspace/dspace-3.0-src-release/dspace/target/dspace-3.0-build
 1038  ant -Dconfig=/home/dspace/config/dspace.cfg update



On Wed, Aug 7, 2013 at 12:26 PM, helix84  wrote:

> On Wed, Aug 7, 2013 at 1:20 PM, Clive Gould  wrote:
> > It looks as if this was fixed in DSpace 3.2
>
> Right. Sorry about that. You can simply use that newer
> LDAPAuthentication.java file (beware of OAI being broken in 3.2). Does
> it work for you now?
>
> https://jira.duraspace.org/browse/DS-1576
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-07 Thread Clive Gould
Hi everyone

It looks as if this was fixed in DSpace 3.2

[dspace@standbyvle ~]$ diff
/home/dspace/dspace-3.2-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
/home/dspace/dspace-3.0-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
615c615
<  * the authentication-ldap.login.groupmap.* key.
---
>  * the ldap.login.groupmap.* key.
647c647
< "Group defined in
authentication-ldap.login.groupmap." + i + " does not exist :: " +
dspaceGroupName));
---
> "Group defined in
ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
660c660
< groupMap =
ConfigurationManager.getProperty("authentication-ldap", "login.groupmap." +
++i);
---
> groupMap =
ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);

Thanks

Clive



On Wed, Aug 7, 2013 at 11:10 AM, Clive Gould  wrote:

> Hi everyone
>
> I'm not a programmer as I said before but have just been scanning over the
> source code in LDAPAuthentication.java
>
> My  concern is with the following lines
>
> Before we go into the while loop
>
> int i = 1;
> String groupMap = ConfigurationManager.getProperty("authentication-ldap",
> "login.groupmap." + i);
>
> By my understanding this should read the first line login.groupmap.1
>
> Before the end of the while loop to move onto any  login.groupmap.2 and
> login.groupmap.3 etc
>
> groupMap = ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);
>
> It looks to me as if the last line should read
>
> groupMap = ConfigurationManager.getProperty("login.groupmap." + ++i);
>
> Have I found a bug or is this just down to the fact I don't understand the
> code??
>
> Any thoughts most welcome
>
> Clive
>
>
> The complete excerpt from
> /home/dspace/dspace-3.0-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
> is shown below:
>
>
>System.out.println("dn:" + dn);
> int i = 1;
> String groupMap =
> ConfigurationManager.getProperty("authentication-ldap", "login.groupmap." +
> i);
> while (groupMap != null)
> {
> String t[] = groupMap.split(":");
> String ldapSearchString = t[0];
> String dspaceGroupName = t[1];
>
> if (StringUtils.containsIgnoreCase(dn, ldapSearchString))
> {
> // assign user to this group
> try
> {
> Group ldapGroup = Group.findByName(context,
> dspaceGroupName);
> if (ldapGroup != null)
> {
> ldapGroup.addMember(context.getCurrentUser());
> ldapGroup.update();
> context.commit();
> }
> else
> {
> // The group does not exist
> log.warn(LogManager.getHeader(context,
> "ldap_assignGroupsBasedOnLdapDn",
> "Group defined in
> ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
> }
> }
> catch (AuthorizeException ae)
> {
> log.debug(LogManager.getHeader(context,
> "assignGroupsBasedOnLdapDn could not authorize addition to group",
> dspaceGroupName));
> }
> catch (SQLException e)
> {
> log.debug(LogManager.getHeader(context,
> "assignGroupsBasedOnLdapDn could not find group", dspaceGroupName));
> }
> }
>
> groupMap =
> ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);
> }
>
>
>
> On Wed, Aug 7, 2013 at 10:35 AM, Clive Gould  wrote:
>
>> Hi everyone
>>
>> I'm beginning to suspect the LDAP Special Groups code in DSpace 3.0 is
>> broken
>>
>> Please see the scenarios below, which are excerpts from
>> /home/dspace/config/modules/authentication-ldap.cfg
>>
>> Scenario 1
>>
>>
>> login.groupmap.1 = OU=StaffUsers:all-staff
>> login.groupmap.2 = OU=StudentUsers:all-students
&

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-07 Thread Clive Gould
Hi everyone

I'm not a programmer as I said before but have just been scanning over the
source code in LDAPAuthentication.java

My  concern is with the following lines

Before we go into the while loop

int i = 1;
String groupMap = ConfigurationManager.getProperty("authentication-ldap",
"login.groupmap." + i);

By my understanding this should read the first line login.groupmap.1

Before the end of the while loop to move onto any  login.groupmap.2 and
login.groupmap.3 etc

groupMap = ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);

It looks to me as if the last line should read

groupMap = ConfigurationManager.getProperty("login.groupmap." + ++i);

Have I found a bug or is this just down to the fact I don't understand the
code??

Any thoughts most welcome

Clive


The complete excerpt from
/home/dspace/dspace-3.0-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java
is shown below:


   System.out.println("dn:" + dn);
int i = 1;
String groupMap =
ConfigurationManager.getProperty("authentication-ldap", "login.groupmap." +
i);
while (groupMap != null)
{
String t[] = groupMap.split(":");
String ldapSearchString = t[0];
String dspaceGroupName = t[1];

if (StringUtils.containsIgnoreCase(dn, ldapSearchString))
{
// assign user to this group
try
{
Group ldapGroup = Group.findByName(context,
dspaceGroupName);
if (ldapGroup != null)
{
ldapGroup.addMember(context.getCurrentUser());
ldapGroup.update();
context.commit();
}
else
{
// The group does not exist
log.warn(LogManager.getHeader(context,
"ldap_assignGroupsBasedOnLdapDn",
"Group defined in ldap.login.groupmap."
+ i + " does not exist :: " + dspaceGroupName));
}
}
catch (AuthorizeException ae)
{
log.debug(LogManager.getHeader(context,
"assignGroupsBasedOnLdapDn could not authorize addition to group",
dspaceGroupName));
}
catch (SQLException e)
{
log.debug(LogManager.getHeader(context,
"assignGroupsBasedOnLdapDn could not find group", dspaceGroupName));
}
}

    groupMap =
ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);
}



On Wed, Aug 7, 2013 at 10:35 AM, Clive Gould  wrote:

> Hi everyone
>
> I'm beginning to suspect the LDAP Special Groups code in DSpace 3.0 is
> broken
>
> Please see the scenarios below, which are excerpts from
> /home/dspace/config/modules/authentication-ldap.cfg
>
> Scenario 1
>
>
> login.groupmap.1 = OU=StaffUsers:all-staff
> login.groupmap.2 = OU=StudentUsers:all-students
>
> In practice newly authenticated new staff are added to the all-staff,
> all-authenticated and anonymous groups. Newly authenticated students only
> belong to the anonymous group
>
> Scenario 2
>
>
> # Added By Clive Gould on 31/07/13 to allow for special groups
>
> # login.groupmap.1 = OU=StaffUsers:all-staff
> # login.groupmap.2 = OU=StudentUsers:all-students
> login.groupmap.1 = OU=StudentUsers:all-students
>
> In practice newly authenticated students are added to the all-students,
> all-authenticated and anonymous groups. Newly authenticated staff only
> belong to the anonymous group
>
> Scenario 3
>
> # login.groupmap.1 = OU=StaffUsers:all-staff
> # login.groupmap.2 = OU=StudentUsers:all-students
> login.groupmap.1 = OU=StudentUsers:all-students
> login.groupmap.2 = OU=StaffUsers:all-staff
>
> Newly authenticated students are added to the all-students,
> all-authenticated and anonymous groups. Newly authenticated staff only
> belong to the anonymous group
>
> Conclusion
>
> It looks horribly as if only the first line login.groupmap.1 is being
> processed. login.groupmap.2 seems to be ignored
>
> Note: If a member of staff or student has logged in and registered once
> their membership of the special groups appears to be persistent through
> multiple logins
>
> I'm not a Java programmer and haven't time try to understand and debug the
> code myself. Has anyone actually got this special group

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-07 Thread Clive Gould
Hi everyone

I'm beginning to suspect the LDAP Special Groups code in DSpace 3.0 is
broken

Please see the scenarios below, which are excerpts from
/home/dspace/config/modules/authentication-ldap.cfg

Scenario 1

login.groupmap.1 = OU=StaffUsers:all-staff
login.groupmap.2 = OU=StudentUsers:all-students

In practice newly authenticated new staff are added to the all-staff,
all-authenticated and anonymous groups. Newly authenticated students only
belong to the anonymous group

Scenario 2

# Added By Clive Gould on 31/07/13 to allow for special groups

# login.groupmap.1 = OU=StaffUsers:all-staff
# login.groupmap.2 = OU=StudentUsers:all-students
login.groupmap.1 = OU=StudentUsers:all-students

In practice newly authenticated students are added to the all-students,
all-authenticated and anonymous groups. Newly authenticated staff only
belong to the anonymous group

Scenario 3

# login.groupmap.1 = OU=StaffUsers:all-staff
# login.groupmap.2 = OU=StudentUsers:all-students
login.groupmap.1 = OU=StudentUsers:all-students
login.groupmap.2 = OU=StaffUsers:all-staff

Newly authenticated students are added to the all-students,
all-authenticated and anonymous groups. Newly authenticated staff only
belong to the anonymous group

Conclusion

It looks horribly as if only the first line login.groupmap.1 is being
processed. login.groupmap.2 seems to be ignored

Note: If a member of staff or student has logged in and registered once
their membership of the special groups appears to be persistent through
multiple logins

I'm not a Java programmer and haven't time try to understand and debug the
code myself. Has anyone actually got this special groups code to work
properly or is this a bug that needs fixing?

Any ideas anyone?

Clive


On Tue, Aug 6, 2013 at 10:11 AM, helix84  wrote:

> Neither login.specialgroup nor login.groupmap are applied to student,
> but it is to staff? I'm as baffled as you are.
>
> Are you modifying the right config file, i.e.
> [dspace]/config/modules/authentication-ldap.cfg (maybe you
> accidentally edited the one in [dspace-source])?
>
> Other than that, try sprinkling more log.debug calls around to see
> which branches of code are executed. Basically you want to check the
> values that drive the decisions in any relevant "if" statements.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-06 Thread Clive Gould
Hi everyone

Still trying to get the special groups code to work with LDAP login

Below is an excerpt from /home/dspace/config/modules/authentication-ldap.cfg

# LDAP users group #

# If required, a group name can be given here, and all users who log in
# to LDAP will automatically become members of this group. This is useful
# if you want a group made up of all internal authenticated users.
login.specialgroup = all-authenticated

# Added By Clive Gould on 31/07/13 to allow for special groups

login.groupmap.1 = OU=StaffUsers:all-staff
login.groupmap.2 = OU=StudentUsers:all-students


If I login as a staff member I get in the log file

2013-08-06 08:19:38,294 DEBUG org.dspace.authenticate.LDAPAuthentication @
anonymous:session_id=8FBFE4389EE44E4DFC0DF5845C9B920C:ip_addr=86.166.91.100:got
DN:CN=Clive Gould,OU=School of
ICT,OU=Curriculum&Partnerships,OU=RookeryLane,OU=StaffUsers,DC=staff,dc=bromley,dc=local

Groups EPerson is Member of:

Anonymous
Administrator
COLLECTION_1_SUBMIT
COLLECTION_2_SUBMIT
COLLECTION_3_SUBMIT
COLLECTION_4_SUBMIT
COLLECTION_5_SUBMIT
all-staff
all-authenticated

If I login as a student I get in the log file

2013-08-06 08:22:21,847 DEBUG org.dspace.authenticate.LDAPAuthentication @
anonymous:session_id=213AA9495F21ECD6CEB3BA494D2CA761:ip_addr=86.166.91.100:got
DN:CN=40035571,OU=2012-13,OU=Orpington,OU=StudentUsers,DC=student,dc=bromley,dc=local

Groups EPerson is Member of:

Anonymous

Any ideas why the student is not being added to the appropraite special
groups?

Thanks very much

Clive
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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

Re: [Dspace-tech] Dspace DEBUG logging won't work

2013-08-06 Thread Clive Gould
Solved

The DEBUG messages are not going into dspace.log but into
dspace.log.2013-08-06

Thanks


On Tue, Aug 6, 2013 at 8:12 AM, Clive Gould  wrote:

> Hi everyone
>
> Thanks for all the help recently
>
> I'm trying to turn on DEBUG level logging in DSpace
>
> 1) I've edited the /home/dspace/config/log4j.properties file and made the
> following changes
>
> ###
> # A1 is the name of the appender for most DSpace activity.
> ###
> # The root category is the default setting for all non-DSpace code.
> # Change this from INFO to DEBUG to see extra logging created by non-DSpace
> # code.
> log4j.rootCategory=*DEBUG*, A1
> # This line sets the logging level for DSpace code. Set this to DEBUG to
> see
> # extra detailed logging for DSpace code.
> log4j.logger.org.dspace=*DEBUG*, A1
> # Do not change this line
>
> 2) I've restarted Tomcat and there are no resulting error messages in
> catalina.out
>
> 3) But dspace.log still contains just INFO level messages e.g.
>
> 2013-08-06 04:00:02,536 INFO  org.dspace.servicemanager.DSpaceKernelInit @
> Created new kernel:
> DSpaceKernel:org.dspace:name=eb3073d5-cbdf-4011-bbaf-575faf632b64,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
> 2013-08-06 04:00:02,541 INFO  org.dspace.core.ConfigurationManager @
> Loading from classloader: file:/home/dspace/config/dspace.cfg
> 2013-08-06 04:00:02,571 INFO  org.dspace.core.ConfigurationManager @ Using
> dspace provided log configuration (log.init.config)
> 2013-08-06 04:00:02,571 INFO  org.dspace.core.ConfigurationManager @
> Loading: /home/dspace/config/log4j.properties
>
> Any ideas how to get debugging to work please?
>
> Thanks
>
> Clive
>
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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 DEBUG logging won't work

2013-08-06 Thread Clive Gould
Hi everyone

Thanks for all the help recently

I'm trying to turn on DEBUG level logging in DSpace

1) I've edited the /home/dspace/config/log4j.properties file and made the
following changes

###
# A1 is the name of the appender for most DSpace activity.
###
# The root category is the default setting for all non-DSpace code.
# Change this from INFO to DEBUG to see extra logging created by non-DSpace
# code.
log4j.rootCategory=*DEBUG*, A1
# This line sets the logging level for DSpace code. Set this to DEBUG to see
# extra detailed logging for DSpace code.
log4j.logger.org.dspace=*DEBUG*, A1
# Do not change this line

2) I've restarted Tomcat and there are no resulting error messages in
catalina.out

3) But dspace.log still contains just INFO level messages e.g.

2013-08-06 04:00:02,536 INFO  org.dspace.servicemanager.DSpaceKernelInit @
Created new kernel:
DSpaceKernel:org.dspace:name=eb3073d5-cbdf-4011-bbaf-575faf632b64,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
2013-08-06 04:00:02,541 INFO  org.dspace.core.ConfigurationManager @
Loading from classloader: file:/home/dspace/config/dspace.cfg
2013-08-06 04:00:02,571 INFO  org.dspace.core.ConfigurationManager @ Using
dspace provided log configuration (log.init.config)
2013-08-06 04:00:02,571 INFO  org.dspace.core.ConfigurationManager @
Loading: /home/dspace/config/log4j.properties

Any ideas how to get debugging to work please?

Thanks

Clive
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-05 Thread Clive Gould
Hi

Problem solved :)

I went through all the files below and manually changed ${dspace.dir} for
/home/dspace

No more error messages in catalina.out

Thanks everyone

Now to get back to debugging LDAP!

Clive

[root@standbyvle config]# cd /home/dspace/apache-tomcat-6.0.18/webapps
[root@standbyvle webapps]# grep -R "dspace.dir" *
dspace/WEB-INF/web.xml:
${dspace.dir}/config/dspace.cfg
dspace/WEB-INF/web.xml:${dspace.dir}
dspace-oai/WEB-INF/web.xml:
${dspace.dir}/config/dspace.cfg
dspace-oai/WEB-INF/web.xml:
${dspace.dir}/config/oaicat.properties
lni/WEB-INF/web.xml:
${dspace.dir}/config/dspace.cfg
solr/WEB-INF/web.xml:
${dspace.dir}/solr
sword/WEB-INF/web.xml:
${dspace.dir}/config/dspace.cfg
xmlui/WEB-INF/web.xml:
${dspace.dir}/config/dspace.cfg
xmlui/WEB-INF/web.xml:${dspace.dir}


On Mon, Aug 5, 2013 at 2:16 PM, helix84  wrote:

> On Mon, Aug 5, 2013 at 2:42 PM, Clive Gould  wrote:
> > Thanks for the suggestions. I've tried everything including mvn, ant and
> > subsequently manually replacing every reference to  ${dspace.dir with
> > /home/dspace in all files in /home/dspace/config and its subdirectories
>
> Like Kostas mentioned in another thread, yet another place where these
> variables are used is in web.xml files in each webapp.
>
> But I don't understand where the problem could be - if you made sure
> dspace.dir has an actual value in
> [dspace-source]/dspace/config/dspace.cfg before running "mvn package",
> then the change should propagate everywhere during "ant update".
>
> You can try "mvn clean package" instead of "mvn package", but I don't
> think it should make a difference.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-05 Thread Clive Gould
Hi

Thanks for the suggestions. I've tried everything including mvn, ant and
subsequently manually replacing every reference to  ${dspace.dir with
/home/dspace in all files in /home/dspace/config and its subdirectories

However, the error in catalina.out resolutely refuses to go away

I just don't have any more time to sort this out so we'll just have to
stick with 1.8.1 for the time being

Thanks anyway for all the help

Clive


On Mon, Aug 5, 2013 at 11:31 AM, helix84  wrote:

> On Fri, Aug 2, 2013 at 3:58 PM, Clive Gould  wrote:
> > java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
> > file or directory)
>
> Somehow you're running with a dspace.cfg that hasn't been through the
> ant filtering phase. In this phase, references are replaced with
> actual values, so ${dspace.dir} would be replaced with e.g. "/dspace"
> or "/opt/dspace" or whatever you defined it to be in build.properties.
>
> To fix this, make sure you have the correct values in
> build.properties, run "mvn package" and "ant update" again. Do any
> additional edits to dspace.cfg either in [dspace-source] before
> running mvn package (this is the officially recommended way, yet
> somewhat unpractical), or in [dspace] after ant update.
>
> Alternatively, you can just search for all occurences of ${whatever}
> variables in your [dspace]/config/* and replace them manually with
> actual values.
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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] Help with Tomcat errors resulting from attempted upgrade from 1.8.1 to 3.0

2013-08-05 Thread Clive Gould
Hi everyone

I'm still having trouble with the upgrade from DSpace from 1.8.1 to 3.0 and
am starting to feel out of my depth.

There appears to be an issue picked up in the Tomcat log appended

Can anyone tell me what I've done wrong, or shall I just give up moving to
3.0 and stick with 1.8.1?

Thanks very much

Clive


INFO: SolrServlet.init() done
Aug 5, 2013 9:56:59 AM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: Using JNDI solr.home: /home/dspace/solr
Aug 5, 2013 9:56:59 AM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
FATAL: Can't load configuration: file:/${dspace.dir}/config/dspace.cfg
java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1009)
at
org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:656)
at
org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:127)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Aug 5, 2013 9:56:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 5, 2013 9:56:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sword] startup failed due to previous errors
log4j:WARN No appenders could be found for logger
(org.dspace.servicemanager.DSpaceKernelInit).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
FATAL: Can't load configuration: file:/${dspace.dir}/config/dspace.cfg
java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1009)
at
org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:656)
at
org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:127)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apac

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi

It looks as if there is something seriously wrong with Tomcat talking to
DSpace

[root@standbyvle ~]# tail -40
/home/dspace/apache-tomcat-6.0.18/logs/catalina.out
Aug 2, 2013 2:46:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sword] startup failed due to previous errors
log4j:WARN No appenders could be found for logger
(org.dspace.servicemanager.DSpaceKernelInit).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
FATAL: Can't load configuration: file:/${dspace.dir}/config/dspace.cfg
java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
file or directory)

I guess I've messed up somewhere?

But why does DSpace seem to run fine despite the above messages? The test
server is online at http://standbyvle.bromley.ac.uk/dspace (please ignore
the handle references here as it points to the production server)




On Fri, Aug 2, 2013 at 12:46 PM, helix84  wrote:

> On Fri, Aug 2, 2013 at 1:35 PM, Clive Gould  wrote:
> > These are the changes I have made to the log4j file
>
> Those should be correct.
>
> > Unfortunately the dspace.log file hasn't changed since DSpace reloaded
> at 4 am today
>
> Yes, that's weird. Also check tomcat's log (catalina) to see if there
> are any error messages (about logging being set up wrongly).
>
> Does dspace start logging into dspace.log again if you change the two
> settings back to info?
>
>
> If you get fed up with debuging logging (☺), just change those
> log.debug() lines in LDAPAuthentication.java to log.info(), as a
> workaround
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
I've edited the /home/dspace/config/log4j.properties file, restarted
Tomcat, logged into DSpace. Unfortunately the dspace.log file hasn't
changed since DSpace reloaded at 4 am today

These are the changes I have made to the log4j file

###
# A1 is the name of the appender for most DSpace activity.
###
# The root category is the default setting for all non-DSpace code.
# Change this from INFO to DEBUG to see extra logging created by non-DSpace
# code.
log4j.rootCategory=DEBUG, A1
# This line sets the logging level for DSpace code. Set this to DEBUG to see
# extra detailed logging for DSpace code.
log4j.logger.org.dspace=DEBUG, A1
# Do not change this line

And here is the end of dspace.log

2013-08-02 04:00:02,221 INFO  org.dspace.servicemanager.DSpaceKernelInit @
Created new kernel:
DSpaceKernel:org.dspace:name=83267f65-678a-4f45-b833-4fb8bdab110f,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
2013-08-02 04:00:02,227 INFO  org.dspace.core.ConfigurationManager @
Loading from classloader: file:/home/dspace/config/dspace.cfg
2013-08-02 04:00:02,256 INFO  org.dspace.core.ConfigurationManager @ Using
dspace provided log configuration (log.init.config)
2013-08-02 04:00:02,257 INFO  org.dspace.core.ConfigurationManager @
Loading: /home/dspace/config/log4j.properties
[root@standbyvle ~]#

I'm sure I'm doing something silly, but what?


On Fri, Aug 2, 2013 at 10:41 AM, helix84  wrote:

> You're right, you do need to raise the log level to get those messages
> I listed, sorry I didn't notice it.
>
> On Fri, Aug 2, 2013 at 11:30 AM, Clive Gould  wrote:
> > I've edited
> /home/dspace/dspace-3.0-src-release/dspace/config/log4j.properties
> >
> > Can anyone advise me what directory to run ant init_configs from with
> DSpace 3.0 ?
>
> Simply edit [dspace]/config/log4j.properties (not the one in
> [dspace-source]) and restart DSpace, you don't need to go through the
> whole ant round - you don't even want to keep log4j.properties with
> log level debug in [dspace-source].
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi

I need to increase the dspace.log level to debug

The wiki says

You can control the verbosity of this by editing the *
[dspace-source]/config/templates/log4j.properties* file and then running "*ant
init_configs*".


I've edited
/home/dspace/dspace-3.0-src-release/dspace/config/log4j.properties

Can anyone advise me what directory to run ant init_configs from with
DSpace 3.0 ?

Thanks

Clive


On Fri, Aug 2, 2013 at 9:43 AM, Clive Gould  wrote:

> Hi Helix
>
> I've made the change you recommended to
> /home/dspace/dspace-3.0-src-release/dspace/config/modules/authentication-ldap.cfg
>
> Restarted Tomcat and also Apache but it still doesn't work
>
> Is there any logging within DSpace that I can enable to see what's
> happening with LDAP auth?
>
> Thanks
>
> Clive
>
>
> On Fri, Aug 2, 2013 at 9:24 AM, helix84  wrote:
>
>> The only thing that comes to mind right away is case sensitivity. It
>> shouldn't matter, but let's check. Try
>>
>> login.groupmap.1 = OU=StaffUsers:all-staff
>> login.groupmap.2 = OU=StudentUsers:all-students
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi Helix

I've made the change you recommended to
/home/dspace/dspace-3.0-src-release/dspace/config/modules/authentication-ldap.cfg

Restarted Tomcat and also Apache but it still doesn't work

Is there any logging within DSpace that I can enable to see what's
happening with LDAP auth?

Thanks

Clive


On Fri, Aug 2, 2013 at 9:24 AM, helix84  wrote:

> The only thing that comes to mind right away is case sensitivity. It
> shouldn't matter, but let's check. Try
>
> login.groupmap.1 = OU=StaffUsers:all-staff
> login.groupmap.2 = OU=StudentUsers:all-students
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi Helix

The following excerpt is taken from the authentication-ldap.cfg file

# LDAP users group #

# If required, a group name can be given here, and all users who log in
# to LDAP will automatically become members of this group. This is useful
# if you want a group made up of all internal authenticated users.
login.specialgroup = all-authenticated

# Added By Clive Gould on 31/07/13 to allow for special groups

login.groupmap.1 = ou=StaffUsers:all-staff
login.groupmap.2 = ou=StudentUsers:all-students

The all-staff and all-students groups are the original group names I
already use successfully on our production server with DSpace 1.8.1 custom
authentication.

If as an example I run ldapsearch on AD with a colleagues cn I get the
following response:

[root@standbyvle openldap]# ldapsearch -x -v -D "bromldap@bromley.local" -W
-L "cn=Philip Mann" | less
version: 1

#
# LDAPv3
# base <> with scope subtree
# filter: cn=Philip Mann
# requesting: ALL
#

# Philip Mann, School of ICT, Curriculum&Partnerships, RookeryLane,
StaffUser
 s, staff.bromley.local
dn: CN=Philip Mann,OU=School of
ICT,OU=Curriculum&Partnerships,OU=RookeryLane,
 OU=StaffUsers,DC=staff,DC=bromley,DC=local

But if Philip logs into DSpace and I view his ePerson group membership he
has not been allocated to either the all-staff or the all-authenticated
group

Any ideas at all where I might be going wrong?

Thanks very much

Clive







On Wed, Jul 31, 2013 at 2:36 PM, helix84  wrote:

> On Wed, Jul 31, 2013 at 2:48 PM, Clive Gould  wrote:
> > We used to use custom code to differentiate between staff and student
> login
> > and assign them to appropriate dynamic special groups
>
> Hi Clive,
>
> where does your custom code take the group information from? Full DN
> or attributes?
>
> > I have tried using the new DSpace 3.0 login.groupmap directive within
> > authentication-ldap.cfg
>
> The source of information for this mapping is the LDAP DN.
>
> > Users are successfully authenticated against AD but apparently not being
> > assigned to the special groups
>
> Send an example of your login.groupmap.*.
>
> In my opinion, the most likely problem might be misunderstanding the
> left-hand side of the mapping, e.g.:
> login.groupmap.1 = ou=Students:ALL_STUDENTS
>
> Notice "ou=Students". So if I log in as
> "cn=helix84,ou=Students,dc=example,dc=com", this will put me to the
> DSpace ALL_STUDENTS group.
>
> If your LDAP contains group information not in the DN, but in
> attributes, DSpace 3 doesn't currently support that. But we're
> currently discussing that functionality here:
>
> http://dspace.2283337.n4.nabble.com/DSpace-LDAP-authentication-problem-td4665853.html
>
> Second likely problem is that you haven't created the ALL_STUDENTS
> group in DSpace. This is not created automatically, only the user is
> assigned to that group dynamically upon login!
>
> > Is there a table in the database that allows the membership of the
> > dynamically allocated special groups to be viewed?
> >
> > Once I find out the solution I'll log the entire upgrade process on my
> blog
> > at http://dspacebromley.blogspot.co.uk/
>
> There is no such table. Your page already contains the explanation:
>
> "This means that users are not added to it as such, but are transient
> members of it during the period that they are logged in. Therefore you
> will not see anyone listed in that group, however such users should
> inherit the permissions of belonging to that group." Stuart Lewis
>
> The only easy way to check is to log in as the user and check
> currently active groups on user's profile page.
>
> Please check those two problems and report back. Let us know if
> something is still unclear. Hope this helps.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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] LDAP and Special Groups Code

2013-07-31 Thread Clive Gould
Hi

I'm just upgrading from DSpace 1.8.1 to DSpace 3.0 on our test server

We used to use custom code to differentiate between staff and student login
and assign them to appropriate dynamic special groups

I have tried using the new DSpace 3.0 login.groupmap directive within
authentication-ldap.cfg

Users are successfully authenticated against AD but apparently not being
assigned to the special groups

Is there a table in the database that allows the membership of the
dynamically allocated special groups to be viewed?

Once I find out the solution I'll log the entire upgrade process on my blog
at http://dspacebromley.blogspot.co.uk/

Thanks very much

Clive
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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

Re: [Dspace-tech] DSpace-tech Installing DSpace in centOS

2012-02-24 Thread Clive Gould
Hi Rahul

Thought you might find this helpful too:

http://dspacebromley.blogspot.com/

Good luck

Clive

--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace Upgrade to 1.8.1

2012-01-18 Thread Clive Gould
Hi everyone

I have now successfully upgraded our repository to DSpace 1.8.1 on Centos 5.x

As usual I have blogged the upgrade procedure that I followed at:

http://dspacebromley.blogspot.com/

Hope someone finds it useful...

Clive

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help: Corrupted Filenames

2012-01-17 Thread Clive Gould
Hi

I have found a solution, which involves downloading the files,
reuploading them to the original item as a new bitstream and then
deleting the original bitsteam including the old thumbnails

After running cleanup, index-init and filter-media all seems to be well

Thanks

Clive



On Tue, Jan 17, 2012 at 6:49 AM, Clive Gould  wrote:
> Hi
>
> I've noticed that filenames in some collections in our repository have
> become corrupted at some stage or other
>
> Here you can see a page that is OK:
>
> http://vle.bromley.ac.uk/dspace/handle/2045/24
>
> And here you can see a page that has been corrupted:
>
> http://vle.bromley.ac.uk/dspace/handle/2045/26
>
> I'm currently using JSPUI but am considering moving to XMLUI
>
> Any ideas what has happened to cause this corruption and how I can fix it?
>
> Thanks very much
>
> Clive

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: Corrupted Filenames

2012-01-16 Thread Clive Gould
Hi

I've noticed that filenames in some collections in our repository have
become corrupted at some stage or other

Here you can see a page that is OK:

http://vle.bromley.ac.uk/dspace/handle/2045/24

And here you can see a page that has been corrupted:

http://vle.bromley.ac.uk/dspace/handle/2045/26

I'm currently using JSPUI but am considering moving to XMLUI

Any ideas what has happened to cause this corruption and how I can fix it?

Thanks very much

Clive

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Statistics error with DSpace 1.8.1

2012-01-13 Thread Clive Gould
Hi Tim

Thanks for this, but what is worrying me is that the
solr-statistics.cfg file already contains the required changes :(

I've run mvn and ant update

Could this be a bug???

See below

Clive


/home/dspace/dspace-1.8.1-src-release/dspace/config/modules
[dspace@standbyvle modules]$ cat solr-statistics.cfg
#---#
#--SOLR STATISTICS CONFIGURATIONS---#
#---#
# These configs are only used by the SOLR interface/webapp to   #
# track usage statistics.   #
#---#

# Usage Logging #
# set this to be the port you run the dspace "solr" webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080
server = http://127.0.0.1/solr/statistics

 etc.

and

[dspace@standbyvle modules]$ cat discovery.cfg
#---#
#-DISCOVERY CONFIGURATIONS--#
#---#
# Configuration properties used solely by the Discovery #
# faceted-search system.#
#---#
# Search Indexing #
search.server = http://127.0.0.1/solr/search

etc

On Fri, Jan 13, 2012 at 3:02 PM, Tim Donohue  wrote:
> Clive,
>
> You can change the URL/port where DSpace looks for the Solr Statistics
> server in the following config file:
>
> [dspace]/modules/solr-statistics.cfg
>
> Look for this entry:
>
> server = http://localhost:8080/solr/statistics
>
> It looks like you need it to instead be set to:
>
> server = http://127.0.0.1/solr/statistics
>
> More info can be found in the Solr Statistics Documentation at:
> https://wiki.duraspace.org/display/DSDOC18/DSpace+Statistics#DSpaceStatistics-ConfigurationsettingsforStatistics
>
> (Side Note: if you plan to use Discovery (Solr-based faceted search/browse),
> you likely will also need to similarly edit the Solr 'search.server' setting
> in the [dspace]/modules/discover.cfg config file.)
>
> - Tim
>
>
> On 1/13/2012 7:03 AM, Clive Gould wrote:
>>
>> Hi
>>
>> I am having problem with the dspace stats script following an upgrade
>> from 1.7.1 to 1.8.1
>>
>> The solr server is running and lynx
>> http://127.0.0.1/solr/statistics/select?q=*:* works fine and returns
>> the statistics file
>>
>> However when I try to run the dspace stats script I get the following
>> error
>>
>> [dspace@standbyvle bin]$ dspace stats-util -b -r
>> Exception: Error executing query
>> org.apache.solr.client.solrj.SolrServerException: Error executing query
>>        at
>> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
>>        at
>> org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
>>        at
>> org.dspace.statistics.SolrLogger.reindexBitstreamHits(SolrLogger.java:1009)
>>        at
>> org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:96)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
>> Caused by: org.apache.solr.common.SolrException: /solr/statistics/select
>>
>> /solr/statistics/select
>>
>> request:
>> http://localhost:8080/solr/statistics/select?q=*:*&fq=type:0&fq=-bundleName:[*
>> TO *]&rows=0&wt=javabin&version=2
>>        at
>> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
>>        at
>> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
>>        at
>> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
>>        ... 8 more
>>
>> It looks as if it is looking for solr at localhost:8080. Any idea how
>> I can change the URL/port number its looking for here please?
>>
>> I have already set the entries in the appropriate config/modules files
>> to point to the correct URL for solr.
>>
>> Thanks very much
>>
>> Clive
>>
>>
>> ---

[Dspace-tech] Statistics error with DSpace 1.8.1

2012-01-13 Thread Clive Gould
Hi

I am having problem with the dspace stats script following an upgrade
from 1.7.1 to 1.8.1

The solr server is running and lynx
http://127.0.0.1/solr/statistics/select?q=*:* works fine and returns
the statistics file

However when I try to run the dspace stats script I get the following error

[dspace@standbyvle bin]$ dspace stats-util -b -r
Exception: Error executing query
org.apache.solr.client.solrj.SolrServerException: Error executing query
       at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
       at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
       at 
org.dspace.statistics.SolrLogger.reindexBitstreamHits(SolrLogger.java:1009)
       at 
org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:96)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.common.SolrException: /solr/statistics/select

/solr/statistics/select

request: 
http://localhost:8080/solr/statistics/select?q=*:*&fq=type:0&fq=-bundleName:[*
TO *]&rows=0&wt=javabin&version=2
       at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
       at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
       at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
       ... 8 more

It looks as if it is looking for solr at localhost:8080. Any idea how
I can change the URL/port number its looking for here please?

I have already set the entries in the appropriate config/modules files
to point to the correct URL for solr.

Thanks very much

Clive

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Failed upgrade from DSpace 1.7.1 to 1.8.1

2012-01-12 Thread Clive Gould
Hi everyone

I have just upgraded from DSpace 1.7.1 to 1.8.1 on our test server

I can access the DSpace homepage and successfully login using LDAP
authentication

I can browse collections quite happily but when I try to view a
submission there are two possible outcomes

1) If I am logged in as an authenticated user I just get a blank page
2) If I am an anonymous user I get the item metadata page but with no
files associated with the item

e.g. http://standbyvle.bromley.ac.uk/dspace/handle/2045/22

(Please ignore the hdl.net reference as that points to our production server)

There appear to be two or more issues here

1) A problem with solr trying to listen on port 8080 rather than 8081
where Tomcat is running. I have edited disovery.cfg and
solr-statistics.cfg to change the solr port to 8081 before using mvn,
but ./dspace stats-util -b -r still seems to be looking for
localhost:8080

2) A problem with the LDAP Special Groups code, which I successfully
customised with Stuart Lewis's help quite a few versions ago and has
been running fine up to now.

Any ideas/suggestions most welcome

In the meantime I am leaving the production server at 1.7.1 ;)

Thanks

Clive


The errors are shown below

a) When trying to update the solr statistics

[dspace@standbyvle bin]$ !1194
./dspace stats-util -b -r
Exception: Error executing query
org.apache.solr.client.solrj.SolrServerException: Error executing query
at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at 
org.dspace.statistics.SolrLogger.reindexBitstreamHits(SolrLogger.java:1009)
at 
org.dspace.statistics.util.StatisticsClient.main(StatisticsClient.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.common.SolrException: /solr/statistics/select

/solr/statistics/select

request: 
http://localhost:8080/solr/statistics/select?q=*:*&fq=type:0&fq=-bundleName:[*
TO *]&rows=0&wt=javabin&version=2
at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
... 8 more

2012-01-12 14:35:29,331 INFO
org.dspace.usage.LoggerUsageEventListener @
cli...@bromley.ac.uk:session_id=573B356D532DC222DBA653F1ACCD13E2:ip_addr=10.100.0.1:view_collection:collection_id=2
2012-01-12 14:35:29,372 ERROR
org.dspace.statistics.SolrLoggerUsageEventListener @
/solr/statistics/update

/solr/statistics/update


b) When trying to access an item in a collection as an authenticated user:

request: http://localhost:8080/solr/statistics/update?wt=javabin&version=2
2012-01-12 14:35:31,295 WARN
org.dspace.authenticate.LDAPHierarchicalAuthentication @
cli...@bromley.ac.uk::ldap_specialgroup:Group defined in
login.specialgroup does not exist
2012-01-12 14:35:31,306 INFO
org.dspace.app.webui.servlet.HandleServlet @
cli...@bromley.ac.uk:session_id=573B356D532DC222DBA653F1ACCD13E2:ip_addr=10.100.0.1:view_item:handle=2045/26
2012-01-12 14:35:31,321 INFO
org.dspace.usage.LoggerUsageEventListener @
cli...@bromley.ac.uk:session_id=573B356D532DC222DBA653F1ACCD13E2:ip_addr=10.100.0.1:view_item:handle=2045/26
2012-01-12 14:35:31,324 ERROR org.dspace.statistics.SolrLogger @
ERROR: current transaction is aborted, commands ignored until end of
transaction block
org.postgresql.util.PSQLException: ERROR: current transaction is
aborted, commands ignored until end of transaction block
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.dspace.storage.rdbms.DatabaseManager.queryTa

Re: [Dspace-tech] HELP: CVE_2012_0013

2012-01-12 Thread Clive Gould
Hi Tim

It looks like it was a false positive with ClamAV. I have restored the
affected file at the appropriate point in the filesystem.

I've just followed your suggestion regarding obtaining the item_id

Using phpPgAdmin I've looked up the bitstream_id (33) from the
bitstream table but there is no corresponding entry in the
bundle2bitstream table :(

Also your SQL query returns an empty results set :((

Could this be because the item has been marked as deleted or is the
database corrupt?

Thanks very much

Clive


On Wed, Jan 11, 2012 at 4:32 PM, Tim Donohue  wrote:
> Hi Clive,
>
> A quick tip, you should be able to use the DSpace database's 'bitstream'
> table (and associated tables) to tell which image/item this file relates to.
>
> The full name of the file in the assetstore folder maps to the 'internal_id'
> column in your 'bitstream' table. In your case the file is named
> "144275680037163242065376693797581511322".  So, you should have an entry in
> your 'bitstream' table with that 'internal_id'.
>
> Once you know the bitstream, you can then use the 'bundle2bitstream' table
> to determine which 'bundle_id' that 'bitstream_id' exists in. From there,
> you can then use the 'item2bundle' table to determine which 'item_id' that
> 'bundle_id' exists in.
>
> Putting all that logic together, this SQL query should give you the Item ID
> that file exists in:
>
> SELECT item_id FROM item2bundle ib, bundle2bitstream bb, bitstream b WHERE
> ib.bundle_id=bb.bundle_id AND bb.bitstream_id=b.bitstream_id AND
> b.internal_id='144275680037163242065376693797581511322';
>
> Once you have the Item ID, you can visit your DSpace Admin UI and lookup the
> Item via its Item ID (under XMLUI, you'd use the "Administrative -> Items"
> page).
>
> - Tim
>
>
> On 1/11/2012 1:05 AM, Clive Gould wrote:
>>
>> Hi
>>
>> I have just checked the server logs this morning. I use ClamAV to
>> check the assetstore as part of a nightly cron task. The following
>> message appeared this morning:
>>
>> Dspace anti-virus scan
>> /home/dspace/assetstore/14/42/75/144275680037163242065376693797581511322:
>> CVE_2012_0013 FOUND
>>
>> Looking at the filesystem:
>>
>> [root@vle 75]# ls -la 144275680037163242065376693797581511322
>> -rw-r--r-- 1 dspace dspace 1665024 May  7  2009
>> 144275680037163242065376693797581511322
>>
>> Looking inside the relevant file using less suggests it may be an
>> image file but when I try to view it using an image editor I get an
>> error message.
>>
>> 1) Can anyone tell me how I can find out which item in the repository
>> this file actually relates to?
>> 2) Could this be a false positive?
>>
>> Thanks very much
>>
>> Clive
>>
>>
>> --
>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>> infrastructure or vast IT resources to deliver seamless, secure access to
>> virtual desktops. With this all-in-one solution, easily deploy virtual
>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] HELP: CVE_2012_0013

2012-01-11 Thread Clive Gould
Hi Andrea

It turned out to be an employment laws quiz in PowerPoint format that
ClamAV was objecting to

As the file was no longer required I deleted it within DSpace and also
at filesystem level

Thanks very much for the advice

Clive


On Wed, Jan 11, 2012 at 7:43 AM, bollini  wrote:
>
> Query the bitstream table using the file name as internal_id.
> Look at the tables bundle2bitstream and item2bundl to find the item_id where
> the bitstream belong
> Hope this help,
> Andrea
>
>
>
> Inviato da Tablet Samsung
>
> Clive Gould  ha scritto:

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] HELP: CVE_2012_0013

2012-01-10 Thread Clive Gould
Hi

I have just checked the server logs this morning. I use ClamAV to
check the assetstore as part of a nightly cron task. The following
message appeared this morning:

Dspace anti-virus scan
/home/dspace/assetstore/14/42/75/144275680037163242065376693797581511322:
CVE_2012_0013 FOUND

Looking at the filesystem:

[root@vle 75]# ls -la 144275680037163242065376693797581511322
-rw-r--r-- 1 dspace dspace 1665024 May  7  2009
144275680037163242065376693797581511322

Looking inside the relevant file using less suggests it may be an
image file but when I try to view it using an image editor I get an
error message.

1) Can anyone tell me how I can find out which item in the repository
this file actually relates to?
2) Could this be a false positive?

Thanks very much

Clive

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Space 1.7.0 and special groups

2011-12-14 Thread Clive Gould
Hi Stuart

You kindly helped me customise the special groups code in
/home/dspace/dspace-1.7.0-src-release/dspace-pi/src/main/java/org/dspace/authenticate/LDAPHierarchicalAuthentication.java
to differentiate between staff and student login.

Before I build DSpace 1.7.1 from source can you please confirm that
the patch below should work properly with 1.7.1

Thanks very much

 Clive


   /*
 * New code written by Stuart Lewis and added by Clive Gould on
7th April 2011 (modified 20/10/11)
 */

public int[] getSpecialGroups(Context context, HttpServletRequest request)
{
   try
   {
   if (!context.getCurrentUser().getNetid().equals(""))
   {
   Group staffGroup = Group.findByName(context, "all-staff");
   Group studentsGroup = Group.findByName(context, "all-students");

   // Does the username start with a '1', '4', or '7'?
   if ((studentsGroup != null) &&
(context.getCurrentUser().getNetid().startsWith("1") ||
context.getCurrentUser().getNetid().startsWith("4") ||
context.getCurrentUser().getNetid().startsWith("7")))
   {
   // Add them to the students group
   return new int[] { studentsGroup.getID() };
   }
   else if (staffGroup != null)
   {
   // Add them to the staff group
   return new int[] { staffGroup.getID() };
   }
   }
   }
   catch (Exception npe) {
   // The user is not an LDAP user, so we don't need to worry about them
   }
   return new int[0];
}

--
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits? 
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] LDAP on dspace 1.7.1

2011-06-11 Thread Clive Gould
Hi Sisay

I'm not an expert on DSpace or LDAP, but I have had DSpace/LDAP
authentication successfully working on our production server for several
years.

We are using CentOS 5 Linux and Windows LDAP. If you would like to see the
process I went through and the configuration settings I used please have a
look at the following blog:

http://dspacebromley.blogspot.com/

The entry you want is about 1/4 the way through the blog.

It applies to an earlier version of DSpace, but same configuration settings
work fine with DSpace 1.7.1

Incidentally for legacy reasons I'm using jspui too

Good luck ;)

Clive
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Upgrading from DSpace 1.5.1 to 1.7.1 - best way?

2011-04-08 Thread Clive Gould
Hi Sue

I've blogged all the upgrade stages we at Bromley went through from v1.5.2
to v1.7.1 at

http://dspacebromley.blogspot.com/

Good luck

Clive

-
Hi,
 I am getting ready to start upgrading our Test DSpace instance from
version 1.5.1 to 1.7.1 and I’m wondering what’s the best way to approach
this?  Any suggestions would be appreciated.  Thanks.
Best regards,
Sue



Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
SGT, Inc.|130 Research Drive
Hampton, Va.  23666
Office: (757) 224-4074
Mobile: (757) 506-9903
Fax: (757) 224-4001
susan.m.thornton@...
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Version Number

2011-04-07 Thread Clive Gould
Hi

Is there any easy way to find out the version of DSpace installed from the
Web Interface without resorting to the command line?

(t may be that I've accidentally disabled this feature when applying custom
JSPUI header/footers)

Thanks very much

Clive
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Enabling/Disabling OAI access to particular communities/collections

2011-04-06 Thread Clive Gould
Hi

Does anyone know if it is possible to selectively enable/disable OAI
harvest access at a community/collection level in DSpace 1.7?

I'm having trouble with WorldCat OCLC harvesting using their new Web
interface and it would help if this was possible.

Thanks very much

Clive
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.7 and cron tasks

2011-03-19 Thread Clive Gould
Hi

I've been using DSpace for many years and just wanted to check that after
many upgrades from earlier versions the crontab as used with DSpace 1.7 was
still appropraite

Can anyone tell me if the appended crontab is OK with DSpace 1.7?

Thanks very much

Clive


[dspace@vle bin]$ crontab -l
# Send out subscription e-mails at 01:00 every day
0 1 * * * /home/dspace/bin/dspace sub-daily
# Run the media filter at 02:00 every day
0 2 * * * /home/dspace/bin/dspace filter-media
# Run the checksum checker at 03:00
0 3 * * * /home/dspace/bin/dspace checker -lp
# Mail the results to the sysadmin at 04:00
0 4 * * * /home/dspace/bin/dspace dsrun
org.dspace.checker.DailyReportEmailer -c
# Run stat analyses
0 1 * * * /home/dspace/bin/dspace stat-general
0 1 * * * /home/dspace/bin/dspace stat-monthly
0 2 * * * /home/dspace/bin/dspace stat-report-general
0 2 * * * /home/dspace/bin/dspace stat-report-monthly
20 4 * * * cd /home/dspace/vacuumdb && ( PGPASSWORD=`cat .pgpass`
/usr/bin/vacuumdb --analyze -v -h 127.0.0.1 -U dspace dspace )
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Space 1.7.0 and special groups

2011-01-02 Thread Clive Gould
Hi

After a restore from backup and repeating the upgrade process from the
beginning DSpace 1.7.0 now works with LDAP authentication :)

I have blogged the entire process in case it helps anyone else upgrade
at http://dspacebromley.blogspot.com/

Best wishes

Clive

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem with upgrade from 1.6.2 to 1.7.0

2011-01-01 Thread Clive Gould
Hi everyone

A word of warning from a relative novice ;)

I managed to upgrade PostgreSQL to 8.2.4 on CentOS 5.5 and the DSpace
1.7.0 index-init script ran fine :)

Unfortunately the PostgreSQL upgrade broke a lot of essential system
services, so I had to restore the entire build on the test server from
a backup made before the upgrade :((

I'll try again when I can find some more time...

Best wishes

Clive


On Fri, Dec 31, 2010 at 6:50 PM, Clive Gould  wrote:
> Hi Keith
>
> I've just checked and CentOS 5 uses postgresql 8.1.2
>
> This means I need to upgrade PostgreSQL before going any further.
>
> Thanks very much
>
> Clive
>
>
> On Fri, Dec 31, 2010 at 5:48 PM, Keith Gilbertson
>  wrote:
>>
>> On Dec 31, 2010, at 7:34 AM, Clive Gould wrote:
>>
>>> Hi everyone
>>>
>>> I've just tried to upgrade DSpace on our test server (CentOS Linux)
>>> from version 1.6.2 to 1.7.0
>>>
>>> I have got to the very end of the upgrade procedure only to be faced
>>> by the following error message when I try to run the index script:
>>>
>>> [dsp...@standbyvle dspace-1.7.0-build.dir]$ psql -U dspace -f
>>> /home/dspace/dspace-1.7.0-src-release/dspace/etc/postgres/database_schema_16-17.sql
>>> dspace
>>> DROP SEQUENCE
>>> [dsp...@standbyvle dspace-1.7.0-build.dir]$ /home/dspace/bin/dspace 
>>> index-init
>>> Started: 1293794521880
>>> Ended: 1293794523440
>>> Elapsed time: 1 secs (1560 msecs)
>>> Exception: org.postgresql.util.PSQLException: ERROR: syntax error at
>>> or near "RETURNING"
>>
>>
>> Clive,
>>
>> DSpace 1.7 requires a PostgreSQL version of 8.2 or higher.  This looks like 
>> a message that you might receive when you use an older version.
>>
>> --keith
>>
>>
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.7.0 and LDAP authentication

2011-01-01 Thread Clive Gould
Has anyone got hierarchical LDAP authentication working with DSpace 1.7.0?

It works fine for us with 1.6.2 but not with 1.7.0

This is somewhat hypothetical at present as problems with the
PostgreSQL upgrade on CentOS 5.5 from 8.1.22 to 8.2.4 broke other
server services and I had to restore from a backup made before the
upgrade :(

When I get time I will try again...

Thanks

Clive

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem with upgrade from 1.6.2 to 1.7.0

2010-12-31 Thread Clive Gould
Hi Keith

I've just checked and CentOS 5 uses postgresql 8.1.2

This means I need to upgrade PostgreSQL before going any further.

Thanks very much

Clive


On Fri, Dec 31, 2010 at 5:48 PM, Keith Gilbertson
 wrote:
>
> On Dec 31, 2010, at 7:34 AM, Clive Gould wrote:
>
>> Hi everyone
>>
>> I've just tried to upgrade DSpace on our test server (CentOS Linux)
>> from version 1.6.2 to 1.7.0
>>
>> I have got to the very end of the upgrade procedure only to be faced
>> by the following error message when I try to run the index script:
>>
>> [dsp...@standbyvle dspace-1.7.0-build.dir]$ psql -U dspace -f
>> /home/dspace/dspace-1.7.0-src-release/dspace/etc/postgres/database_schema_16-17.sql
>> dspace
>> DROP SEQUENCE
>> [dsp...@standbyvle dspace-1.7.0-build.dir]$ /home/dspace/bin/dspace 
>> index-init
>> Started: 1293794521880
>> Ended: 1293794523440
>> Elapsed time: 1 secs (1560 msecs)
>> Exception: org.postgresql.util.PSQLException: ERROR: syntax error at
>> or near "RETURNING"
>
>
> Clive,
>
> DSpace 1.7 requires a PostgreSQL version of 8.2 or higher.  This looks like a 
> message that you might receive when you use an older version.
>
> --keith
>
>

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problem with upgrade from 1.6.2 to 1.7.0

2010-12-31 Thread Clive Gould
Hi everyone

I've just tried to upgrade DSpace on our test server (CentOS Linux)
from version 1.6.2 to 1.7.0

I have got to the very end of the upgrade procedure only to be faced
by the following error message when I try to run the index script:

[dsp...@standbyvle dspace-1.7.0-build.dir]$ psql -U dspace -f
/home/dspace/dspace-1.7.0-src-release/dspace/etc/postgres/database_schema_16-17.sql
dspace
DROP SEQUENCE
[dsp...@standbyvle dspace-1.7.0-build.dir]$ /home/dspace/bin/dspace index-init
Started: 1293794521880
Ended: 1293794523440
Elapsed time: 1 secs (1560 msecs)
Exception: org.postgresql.util.PSQLException: ERROR: syntax error at
or near "RETURNING"
org.dspace.browse.BrowseException: org.postgresql.util.PSQLException:
ERROR: syntax error at or near "RETURNING"
at 
org.dspace.browse.BrowseCreateDAOPostgres.insertIndex(BrowseCreateDAOPostgres.java:700)
at org.dspace.browse.IndexBrowse.indexItem(IndexBrowse.java:354)
at org.dspace.browse.IndexBrowse.createIndex(IndexBrowse.java:1124)
at org.dspace.browse.IndexBrowse.initBrowse(IndexBrowse.java:1073)
at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:715)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at
or near "RETURNING"
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1755)
at 
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675)
at 
org.dspace.browse.BrowseCreateDAOPostgres.insertIndex(BrowseCreateDAOPostgres.java:695)
... 9 more

Any idea what I have done wrong?

Incidentally the name of the database upgrade script on the Wiki at
http://www.dspace.org/1_7_0Documentation/Upgrading%20a%20DSpace%20Installation.html#UpgradingaDSpaceInstallation-Upgradingfrom1.6.xto1.7
is wrong. It is listed as database_schema_16_17.sql instead of what it
should be which is database_schema_16-17.sql

I have blogged the entire failed upgrade procedure at
http://dspacebromley.blogspot.com/

Thanks very much and Happy New Year everyone

Clive

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Space 1.7.0 and special groups

2010-12-31 Thread Clive Gould
Hi Stuart

You kindly helped me customise the special groups code in
/home/dspace/dspace-1.6.2-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPHierarchicalAuthentication.java
to differentiate between staff and student login.

I have just downloaded and built dspace 1.7.0 from source and the LDAP
authentication won't now work on our test server.

Before I start looking for silly errors in dspace.cfg can you please
confirm that the patch below should work properly with 1.7.0

Thanks very much

Clive


/*
* New code written by Stuart Lewis and added by Clive Gould on 28th April 2009
*/

public int[] getSpecialGroups(Context context, HttpServletRequest request)
{
try
{
if (!context.getCurrentUser().getNetid().equals(""))
{
Group staffGroup = Group.findByName(context, "all-staff");
Group studentsGroup = Group.findByName(context, "all-students");

// Does the username start with a '1'?
if ((studentsGroup != null) &&
context.getCurrentUser().getNetid().startsWith("1")))
{
// Add them to the students group
return new int[] { studentsGroup.getID() };
}
else if (staffGroup != null)
{
// Add them to the staff group
return new int[] { staffGroup.getID() };
}
}
}
catch (Exception npe) {
// The user is not an LDAP user, so we don't need to worry about them
}
return new int[0];
}

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problem with upgrade from 1.6.2 to 1.7.0

2010-12-31 Thread Clive Gould
Hi everyone

I've just tried to upgrade DSpace on our test server (CentOS Linux)
from version 1.6.2 to 1.7.0

I have got to the very end of the upgrade procedure only to be faced
by the following error message when I try to run the index script:

[dsp...@standbyvle dspace-1.7.0-build.dir]$ psql -U dspace -f
/home/dspace/dspace-1.7.0-src-release/dspace/etc/postgres/database_schema_16-17.sql
dspace
DROP SEQUENCE
[dsp...@standbyvle dspace-1.7.0-build.dir]$ /home/dspace/bin/dspace index-init
Started: 1293794521880
Ended: 1293794523440
Elapsed time: 1 secs (1560 msecs)
Exception: org.postgresql.util.PSQLException: ERROR: syntax error at
or near "RETURNING"
org.dspace.browse.BrowseException: org.postgresql.util.PSQLException:
ERROR: syntax error at or near "RETURNING"
at 
org.dspace.browse.BrowseCreateDAOPostgres.insertIndex(BrowseCreateDAOPostgres.java:700)
at org.dspace.browse.IndexBrowse.indexItem(IndexBrowse.java:354)
at org.dspace.browse.IndexBrowse.createIndex(IndexBrowse.java:1124)
at org.dspace.browse.IndexBrowse.initBrowse(IndexBrowse.java:1073)
at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:715)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at
or near "RETURNING"
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1755)
at 
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:675)
at 
org.dspace.browse.BrowseCreateDAOPostgres.insertIndex(BrowseCreateDAOPostgres.java:695)
... 9 more

Any idea what I have done wrong?

Incidentally the name of the database upgrade script on the Wiki at
http://www.dspace.org/1_7_0Documentation/Upgrading%20a%20DSpace%20Installation.html#UpgradingaDSpaceInstallation-Upgradingfrom1.6.xto1.7
is wrong. It is listed as database_schema_16_17.sql instead of what it
should be which is database_schema_16-17.sql

I have blogged the entire failed upgrade procedure at
http://dspacebromley.blogspot.com/

Thanks very much and Happy New Year everyone

Clive

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Enabling/Disabling OAI access to particular communities/collections

2010-08-11 Thread Clive Gould
Hi

Does anyone know if it is possible to selectively enable/disable OAI
harvest access at a community/collection level in DSpace 1.6.2?

I'm having trouble with WorldCat OCLC harvesting using their new Web
interface and it would help if this was possible.

Thanks very much

Clive

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.6.2 and solr statistics

2010-08-08 Thread Clive Gould
Hi everyone

I've got solr statistics working succesfully on our DSpace 1.6.2 test server.

However I cannot work out:

1) How to convert and import the old log files into solr as I cannot
find the scripts stats-log-converter and stats-log-importer anywhere
(I installed DSpace 1.6.2 from source)

2) Additionally what do I do about the "old" cron tasks for statistics
processing? Do I still need the following entries in the DSpace
crontab:

# Run stat analyses
0 1 * * * /home/dspace/bin/stat-general
0 1 * * * /home/dspace/bin/stat-monthly
0 2 * * * /home/dspace/bin/stat-report-general
0 2 * * * /home/dspace/bin/stat-report-monthly

Thanks very much

I'll add this to my blog once it's working...

Clive

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-08 Thread Clive Gould
Hi Stuart

The problem with the issue date truncation on DSpace 1.6.2 has been solved :)

Thanks for all your invaluable assistance in locating the source of the problem.

It appears that the patch http://jira.dspace.org/jira/browse/DS-469
had not been applied to DCDate.java in the 1.6.2 source code.

I applied the patch and rebuilt and updated DSpace and the issue date
on the test server is now being displayed correctly :-

http://standbyvle.bromley.ac.uk/dspace/browse?type=dateissued

I have updated my blog to include the relevant patch instructions :-

http://dspacebromley.blogspot.com/2010/08/dspace-162-upgrade-procedure.html

Any chance someone could update the source file on sourceforge?

Thanks again

Clive

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-07 Thread Clive Gould
Hi

Sorry I provided a restricted access item URL on the 1.6.2 test server :(

If you now sort by issue date you still get the truncated date:-

http://standbyvle.bromley.ac.uk/dspace/browse?type=dateissued

But if you view a complete individual item record you now get the full
unformatted date:-

http://standbyvle.bromley.ac.uk/dspace/handle/2045/22

Thanks

Clive


On Sat, Aug 7, 2010 at 11:01 AM, Clive Gould  wrote:
> Hi Stuart
>
> The section you mentioned was commented out.
>
> 1) I stopped tomcat, removed the comments from the relevant sectio of
> dspace.cfg, updated dspace, rebuilt the indexes and restarted tomcat.
>
> Following these modifications on the test server 1.6.2 the dates are
> still shown correctly under Edit item, but as before truncated
> everywhere else under issue date.
>
> 2) I then stopped tomcat, and modified the line you mentioned in
> dspace.cfg as follows:
>
> webui.itemdisplay.default = dc.title, dc.title.alternative, dc.contributor.*, 
> \
>                            dc.subject, dc.date.issued, dc.publisher, \
>                            dc.identifier.citation, 
> dc.relation.ispartofseries, \
>                            dc.description.abstract, dc.description, \
>                            dc.identifier.govdoc, dc.identifier.uri(link), \
>                            dc.identifier.isbn, dc.identifier.issn, \
>                            dc.identifier.ismn, dc.identifier
>
> I then updated dspace, rebuilt the indexes and restarted tomcat.
>
> The full, unabridged issue date is now shown as you can see below:
>
> http://standbyvle.bromley.ac.uk/dspace/handle/2045/16
>
> So what is it about (date) ???
>
> Thanks ;)
>
> Clive
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-07 Thread Clive Gould
Hi Stuart

The section you mentioned was commented out.

1) I stopped tomcat, removed the comments from the relevant sectio of
dspace.cfg, updated dspace, rebuilt the indexes and restarted tomcat.

Following these modifications on the test server 1.6.2 the dates are
still shown correctly under Edit item, but as before truncated
everywhere else under issue date.

2) I then stopped tomcat, and modified the line you mentioned in
dspace.cfg as follows:

webui.itemdisplay.default = dc.title, dc.title.alternative, dc.contributor.*, \
dc.subject, dc.date.issued, dc.publisher, \
dc.identifier.citation,
dc.relation.ispartofseries, \
dc.description.abstract, dc.description, \
dc.identifier.govdoc, dc.identifier.uri(link), \
dc.identifier.isbn, dc.identifier.issn, \
dc.identifier.ismn, dc.identifier

I then updated dspace, rebuilt the indexes and restarted tomcat.

The full, unabridged issue date is now shown as you can see below:

http://standbyvle.bromley.ac.uk/dspace/handle/2045/16

So what is it about (date) ???

Thanks ;)

Clive


On Sat, Aug 7, 2010 at 10:11 AM, Stuart Lewis  wrote:
> Hi Clive,
>
>> Here is an item in our restored 1.5.2 production server:
>>
>> http://vle.bromley.ac.uk/dspace/handle/2045/22
>>
>> and here is the same item in our 1.6.2 test server:
>>
>> http://standbyvle.bromley.ac.uk/dspace/handle/2045/22
>
> OK - so looks like the data is definitely fine in the database because when 
> you compare the 'full item view' in both, the date stamps are the same. So 
> the DB seems fine.
>
> There were some large-ish changes made to a class called DCDate in the 1.5.2 
> -> 1.6 upgrade, and this may be causing the problem, however we've not had 
> this problem reported before (I think!) other than by yourself and Rajshekar.
>
> What do you have in dpsace.cfg for:
>
> webui.itemdisplay.default = dc.title, dc.title.alternative, dc.contributor.*, 
> \
>                            dc.subject, dc.date.issued(date), dc.publisher, \
>                            dc.identifier.citation, 
> dc.relation.ispartofseries, \
>                            dc.description.abstract, dc.description, \
>                            dc.identifier.govdoc, dc.identifier.uri(link), \
>                            dc.identifier.isbn, dc.identifier.issn, \
>                            dc.identifier.ismn, dc.identifier
>
> By default this section is commented out. I wonder what happens if you remove 
> the '(date)' from dc.date.issued, (and uncomment it if needed) and try 
> restarting tomcat. This may help us narrow down where the problem is, as it 
> will display the date as a raw string, rather than as a formatted date.
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: +64 (0)9 373 7599 x81928
>
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-07 Thread Clive Gould
Hi Stuart :)

I've already run the index-init script several times.

Here is an item in our restored 1.5.2 production server:

http://vle.bromley.ac.uk/dspace/handle/2045/22

and here is the same item in our 1.6.2 test server:

http://standbyvle.bromley.ac.uk/dspace/handle/2045/22

You can clearly see the difference in the issue date display format.

Do you know "off hand" the postgres commands l need to use to view the
tables or is it better I reinstall phpPgAdmin?

Thanks very much

Clive





On Sat, Aug 7, 2010 at 9:32 AM, Stuart Lewis  wrote:
> Hi Clive / Rajshekhar,
>
>> I notice that with DSpace 1.5.2 on our server the strange codes were
>> already there before the database upgrade:
>>
>> dc date   accessioned 2009-04-29T05:57:26Z
>> dc date   available 2009-04-29T05:57:26Z
>> dc date   issued 2009-04-29T05:57:26Z
>
> These dates are completely normal. See: 
> http://en.wikipedia.org/wiki/ISO_8601#UTC
>
> Basically it is a way of describing date / time fields in a timezone neutral 
> way.
>
> year-month-day T (to denote the start of the Time part) hour:minute:second Z 
> (zulu time)
>
> Therefore the contents of your database appear to be fine. When you view an 
> item, are the dates correct in there - is it just the browse screens that 
> appear wrong?
>
> Since upgrading, have you re-indexed your browse tables? Step 10 of the 
> upgrade instructions 
> (http://www.dspace.org/1_6_2Documentation/ch04.html#N10FE6) says to run:
>
>  - [dspace]/bin/dspace index-init
>
> You could look in your browse index tables bi_* and see what values they are 
> holding. Are they holding the expected dates in the format you would expect?
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: +64 (0)9 373 7599 x81928
>
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-07 Thread Clive Gould
Hi Rajshekhar

Be VERY careful!

After editing the date format and re-running the the init script I
found I was getting internal server errors!

I have just rolled our production server back to DSpace 1.5.2 until a
permanent solution to this problem can be found!

I notice that with DSpace 1.5.2 on our server the strange codes were
already there before the database upgrade:

dc date   accessioned 2009-04-29T05:57:26Z
dc date   available 2009-04-29T05:57:26Z
dc date   issued 2009-04-29T05:57:26Z

Hoping someone out there has a solution to the issue date truncation
with DSpace 1.6.2

Clive

On Sat, Aug 7, 2010 at 8:01 AM, Rajshekhar Pandey
 wrote:
> Hello,
>
>   I have tried your upgrade steps, and faced same problem.
>
>   I editted the item and I found dc.dspace.issued in "2010-07-26T06:34:42Z",
> I eddited date to "2010-07-26" and it works for me
>
> Thanks.
>
> --
>>
>> Message: 1
>> Date: Fri, 6 Aug 2010 09:40:41 +0100
>> From: Clive Gould 
>> Subject: Re: [Dspace-tech] DSpace 1.6.2 issue date format
>> To: TAYLOR Robin 
>> Cc: dspace-tech@lists.sourceforge.net
>> Message-ID:
>>        
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hi everyone
>>
>> I have just upgraded our production server to DSpace 1.6.2 and the
>> issue date field is now truncated to display only the year:
>>
>> http://vle.bromley.ac.uk/dspace/browse?type=dateissued
>>
>> Is this normal with DSpace 1.6.2 ???
>>
>> I have blogged the upgrade procedure I followed here:
>>
>> http://dspacebromley.blogspot.com/
>>
>> Has anyone else who has successfully upgraded got the full issue date
>> displayed??
>>
>> Thanks
>>
>> Clive
>>
>> On Thu, Aug 5, 2010 at 6:59 AM, Clive Gould  wrote:
>> > Hi Robin
>> >
>> > Appended are the appropriate sections from dspace.cfg.
>> >
>> > Note that these sections are derived unchanged from the default
>> > configuration files that came with DSpace 1.5.2 and 1.6.2
>> > respectively.
>> >
>> > Any suggestions most welcome.
>> >
>> > Thanks :)
>> >
>> > Clive
>> >
>> >
>> > ## Browse Configuration 1.5.2 ##
>> > # Issue Date is displayed in full
>> >
>> > webui.browse.index.1 = dateissued:item:dateissued
>> > webui.browse.index.2 = author:metadata:dc.contributor.*:text
>> > webui.browse.index.3 = title:item:title
>> > webui.browse.index.4 = subject:metadata:dc.subject.*:text
>> >
>> > webui.itemlist.sort-option.1 = title:dc.title:title
>> > webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
>> > webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
>> >
>> > plugin.named.org.dspace.sort.OrderFormatDelegate= \
>> > ? ? ? ?org.dspace.sort.OrderFormatTitleMarc21=title
>> >
>> > webui.browse.link.1 = author:dc.contributor.*
>> >
>> >
>> >  Additional configuration for Recent Submissions code 
>> >
>> > recent.submissions.sort-option = dateaccessioned
>> >
>> > recent.submissions.count = 5
>> >
>> > plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
>> > ? ? ? ?org.dspace.app.webui.components.RecentCommunitySubmissions
>> >
>> > plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
>> > ? ? ? ?org.dspace.app.webui.components.RecentCollectionSubmissions
>> >
>> >
>> >
>> > ## Browse Configuration 1.6.2 ##
>> > # Issue date is truncated to just the year
>> >
>> > webui.browse.index.1 = dateissued:item:dateissued
>> > webui.browse.index.2 = author:metadata:dc.contributor.*,dc.creator:text
>> > webui.browse.index.3 = title:item:title
>> > webui.browse.index.4 = subject:metadata:dc.subject.*:text
>> >
>> > webui.itemlist.sort-option.1 = title:dc.title:title
>> > webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
>> > webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
>> >
>> > plugin.named.org.dspace.sort.OrderFormatDelegate= \
>> > ? ? ? ?org.dspace.sort.OrderFormatTitleMarc21=title
>> >
>> > webui.browse.link.1 = author:dc.contributor.*
>> >
>> >  Additional configuration for Recent Submissions code 
>> >
>> > recent.submissions.sort-option = dateaccessioned
>> >
>> > recent.sub

Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-06 Thread Clive Gould
Hi everyone

I have undertaken some further investigations and it appears that the
contents of every date field in each item record has been corrupted
since the upgrade from DSpace 1.5.2 to 1.6.2

Below is an example of a corrupted record: (The T05:37:47Z mystifies me)

dc contributor   author Human, Resources
dc date   accessioned 2009-04-29T05:37:47Z
dc date   available 2009-04-29T05:37:47Z
dc date   issued 2009-04-29T05:37:47Z
dc identifier   uri http://hdl.handle.net/2045/12
dc description   abstract Teaching staff are required to contact their
School Administrator to report sickness absence and Business Support
staff should contact their immediate Line Manager.
dc description   provenance Submitted by Clive Gould
(xx...@bromley.ac.uk) on 2009-04-29T05:37:47Z
No. of bitstreams: 1
sickness-absence_reporting.doc: 76800 bytes, checksum:
f1174340c8eb1dc64f63efa0c7c625d6 (MD5)
dc description   provenance Made available in DSpace on
2009-04-29T05:37:47Z (GMT). No. of bitstreams: 1
sickness-absence_reporting.doc: 76800 bytes, checksum:
f1174340c8eb1dc64f63efa0c7c625d6 (MD5)

It is possible to edit each item record individually and remove the
T05:37:47Z at which point DSpace dsiplays the date correctly.

Any suggestions what might be causing this?

Could it be that the SQL script has corruputed the database, or is
there something in how DSpace is displaying dates held by postgresql?

Thanks very much

Clive


On Fri, Aug 6, 2010 at 9:40 AM, Clive Gould  wrote:
> Hi everyone
>
> I have just upgraded our production server to DSpace 1.6.2 and the
> issue date field is now truncated to display only the year:
>
> http://vle.bromley.ac.uk/dspace/browse?type=dateissued
>
> Is this normal with DSpace 1.6.2 ???
>
> I have blogged the upgrade procedure I followed here:
>
> http://dspacebromley.blogspot.com/
>
> Has anyone else who has successfully upgraded got the full issue date
> displayed??
>
> Thanks
>
> Clive
>

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-06 Thread Clive Gould
Hi everyone

I have just upgraded our production server to DSpace 1.6.2 and the
issue date field is now truncated to display only the year:

http://vle.bromley.ac.uk/dspace/browse?type=dateissued

Is this normal with DSpace 1.6.2 ???

I have blogged the upgrade procedure I followed here:

http://dspacebromley.blogspot.com/

Has anyone else who has successfully upgraded got the full issue date
displayed??

Thanks

Clive

On Thu, Aug 5, 2010 at 6:59 AM, Clive Gould  wrote:
> Hi Robin
>
> Appended are the appropriate sections from dspace.cfg.
>
> Note that these sections are derived unchanged from the default
> configuration files that came with DSpace 1.5.2 and 1.6.2
> respectively.
>
> Any suggestions most welcome.
>
> Thanks :)
>
> Clive
>
>
> ## Browse Configuration 1.5.2 ##
> # Issue Date is displayed in full
>
> webui.browse.index.1 = dateissued:item:dateissued
> webui.browse.index.2 = author:metadata:dc.contributor.*:text
> webui.browse.index.3 = title:item:title
> webui.browse.index.4 = subject:metadata:dc.subject.*:text
>
> webui.itemlist.sort-option.1 = title:dc.title:title
> webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
> webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
>
> plugin.named.org.dspace.sort.OrderFormatDelegate= \
>        org.dspace.sort.OrderFormatTitleMarc21=title
>
> webui.browse.link.1 = author:dc.contributor.*
>
>
>  Additional configuration for Recent Submissions code 
>
> recent.submissions.sort-option = dateaccessioned
>
> recent.submissions.count = 5
>
> plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
>        org.dspace.app.webui.components.RecentCommunitySubmissions
>
> plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
>        org.dspace.app.webui.components.RecentCollectionSubmissions
>
>
>
> ## Browse Configuration 1.6.2 ##
> # Issue date is truncated to just the year
>
> webui.browse.index.1 = dateissued:item:dateissued
> webui.browse.index.2 = author:metadata:dc.contributor.*,dc.creator:text
> webui.browse.index.3 = title:item:title
> webui.browse.index.4 = subject:metadata:dc.subject.*:text
>
> webui.itemlist.sort-option.1 = title:dc.title:title
> webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
> webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date
>
> plugin.named.org.dspace.sort.OrderFormatDelegate= \
>        org.dspace.sort.OrderFormatTitleMarc21=title
>
> webui.browse.link.1 = author:dc.contributor.*
>
>  Additional configuration for Recent Submissions code 
>
> recent.submissions.sort-option = dateaccessioned
>
> recent.submissions.count = 5
>
> plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
>        org.dspace.app.webui.components.RecentCommunitySubmissions
>
> plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
>        org.dspace.app.webui.components.RecentCollectionSubmissions
>
> plugin.named.org.dspace.content.license.LicenseArgumentFormatter = \
>        org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter
> = collection, \
>        org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter = item, \
>        org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter = eperson
>
>
>
> On Wed, Aug 4, 2010 at 1:51 PM, TAYLOR Robin  wrote:
>> Hi Clive,
>>
>> Could you post to the list the contents of the ## Browse Configuration 
>> ## section from dspace.cfg ?
>>
>> Thanks.
>>
>> Robin Taylor
>> Main Library
>> University of Edinburgh
>> Tel. 0131 6513808
>>
>>> -Original Message-
>>> From: Clive Gould [mailto:cli...@gmail.com]
>>> Sent: 04 August 2010 12:54
>>> To: dspace-tech@lists.sourceforge.net
>>> Subject: Re: [Dspace-tech] DSpace 1.6.2 issue date format
>>>
>>> Hi Robin
>>>
>>> 1.5.2 production repository:-
>>>
>>> http://vle.bromley.ac.uk/dspace/browse?type=dateissued
>>>
>>> 1.6.2 test repository:-
>>>
>>> http://standbyvle.bromley.ac.uk/dspace/browse?type=dateissued
>>>
>>> Thanks :)
>>>
>>> Clive
>>>
>>>
>>> On Wed, Aug 4, 2010 at 10:27 AM, TAYLOR Robin
>>>  wrote:
>>> > Hi Clive,
>>> >
>>> > Do you have a url for the item so I could have a look at it ?
>>> >
>>> > Thanks, Robin.
>>> >
>>> >
>>> > Robin Taylor
>>> > Main Library
>>> > University of Edinburgh
>>> > Tel. 0131 6513808
>>> >
>>> 

Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-04 Thread Clive Gould
Hi Robin

Appended are the appropriate sections from dspace.cfg.

Note that these sections are derived unchanged from the default
configuration files that came with DSpace 1.5.2 and 1.6.2
respectively.

Any suggestions most welcome.

Thanks :)

Clive


## Browse Configuration 1.5.2 ##
# Issue Date is displayed in full

webui.browse.index.1 = dateissued:item:dateissued
webui.browse.index.2 = author:metadata:dc.contributor.*:text
webui.browse.index.3 = title:item:title
webui.browse.index.4 = subject:metadata:dc.subject.*:text

webui.itemlist.sort-option.1 = title:dc.title:title
webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date

plugin.named.org.dspace.sort.OrderFormatDelegate= \
org.dspace.sort.OrderFormatTitleMarc21=title

webui.browse.link.1 = author:dc.contributor.*


 Additional configuration for Recent Submissions code 

recent.submissions.sort-option = dateaccessioned

recent.submissions.count = 5

plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
org.dspace.app.webui.components.RecentCommunitySubmissions

plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
org.dspace.app.webui.components.RecentCollectionSubmissions



## Browse Configuration 1.6.2 ##
# Issue date is truncated to just the year

webui.browse.index.1 = dateissued:item:dateissued
webui.browse.index.2 = author:metadata:dc.contributor.*,dc.creator:text
webui.browse.index.3 = title:item:title
webui.browse.index.4 = subject:metadata:dc.subject.*:text

webui.itemlist.sort-option.1 = title:dc.title:title
webui.itemlist.sort-option.2 = dateissued:dc.date.issued:date
webui.itemlist.sort-option.3 = dateaccessioned:dc.date.accessioned:date

plugin.named.org.dspace.sort.OrderFormatDelegate= \
org.dspace.sort.OrderFormatTitleMarc21=title

webui.browse.link.1 = author:dc.contributor.*

 Additional configuration for Recent Submissions code 

recent.submissions.sort-option = dateaccessioned

recent.submissions.count = 5

plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
org.dspace.app.webui.components.RecentCommunitySubmissions

plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
org.dspace.app.webui.components.RecentCollectionSubmissions

plugin.named.org.dspace.content.license.LicenseArgumentFormatter = \
org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter
= collection, \
org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter = item, \
org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter = eperson



On Wed, Aug 4, 2010 at 1:51 PM, TAYLOR Robin  wrote:
> Hi Clive,
>
> Could you post to the list the contents of the ## Browse Configuration 
> ## section from dspace.cfg ?
>
> Thanks.
>
> Robin Taylor
> Main Library
> University of Edinburgh
> Tel. 0131 6513808
>
>> -Original Message-
>> From: Clive Gould [mailto:cli...@gmail.com]
>> Sent: 04 August 2010 12:54
>> To: dspace-tech@lists.sourceforge.net
>> Subject: Re: [Dspace-tech] DSpace 1.6.2 issue date format
>>
>> Hi Robin
>>
>> 1.5.2 production repository:-
>>
>> http://vle.bromley.ac.uk/dspace/browse?type=dateissued
>>
>> 1.6.2 test repository:-
>>
>> http://standbyvle.bromley.ac.uk/dspace/browse?type=dateissued
>>
>> Thanks :)
>>
>> Clive
>>
>>
>> On Wed, Aug 4, 2010 at 10:27 AM, TAYLOR Robin
>>  wrote:
>> > Hi Clive,
>> >
>> > Do you have a url for the item so I could have a look at it ?
>> >
>> > Thanks, Robin.
>> >
>> >
>> > Robin Taylor
>> > Main Library
>> > University of Edinburgh
>> > Tel. 0131 6513808
>> >
>> >> -Original Message-
>> >> From: Clive Gould [mailto:cli...@gmail.com]
>> >> Sent: 04 August 2010 08:01
>> >> To: dspace-tech@lists.sourceforge.net
>> >> Subject: [Dspace-tech] DSpace 1.6.2 issue date format
>> >>
>> >> Hi everyone
>> >>
>> >> Just wondering why the date display format appears to have changed
>> >> with DSpace 1.6.2 when browsing by issue date and title?
>> >>
>> >> With DSpace 1.5.2 the issue date appears in the format:
>> >>
>> >>  29-Apr-2009
>> >>
>> >> With DSpace 1.6.2 the same items issue date appears in the format:
>> >>
>> >> 2009
>> >>
>> >> Any ideas what I have done wrong in the configuration settings?
>> >>
>> >> Thanks
>> >>
>> >> Clive
>> >>
>> >> -

Re: [Dspace-tech] DSpace 1.6.2 issue date format

2010-08-04 Thread Clive Gould
Hi Robin

1.5.2 production repository:-

http://vle.bromley.ac.uk/dspace/browse?type=dateissued

1.6.2 test repository:-

http://standbyvle.bromley.ac.uk/dspace/browse?type=dateissued

Thanks :)

Clive


On Wed, Aug 4, 2010 at 10:27 AM, TAYLOR Robin  wrote:
> Hi Clive,
>
> Do you have a url for the item so I could have a look at it ?
>
> Thanks, Robin.
>
>
> Robin Taylor
> Main Library
> University of Edinburgh
> Tel. 0131 6513808
>
>> -Original Message-
>> From: Clive Gould [mailto:cli...@gmail.com]
>> Sent: 04 August 2010 08:01
>> To: dspace-tech@lists.sourceforge.net
>> Subject: [Dspace-tech] DSpace 1.6.2 issue date format
>>
>> Hi everyone
>>
>> Just wondering why the date display format appears to have
>> changed with DSpace 1.6.2 when browsing by issue date and title?
>>
>> With DSpace 1.5.2 the issue date appears in the format:
>>
>>  29-Apr-2009
>>
>> With DSpace 1.6.2 the same items issue date appears in the format:
>>
>> 2009
>>
>> Any ideas what I have done wrong in the configuration settings?
>>
>> Thanks
>>
>> Clive
>>
>> --
>> 
>> The Palm PDK Hot Apps Program offers developers who use the
>> Plug-In Development Kit to bring their C/C++ apps to Palm for
>> a share of $1 Million in cash or HP Products. Visit us here
>> for more details:
>> http://p.sf.net/sfu/dev2dev-palm
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.6.2 issue date format

2010-08-04 Thread Clive Gould
Hi everyone

Just wondering why the date display format appears to have changed
with DSpace 1.6.2 when browsing by issue date and title?

With DSpace 1.5.2 the issue date appears in the format:

 29-Apr-2009

With DSpace 1.6.2 the same items issue date appears in the format:

2009

Any ideas what I have done wrong in the configuration settings?

Thanks

Clive

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 Release to fix key issues in 1.6.1

2010-08-03 Thread Clive Gould
Hi

I have just successfully upgraded DSpace from 1.5.2 to 1.6.2 on our
test server, going via DSpace 1.6.0 as an interim step :)

I am in the process of upgrading our production server and wonder if I
can skip the 1.6.0 stage and go straight from 1.5.2 to 1.6.2?

I have blogged the proposed upgrade procedure for future reference:

http://dspacebromley.blogspot.com/2010/08/dspace-162-upgrade-procedure.html

My main concern is with the database upgrade.

Do I have to run the SQL database upgrade script twice, once before
and once after applying the 1.6.2 bitstream fix, or can I get away
with running it just once after applying the bitstream fix?

Comments most welcome, before try and I find out the hard way ;)

Thanks

Clive



Message: 4
Date: Fri, 11 Jun 2010 09:13:22 -0400
From: "Mark H. Wood" 
Subject: Re: [Dspace-tech] DSpace 1.6.2 Release to fix key issues in
   1.6.1
To: dspace-tech@lists.sourceforge.net
Message-ID: <20100611131322.gb2...@iupui.edu>
Content-Type: text/plain; charset="us-ascii"

On Fri, Jun 11, 2010 at 12:40:40PM +0100, Clive Gould wrote:
> We are currently running DSpace 1.5.2 and I was planning to upgrade
> over the summer holiday when I will have some time to spare.
>
> Is it possible to upgrade directly from 1.5.2 to 1.6.2 without going
> through the interim upgrade steps?

The answer depends on what we mean by "steps".

You can install 1.6.2 in place of 1.5.2 without first installing 1.6.0
and then 1.6.1.  But you do have to carry out the upgrade instructions
(Upgrading a DSpace Installation), in order, for each version between
the one you start with and the one you end at.  For example, there
should be an SQL script for altering the database schema and
converting the data to match, in the upgrade instructions for 1.5.2 to
1.6.0, which cannot be skipped.

--
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Balance your desire for bells and whistles with the reality that only a
little more than 2 percent of world population has broadband.
   -- Ledford and Tyler, _Google Analytics 2.0_
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace 1.6.2 Release to fix key issues in 1.6.1

2010-06-11 Thread Clive Gould
Hi

We are currently running DSpace 1.5.2 and I was planning to upgrade
over the summer holiday when I will have some time to spare.

Is it possible to upgrade directly from 1.5.2 to 1.6.2 without going
through the interim upgrade steps?

Thanks very much

Clive


> --
>
> Message: 3
> Date: Thu, 10 Jun 2010 17:27:30 -0500
> From: Tim Donohue 
> Subject: [Dspace-tech] DSpace 1.6.2 Release to fix key issues in 1.6.1
> To: dspace-general ,
>        dspace-tech ,        dspace-devel
>        
> Message-ID: <4c1166d2.3000...@duraspace.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> The DSpace Developers would like to announce the release schedule for
> DSpace 1.6.2, which resolves an few key issues in 1.6.1.
>
> DSpace 1.6.2 is scheduled for public release on Wednesday, June 16, 2010.
>
> DSpace 1.6.2 is a bug-fix release which will resolve two key issues
> found within 1.6.1.  This release will not introduce any new features.
>
> Shortly after the 1.6.1 release, it came to our attention that we
> accidentally broke the Unix-based 'start-handle-server' script (which
> provides an easy way to start up the DSpace Handle Server on Unix/Linux
> servers).  Although this issue does not cause any instability with
> DSpace software itself, the developers feel that it is important enough
> that it should be resolved as soon as possible.
>
> The DSpace 1.6.2 release resolves this 'start-handle-server' script
> issue, and also makes a few small improvements to the official DSpace
> Documentation.  In addition, 1.6.2 resolves a minor URL escaping issue
> located in the 1.6.x JSPUI.
>
> Because of the overlooked 'start-handle-server' bug, the DSpace
> Developers have taken steps to improve our Handle Server testing
> processes for future releases. CNRI (Corporation for National Research
> Initiatives) has kindly donated a Handle System Prefix
> (http://handle.net) to the DSpace project to help us improve our future
> testing processes.  We would like to thank CNRI for their kind donation.
>  We also apologize for any issues this bug may have caused with your
> local 1.6.1 upgrades.
>
> Sincerely,
>
> The DSpace Developers
>

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.6.0 and special groups

2010-03-10 Thread Clive Gould
Hi Stuart

You kindly helped me customise the special groups code in
/home/dspace/dspace-1.5.2-src-release/dspace-api/src/main/java/org/dspace/authenticate/LDAPHierarchicalAuthentication.java
to differentiate between staff and student login.

I have just downloaded the source code for dspace 1.6.0 and looked at
the above file.

Before I take the plunge, can you please confirm that the patch we
applied below will still work with the 1.6.0 code?

Thanks very much

Clive


/*
* New code written by Stuart Lewis and added by Clive Gould on 28th April 2009
*/

public int[] getSpecialGroups(Context context, HttpServletRequest request)
{
try
{
if (!context.getCurrentUser().getNetid().equals(""))
{
Group staffGroup = Group.findByName(context, "all-staff");
Group studentsGroup = Group.findByName(context, "all-students");

// Does the username start with a '1'?
if ((studentsGroup != null) &&
context.getCurrentUser().getNetid().startsWith("1")))
{
// Add them to the students group
return new int[] { studentsGroup.getID() };
}
else if (staffGroup != null)
{
// Add them to the staff group
return new int[] { staffGroup.getID() };
}
}
}
catch (Exception npe) {
// The user is not an LDAP user, so we don't need to worry about them
}
return new int[0];
}

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle server 6.2 installation

2009-08-03 Thread clive gould
Hi Claudia

I'm working with DSpace 1.5.2 built from source so the file must be
/home/dspace/dspace-1.5.2-src-release/pom.xml

This is the only file I can find which contains reference to the
version of the handle server. i.e.


org.dspace
handle
5.3.4


The other file you mentioned
(/home/dspace/dspace-1.5.2-src-release/dspace-api/pom.xml) does not
contain a reference to the specific version of the handle server.


 org.dspace
handle


When I rebuild the DSpace installation later this month I'll give it a
go by changing the handle version to 6.2 in
/home/dspace/dspace-1.5.2-src-release/pom.xml

Thanks :)

Clive






2009/8/3 Claudia Jürgen :
> Hi Clive,
>
> the directories you mentioned are different source directories (1.5.1, 1.5.2
> and 1.5.2 source release). You seem to have checked out different versions.
>
> It depends which source is the base of your installation.
>
> The dependency is in two pom's if you are using a source release:
> - [dspace-source]/pom.xml
> - [dspace-source]/dspace-api/pom.xml
>
> Hope that helps
>
> Claudia Jürgen
>
>
> clive gould schrieb:
>>
>> Hi Stuart
>>
>> There are quite a number of pom.xml files around in my DSpace
>> installation.
>>
>> I need to make sure I'm editing the right one ;)
>>
>> [r...@standbyvle ~]# grep -RH handle /home/dspace/*/pom.xml
>> /home/dspace/dspace-1.5.1-release/pom.xml:
>> handle
>> /home/dspace/dspace-1.5.2-release/pom.xml:
>> handle
>> /home/dspace/dspace-1.5.2-src-release/pom.xml:
>> handle
>>
>> My best guess is /home/dspace/dspace-1.5.2-src-release/pom.xml
>>
>> Am I right please?
>>
>> Thanks
>>
>> Clive
>>
>>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle server 6.2 installation

2009-08-03 Thread clive gould
Hi Stuart

There are quite a number of pom.xml files around in my DSpace installation.

I need to make sure I'm editing the right one ;)

[r...@standbyvle ~]# grep -RH handle /home/dspace/*/pom.xml
/home/dspace/dspace-1.5.1-release/pom.xml:
handle
/home/dspace/dspace-1.5.2-release/pom.xml:
handle
/home/dspace/dspace-1.5.2-src-release/pom.xml:
handle

My best guess is /home/dspace/dspace-1.5.2-src-release/pom.xml

Am I right please?

Thanks

Clive


On Sun, Aug 2, 2009 at 10:24 PM, Stuart Lewis wrote:
> Hi Clive,
>
> That is one of the examples where our documentation is a little out of
> date (there is a concerted documentation effort going on for 1.6 which
> will hopefully improve on this situation).
>
> In 1.5+ where Maven is used as the build and dependency management
> system, you can instruct maven which version of the jar you wish to use,
> and it will download and install it for you.
>
> The required change can be seen at:
>
> http://scm.dspace.org/trac/dspace/changeset/3759/trunk/pom.xml
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Handle server 6.2 installation

2009-07-31 Thread clive gould
Hi

I am looking at upgrading the handle system in our test installation
of DSpace 1.5.2 to version 6.2 later in August.

In the DSpace installation documentation it refers to:

"If you decide to update, you should replace the existing handle.jar
in [dspace-source]/lib with the new version and rebuild your war
files."

I cannot locate an existing handle.jar file - the only file I can find
is handle-5.3.4.jar which exists in the following locations:-

/home/dspace/dspace-1.5.2-release/dspace/modules/jspui/target/jspui-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/modules/lni/target/lni-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/modules/oai/target/oai-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/modules/sword/target/sword-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/modules/xmlui/target/xmlui-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/webapps/jspui/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/webapps/lni/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/webapps/oai/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/webapps/sword/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-release/dspace/target/dspace-1.5.2-build.dir/webapps/xmlui/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/modules/jspui/target/jspui-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/modules/lni/target/lni-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/modules/oai/target/oai-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/modules/sword/target/sword-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/modules/xmlui/target/xmlui-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/webapps/jspui/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/webapps/lni/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/webapps/oai/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/webapps/sword/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir/webapps/xmlui/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-webapp/target/dspace-jspui-webapp-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace-lni/dspace-lni-webapp/target/dspace-lni-webapp-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace-oai/dspace-oai-webapp/target/dspace-oai-webapp-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace-sword/dspace-sword-webapp/target/dspace-sword-webapp-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/dspace-1.5.2-src-release/dspace-xmlui/dspace-xmlui-webapp/target/dspace-xmlui-webapp-1.5.2/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/lib/handle-5.3.4.jar
/home/dspace/lib.bak-20090709-061925/handle-5.3.4.jar
/home/dspace/lib.bak-20090718-083852/handle-5.3.4.jar
/home/dspace/webapps/jspui/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/webapps/lni/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/webapps/oai/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/webapps/sword/WEB-INF/lib/handle-5.3.4.jar
/home/dspace/webapps/xmlui/WEB-INF/lib/handle-5.3.4.jar

If I want to rebuild DSpace from SOURCE which handle*.jar file do I
need to replace please?

Is it /home/dspace/lib/handle-5.3.4.jar that I need to replace with
/home/dspace/hdl6.2.5_02/handle.jar ??

Thanks in advance :)

Clive

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Dpace configuration with LDAP

2009-07-08 Thread clive gould
Hi Ahmad

Have you looked at my blog http://www.linuxtraining.org.uk/blogger.html

Scroll down to where you see the section *Getting LDAP access to Active
Directory working *
**
Good luck :)

Clive
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help - How to change DSpace URL?

2009-07-08 Thread clive gould
Hi

On our old installation of DSpace we can access it using the URL in the form
http://vle.bromley.ac.uk/dspace

On our new test installation we have to access it using the URL
http://standbyvle.bromley.ac.uk/jspui

Is it possible to change the URL on our test installation so we can
use /dspace instead of /jspui please?

I am using mod_jk to forward the requests from Apache to Tomcat.

For more info on our installation please see:
http://www.linuxtraining.org.uk/blogger.html

Any suggestions most welcome.

Thanks in advance :)

Clive
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help: How to customise export download emails

2009-05-08 Thread clive gould
Hi Claudia

Thanks for the advice.

I had the wrong entry in the dspace.url parameter in dspace.cfg

i.e. I had http://vleinternal.bromley.ac.uk/dspace instead of
http://vleinternal.bromley.ac.uk/jspui

The exports now work fine :)

Clive


On Thu, May 7, 2009 at 5:19 PM, Claudia Juergen
 wrote:
> Hi Clive,
>
> check your setting dspace.url in dspace.cfg and your permission rights on
> the export directories.
>
> Claudia
>
>> Hi Claudia
>>
>> Thanks for the prompt reply.
>>
>> I need to change the URL because the link does not work.
>>
>> Best wishes
>>
>> Clive
>>
>>
>> 2009/5/7 Claudia Jürgen :
>>> Hi Clive,
>>>
>>> the export directory settings in dspace.cfg are irrelevant for the
>>> retrieval
>>> URL. There is no direct access via URL to the directories mentioned in
>>> the
>>> dspace.cfg.
>>>
>>> The retrieval URL is build in org.dspace.app.itemexport
>>> emailSuccessMessage
>>> see: email.addArgument(ConfigurationManager.getProperty("dspace.url") +
>>> "/exportdownload/" + fileName);
>>>
>>> The parts in your example are:
>>> dspace.url in dspace.cfg = http://vleinternal.bromley.ac.uk/dspace
>>> /exportdownload/
>>> fileName = item_export_2009_May_07_2_4.zip
>>>
>>> Now for example in jspui the web.xml determines what is done with the
>>> URL
>>> http://vleinternal.bromley.ac.uk/dspace/exportdownload/*
>>> see web.xml:
>>> 
>>> exportdownload
>>> /exportdownload/*
>>> 
>>>
>>> 
>>> exportdownload
>>> org.dspace.app.webui.servlet.ItemExportArchiveServlet
>>> 
>>>
>>> In the end the ItemExportArchiveServlet handles the Export.
>>>
>>> Why do you want to change the URL created, does yours not work?
>>>
>>> Hope that helps
>>>
>>> Claudia Jürgen
>>>
>>>
>>>
>>>
>>> clive gould schrieb:
>>>>
>>>> Hi
>>>>
>>>> I've got the following parameters in dspace.cfg
>>>>
>>>> ### Item export and download settings ###
>>>> # The directory where the exports will be done and compressed
>>>> org.dspace.app.itemexport.work.dir = ${dspace.dir}/exports
>>>>
>>>> # The directory where the compressed files will reside and be read by
>>>> the downloader
>>>> org.dspace.app.itemexport.download.dir = ${dspace.dir}/exports/download
>>>>
>>>>
>>>> When an item is exported the zip file is stored in
>>>> /home/dspace/exports/download/4
>>>>
>>>> However the download URL in the email received points to the wrong
>>>> location: i.e.
>>>>
>>>> You may download the compressed file using the following link:
>>>>
>>>> http://vleinternal.bromley.ac.uk/dspace/exportdownload/item_export_2009_May_07_2_4.zip
>>>>
>>>> How do I change the link in the email to point to the correct location?
>>>>
>>>> Thanks very much
>>>>
>>>> Clive
>>>>
>>>>
>>>> --
>>>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!
>>>> Your
>>>> production scanning environment may not be a perfect world - but thanks
>>>> to
>>>> Kodak, there's a perfect scanner to get the job done! With the NEW
>>>> KODAK
>>>> i700
>>>> Series Scanner you'll get full speed at 300 dpi even with all image
>>>> processing features enabled. http://p.sf.net/sfu/kodak-com
>>>> ___
>>>> DSpace-tech mailing list
>>>> DSpace-tech@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>
>>
>
>
>

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: Change of URL for DSpace

2009-05-07 Thread clive gould
Hi

I currently have an evaluation installation of DSpace 1.5.2 accessible
on http://vleinternal.bromley.ac.uk/jspui/

How can I change this to http://vleinternal.bromley.ac.uk/dspace ?

Is it just a question of editing Tomcat's server.xml and changing the
Context path from /jspui to /dspace in the following section of code?




I realise that if I do this I will also have to change the mod_jk
JkMount settings accordingly.

More details of my installation can be found at
http://www.linuxtraining.org.uk/blogger.html

Thanks in advance :)

Clive

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Fwd: Help: How to customise export download emails

2009-05-07 Thread clive gould
Hi Claudia

Thanks for the prompt reply.

I need to change the URL because the link does not work.

Best wishes

Clive


2009/5/7 Claudia Jürgen :
> Hi Clive,
>
> the export directory settings in dspace.cfg are irrelevant for the retrieval
> URL. There is no direct access via URL to the directories mentioned in the
> dspace.cfg.
>
> The retrieval URL is build in org.dspace.app.itemexport emailSuccessMessage
> see: email.addArgument(ConfigurationManager.getProperty("dspace.url") +
> "/exportdownload/" + fileName);
>
> The parts in your example are:
> dspace.url in dspace.cfg = http://vleinternal.bromley.ac.uk/dspace
> /exportdownload/
> fileName = item_export_2009_May_07_2_4.zip
>
> Now for example in jspui the web.xml determines what is done with the URL
> http://vleinternal.bromley.ac.uk/dspace/exportdownload/*
> see web.xml:
> 
> exportdownload
> /exportdownload/*
> 
>
> 
> exportdownload
> org.dspace.app.webui.servlet.ItemExportArchiveServlet
> 
>
> In the end the ItemExportArchiveServlet handles the Export.
>
> Why do you want to change the URL created, does yours not work?
>
> Hope that helps
>
> Claudia Jürgen
>
>
>
>
> clive gould schrieb:
>>
>> Hi
>>
>> I've got the following parameters in dspace.cfg
>>
>> ### Item export and download settings ###
>> # The directory where the exports will be done and compressed
>> org.dspace.app.itemexport.work.dir = ${dspace.dir}/exports
>>
>> # The directory where the compressed files will reside and be read by
>> the downloader
>> org.dspace.app.itemexport.download.dir = ${dspace.dir}/exports/download
>>
>>
>> When an item is exported the zip file is stored in
>> /home/dspace/exports/download/4
>>
>> However the download URL in the email received points to the wrong
>> location: i.e.
>>
>> You may download the compressed file using the following link:
>>
>> http://vleinternal.bromley.ac.uk/dspace/exportdownload/item_export_2009_May_07_2_4.zip
>>
>> How do I change the link in the email to point to the correct location?
>>
>> Thanks very much
>>
>> Clive
>>
>>
>> --
>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>> production scanning environment may not be a perfect world - but thanks to
>> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
>> i700
>> Series Scanner you'll get full speed at 300 dpi even with all image
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: How to customise export download emails

2009-05-07 Thread clive gould
Hi

I've got the following parameters in dspace.cfg

### Item export and download settings ###
# The directory where the exports will be done and compressed
org.dspace.app.itemexport.work.dir = ${dspace.dir}/exports

# The directory where the compressed files will reside and be read by
the downloader
org.dspace.app.itemexport.download.dir = ${dspace.dir}/exports/download


When an item is exported the zip file is stored in
/home/dspace/exports/download/4

However the download URL in the email received points to the wrong
location: i.e.

You may download the compressed file using the following link:
http://vleinternal.bromley.ac.uk/dspace/exportdownload/item_export_2009_May_07_2_4.zip

How do I change the link in the email to point to the correct location?

Thanks very much

Clive

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Special Groups = Working :)

2009-04-29 Thread clive gould
Hi Stuart

I've managed to figure out how to get your code working. Staff and students
are now automatically being added to special groups in DSpace.

When I get the time I'll add the process I followed to my DSpace blog.

Thanks very much indeed :D

Clive

On Tue, Apr 28, 2009 at 12:32 AM, Stuart Lewis wrote:

> Hi Clive,
>
> Try replacing the code in the getSpcialGroups method in
> [dspace-src]/dspace-api/src/main/java/org/dspace/authenticate/DAPHierarchicalAuthentication.java
> with the following:
>
> public int[] getSpecialGroups(Context context, HttpServletRequest request)
> {
>try
>{
>if (!context.getCurrentUser().getNetid().equals(""))
>{
>Group staffGroup = Group.findByName(context, "all-staff");
>Group studentsGroup = Group.findByName(context, "all-students");
>
>// Does the username start with a '1'?
>if ((studentsGroup != null) &&
> (context.getCurrentUser().getNetid().startsWith("1")))
>{
>// Add them to the students group
>return new int[] { studentsGroup.getID() };
>}
>else if (staffGroup != null)
>{
>// Add them to the staff group
>return new int[] { staffGroup.getID() };
>}
>}
>}
>catch (Exception npe) {
>// The user is not an LDAP user, so we don't need to worry about
> them
>}
>return new int[0];
> }
>
> Hopefully this should work. You may wish to change the group names which
> are set in the code to be 'all-staff' and 'all-students'.
>
>
>
> Stuart Lewis
> Digital Services Programmer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>
>
>
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] ldap login

2009-04-28 Thread clive gould
Hi Sarah

I was troubled by a dialog asking me how I wanted to login.

My solution was to edit dspace.cfg so as to only permit LDAP login as
follows:

 Stackable Authentication Methods #

# Stack of authentication methods
# (See org.dspace.authenticate.AuthenticationManager)
# Example:
# plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
# org.dspace.authenticate.ShibAuthentication, \
# org.dspace.authenticate.PasswordAuthentication

# Next two lines added by Clive Gould on 22/04/09 to allow AD Authentication

plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
org.dspace.authenticate.LDAPHierarchicalAuthentication

For more info please see: http://www.linuxtraining.org.uk/blogger.html

Hope this helps

Clive
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Special Groups

2009-04-27 Thread clive gould
Hi Stuart

Thanks very much for the patch :D

I've downloaded dspace-1.5.2-src-release from Sourceforge and located the
section of the code in the file LDAPHierarchicalAuthentication.java in
/root/dspace-1.5.2-src-release/dspace-api/src/main/java/org/dspace/authenticate

My next problem is down to ignorance on my part. Once I have patched the
above file what do I need to do to incorporate it into our
existing installation of DSpace, without having to perform a fresh
installation? (I have only worked with the dspace-1.5.2-release up to now).

Are the instructions on the page
http://wiki.dspace.org/index.php/Building_DSpace_From_Source relevant ??

Is there a jar I can copy over after compilation that will do the trick?

Any guidance for a relative newbie would be appreciated ;)

Thanks

Clive


On Tue, Apr 28, 2009 at 12:32 AM, Stuart Lewis wrote:

> Hi Clive,
>
> Try replacing the code in the getSpcialGroups method in
> [dspace-src]/dspace-api/src/main/java/org/dspace/authenticate/DAPHierarchicalAuthentication.java
> with the following:
>
> public int[] getSpecialGroups(Context context, HttpServletRequest request)
> {
>try
>{
>if (!context.getCurrentUser().getNetid().equals(""))
>{
>Group staffGroup = Group.findByName(context, "all-staff");
>Group studentsGroup = Group.findByName(context, "all-students");
>
>// Does the username start with a '1'?
>if ((studentsGroup != null) &&
> (context.getCurrentUser().getNetid().startsWith("1")))
>{
>// Add them to the students group
>return new int[] { studentsGroup.getID() };
>}
>else if (staffGroup != null)
>{
>// Add them to the staff group
>return new int[] { staffGroup.getID() };
>}
>}
>}
>catch (Exception npe) {
>// The user is not an LDAP user, so we don't need to worry about
> them
>}
>return new int[0];
> }
>
> Hopefully this should work. You may wish to change the group names which
> are set in the code to be 'all-staff' and 'all-students'.
>
>
>
> Stuart Lewis
> Digital Services Programmer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Special Groups

2009-04-26 Thread clive gould
 Hi Stuart

I'm at a loss to know where to find the getSpecialGroups method.

I've tried locate and grep recursively without success.

All student id's are numeric and begin with the number 1

All I need is a fragment of code as follows:

IF first character of EPerson name is not 1 THEN
  Add EPerson to staff special group
ENDIF

I guess it would look something like this: (N.B. I'm not a java programmer!)

*if (context.getCurrentUser().getEPersonl()**!=='1') {
??*
*}
*
How and where do I go about coding this please?

Thnaks very much indeed.

Clive




On Thu, Apr 23, 2009 at 10:36 PM, Stuart Lewis wrote:

>  Hi Clive,
>
>
>
> The code you need to write will either need to go in the getSppecialGroups
> method, or in the authenticate method.
>
>
>
> Ideally it would go in the former, but it depends on whether you can derive
> the group you need to add the user to from their EPerson details. For
> example if you can tell from their netid or email whether they are staff or
> students, then you can write code in getSpecialGroups along the lines of
>
>
>
> if (context.getCurrentUser().getEmail().contains(�...@students.bromley.ac.uk
> ”))
>
>
>
> to decide if a user matches.
>
>
>
> However if the information cannot be derived from their EPerson
> information, but you need the information from their LDAP record (e.g. to
> look up group memberships) instead, then you’ll have to add code in the
> authenticate method. You need to find where in the code the user gets
> authenticated, decide which groups to add the user to based upon their user
> profile,  then use the api call context.setSpecialGroup(int groupID).
>
>
>
> I hope this helps,
>
>
>
>
>
> Stuart Lewis
>
> Digital Services Programmer
>
> Te Tumu Herenga The University of Auckland Library
>
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
>
> Ph: 64 9 373-7599 x81928
>
> *http://www.library.auckland.ac.nz/*
>
>
>
>
>
>
>
>
>
> *From:* clive gould [mailto:cli...@gmail.com]
> *Sent:* Friday, 24 April 2009 2:12 a.m.
> *To:* dspace-tech@lists.sourceforge.net
> *Subject:* [Dspace-tech] Special Groups
>
>
>
> Hi
>
>
>
> I have published in my DSpace install blog information on installing DSpace
> 1.5.2 on CentOS 5.3 and getting DSpace/AD authentication working:
>
>
>
> http://www.linuxtraining.org.uk/blogger.html
>
>
>
> Now I am starting to wonder if anyone managed to get more than one special
> group working with DSpace with LDAP/AD authentication?
>
>
>
> What I am interested in is getting:
>
>- Staff users from AD automatically added to a staff special group in
>DSpace
>- Student users from AD automatically added to a student special group
>in Dspace.
>
>   I understand this may involve writing code associated with the
> getSpecialGroups methods.
>
>
>
> Automatic group membership for staff and students in DSpace worked well
> with RADIUS authentication, but the RADIUS module won't work for me any
> longer :(
>
>
>
> Has anyone got this working with LDAP authentication I wonder?
>
>
>
> Thanks in advance
>
>
>
> Clive
>
>
>
> Clive Gould
>
> Bromley College
>
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Special Groups

2009-04-23 Thread clive gould
Hi

I have published in my DSpace install blog information on installing DSpace
1.5.2 on CentOS 5.3 and getting DSpace/AD authentication working:

http://www.linuxtraining.org.uk/blogger.html

Now I am starting to wonder if anyone managed to get more than one special
group working with DSpace with LDAP/AD authentication?

What I am interested in is getting:

   - Staff users from AD automatically added to a staff special group in
   DSpace
   - Student users from AD automatically added to a student special group in
   Dspace.

 I understand this may involve writing code associated with the
getSpecialGroups methods.

Automatic group membership for staff and students in DSpace worked well with
RADIUS authentication, but the RADIUS module won't work for me any longer :(

Has anyone got this working with LDAP authentication I wonder?

Thanks in advance

Clive

Clive Gould
Bromley College
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: ldap.login.specialgroup doesn't seem to work

2009-04-22 Thread clive gould
Hi everyone

I've got DSpace 1.5.2 running on CentOS 5.2 successfully authenticating
against Active Directory using the LDAP plugin.

I have created a group called Authenticated using dspace-admin, but when new
users login for the first time via LDAP they are not being added
automatically to the group.

The relevant excerpt from dspace.cfg is shown below:

# LDAP users group #
# If required, a group name can be given here, and all users who log in
# to LDAP will automatically become members of this group. This is useful
# if you want a group made up of all internal authenticated users.
ldap.login.specialgroup = Authenticated
Any ideas why this isn't working?

Thanks

Clive
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] HELP: DSpace 1.5.2 LDAP/AD login problem

2009-04-22 Thread clive gould
Hi Everyone

Problem solved :)

The url needed to be in the form ldap.provider_url =
ldap://10.100.0.2:3268/<http://mail.google.com/mail/goog_1240385101348>

including the trailing backslash!

Clive




-- Forwarded message --
From: clive gould 
Date: Wed, Apr 22, 2009 at 1:42 PM
Subject: HELP: DSpace 1.5.2 LDAP/AD login problem
To: DSpace-tech@lists.sourceforge.net


Hi

I'm trying to get DSpace to authenticate agains AD using the LDAP module
auth module.

I can successfully connect to AD using JXplorer and ldapsearch from the box
that DSpace is installed on.

In dspace.cfg the following line sets the URL for the LDAP server.

ldap.provider_url = 10.100.0.2:3268

When I try to authenticate from dspace I am told that my login is incorrect
and the following message appears in dspace.log

2009-04-22 13:25:18,897 INFO
org.dspace.authenticate.LDAPHierarchicalAuthentication @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:auth:attempting
trivial auth of user=cliveg
2009-04-22 13:25:18,899 WARN
org.dspace.authenticate.LDAPHierarchicalAuthentication @ *
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:ldap_authentication:type=failed_auth
javax.naming.NamingException\colon; Cannot parse url\colon;
10.100.0.2\colon;3268 [Root exception is
java.net.MalformedURLException\colon; Not an LDAP URL\colon;
10.100.0.2\colon;3268]*
2009-04-22 13:25:18,900 INFO
org.dspace.authenticate.LDAPHierarchicalAuthentication @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:failed_login:no
DN found for user cliveg
2009-04-22 13:25:18,900 INFO  org.dspace.app.webui.servlet.LDAPServlet @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:failed_login:netid=cliveg,
result=2
It rather looks to me as if the colon separating the IP address and the
port is being replaced by \colon;

What am I doing wrong please?

Thanks

Clive

Clive Gould
HE PAL ICT
Bromley College
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] HELP: DSpace 1.5.2 LDAP/AD login problem

2009-04-22 Thread clive gould
Hi

I'm trying to get DSpace to authenticate agains AD using the LDAP module
auth module.

I can successfully connect to AD using JXplorer and ldapsearch from the box
that DSpace is installed on.

In dspace.cfg the following line sets the URL for the LDAP server.

ldap.provider_url = 10.100.0.2:3268

When I try to authenticate from dspace I am told that my login is incorrect
and the following message appears in dspace.log

2009-04-22 13:25:18,897 INFO
org.dspace.authenticate.LDAPHierarchicalAuthentication @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:auth:attempting
trivial auth of user=cliveg
2009-04-22 13:25:18,899 WARN
org.dspace.authenticate.LDAPHierarchicalAuthentication @ *
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:ldap_authentication:type=failed_auth
javax.naming.NamingException\colon; Cannot parse url\colon;
10.100.0.2\colon;3268 [Root exception is
java.net.MalformedURLException\colon; Not an LDAP URL\colon;
10.100.0.2\colon;3268]*
2009-04-22 13:25:18,900 INFO
org.dspace.authenticate.LDAPHierarchicalAuthentication @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:failed_login:no
DN found for user cliveg
2009-04-22 13:25:18,900 INFO  org.dspace.app.webui.servlet.LDAPServlet @
anonymous:session_id=EDC2D713BBC1D94088DC71DFDBA67964:ip_addr=10.100.0.1:failed_login:netid=cliveg,
result=2
It rather looks to me as if the colon separating the IP address and the
port is being replaced by \colon;

What am I doing wrong please?

Thanks

Clive

Clive Gould
HE PAL ICT
Bromley College
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] HELP - DSpace 1.5 upgrade and tomcat error

2008-08-11 Thread Clive Gould
Hi Paul

Problem SORTed by upgrading to Tomcat 5.5.26

DSpace 1.5 works fine now :)))

Thanks very much indeed

Clive



> Hi Clive
>
>   AFAIK the problem is something to do with the Eclipse JDT compiler -
> Tomcat versions 5.5.9 or less won't work as is with DSpace 1.5, versions
> 5.5.10 or greater will...
>
>   Cheers
>   Paul
>
> Clive Gould <[EMAIL PROTECTED]> wrote:
>   Hi Paul
>
> And you have DSpace 1.5 running fine on the server?
>
> You reckon I may need to upgrade Tomcat??
>
> Thanks
>
> Clive
>
>
>> Hi Clive
>>
>> It's running java version "1.5.0_01"
>>
>> Cheers
>> Paul
>>
>> Clive Gould wrote:
>> Hi Paul
>>
>> Thanks for the prompt reply :)
>>
>> What version of Java are you running?
>>
>> I'm running
>>
>> [EMAIL PROTECTED] bin]# /usr/java/jdk/bin/java -version
>> java version "1.5.0_04"
>>
>> Thanks :)
>>
>> Clive
>>
>>
>>
>>> Hi Clive
>>>
>>> I think you may need to upgrade to a newer version of Tomcat. I had a
>>> similar issue on my test server - I was running Tomcat 5.5.7 and an
>>> upgrade to version 5.5.26 solved the problem.
>>>
>>> Cheers
>>> Paul
>>>
>>> Clive Gould wrote:
>>> Hi
>>>
>>> I've somewhat solved the problem by manually editing the following
>>> files
>>> to correct the path to dspace.cfg:
>>>
>>> /home/dspace/tomcat/webapps/dspace/WEB-INF/web.xml
>>> /home/dspace/tomcat/webapps/dspace-oai/WEB-INF/web.xml
>>>
>>> Tomcat now starts without any errors and I can see our communities and
>>> collections as expected.
>>>
>>> However when I try to do a search I get an internal error message
>>> generated and the dspace.log file contains:
>>>
>>> 2008-08-11 09:45:08,472 WARN
>>> org.dspace.app.webui.servlet.InternalErrorServlet @
>>> :session_id=7F6C14A4FE8574EE60C1EC7765568F26:internal_error:-- URL Was:
>>> http://testvle.bromley.a
>>> c.uk/dspace/simple-search?query=photo&submit=Go
>>> -- Method: GET
>>> -- Parameters were:
>>> -- submit: "Go"
>>> -- query: "photo"
>>>
>>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>>
>>> An error occurred at line: 234 in the jsp file: /search/results.jsp
>>> Generated servlet error:
>>> Syntax error on token "<", invalid AssignmentOperator
>>>
>>> An error occurred at line: 234 in the jsp file: /search/results.jsp
>>> Generated servlet error:
>>> Syntax error on token "=", != expected
>>>
>>> An error occurred at line: 242 in the jsp file: /search/results.jsp
>>> Generated servlet error:
>>> Syntax error on token(s), misplaced construct(s)
>>>
>>> An error occurred at line: 242 in the jsp file: /search/results.jsp
>>> Generated servlet error:
>>> Syntax error on token ")", : expected
>>>
>>>
>>> at
>>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
>>> at
>>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
>>> at
>>> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
>>> at
>>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
>>> at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
>>> at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>>
>>> What Have I got wrong now?
>>>
>>> Thanks all :)
>>>
>>> Clive
>>>
>>>
>>>
>>>> Hi
>>>>
>>>> Can anyone please help?
>>>>
>>>> I'm still trying to upgrade from DSpace 1.4.2 to 1.5.0 on our test
>>>> server.
>>>>
>&g

Re: [Dspace-tech] HELP - DSpace 1.5 upgrade and tomcat error

2008-08-11 Thread Clive Gould
Hi everyone

Thanks for the help so far :)

I include the Tomcat and Java version numbers as requested.

Best wishes

Clive


DSpace 1.4.2 works fine but DSpace 1.5 on the same platform gives internal
server errors when I try to do a search.

When I try to do a search I get an internal error message generated and
the dspace.log file contains:

2008-08-11 09:45:08,472 WARN
org.dspace.app.webui.servlet.InternalErrorServlet @
:session_id=7F6C14A4FE8574EE60C1EC7765568F26:internal_error:-- URL Was:
http://testvle.bromley.a
c.uk/dspace/simple-search?query=photo&submit=Go
-- Method: GET
-- Parameters were:
-- submit: "Go"
-- query: "photo"

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 234 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator

An error occurred at line: 234 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token "=", != expected

An error occurred at line: 242 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 242 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token ")", : expected


  at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
  at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
  at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
  at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java

Versions are as follows:

JAVA:

[EMAIL PROTECTED] bin]# /usr/java/jdk/bin/java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)

TOMCAT:

[EMAIL PROTECTED] bin]# ./version.sh
Using CATALINA_BASE:   /home/dspace/tomcat
Using CATALINA_HOME:   /home/dspace/tomcat
Using CATALINA_TMPDIR: /home/dspace/tomcat/temp
Using JRE_HOME:   /usr/java/jdk
Server version: Apache Tomcat/5.5.9
Server built:   Mar 26 2005 02:21:04
Server number:  5.5.9.0
OS Name:Linux
OS Version: 2.6.9-67.0.22.ELsmp
Architecture:   i386
JVM Version:1.5.0_04-b05
JVM Vendor: Sun Microsystems Inc.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] HELP - DSpace 1.5 upgrade and tomcat error

2008-08-11 Thread Clive Gould
Hi

I've somewhat solved the problem by manually editing the following files
to correct the path to dspace.cfg:

/home/dspace/tomcat/webapps/dspace/WEB-INF/web.xml
/home/dspace/tomcat/webapps/dspace-oai/WEB-INF/web.xml

Tomcat now starts without any errors and I can see our communities and
collections as expected.

However when I try to do a search I get an internal error message
generated and the dspace.log file contains:

2008-08-11 09:45:08,472 WARN 
org.dspace.app.webui.servlet.InternalErrorServlet @
:session_id=7F6C14A4FE8574EE60C1EC7765568F26:internal_error:-- URL Was:
http://testvle.bromley.a
c.uk/dspace/simple-search?query=photo&submit=Go
-- Method: GET
-- Parameters were:
-- submit: "Go"
-- query: "photo"

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 234 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator

An error occurred at line: 234 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token "=", != expected

An error occurred at line: 242 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 242 in the jsp file: /search/results.jsp
Generated servlet error:
Syntax error on token ")", : expected


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

What Have I got wrong now?

Thanks all :)

Clive



> Hi
>
> Can anyone please help?
>
> I'm still trying to upgrade from DSpace 1.4.2 to 1.5.0 on our test server.
>
> I get through the complete upgrade process successfully with no apparent
> error messages but when I go to our repository home page I get the
> following error message within the DSpace main window:
>
> null >
> Internal System Error
> The system has experienced an internal error. Please try to do what you
> were doing again, and if the problem persists, please contact us so we can
> fix the problem.
> Leave a message for the null administrators.
> Go to the DSpace home page
>
>
> On checking the tomcat log catalina.out it contains the following lines:
>
> INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
> FATAL: Can't load configuration: file:/${dspace.dir}/config/dspace.cfg
> java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
> file or directory)
>
> I have double checked /home/dspace/config/dspace.cfg and it all appears to
> be correctly and fully completed.
>
>
> When I do a grep on /home/dspace/config for dspace.dir I get:
>
> [EMAIL PROTECTED] logs]$ grep -R "dspace.dir" /home/dspace/config/*
> /home/dspace/config/dspace.cfg:dspace.dir = /home/dspace
> /home/dspace/config/dspace.cfg:# log.init.config =
> ${dspace.dir}/config/log4j.xml
> /home/dspace/config/dspace.cfg:# log.init.config =
> ${dspace.dir}/config/log4j-console.properties
> /home/dspace/config/dspace.cfg:#authentication.x509.ca.cert =
> ${dspace.dir}/config/MyClientCA.pem
> /home/dspace/config/templates/apache13.conf:  #SSLCertificateFile
> @@dspace.dir@@/etc/https-server-cert.crt
> /home/dspace/config/templates/apache13.conf:  SSLCertificateFile
> @@dspace.dir@@/etc/dspace.pem
> /home/dspace/config/templates/apache13.conf:  #SSLCertificateKeyFile
> @@dspace.dir@@/etc/https-key.pem
>
> Help please what have I missed??
>
> Thanks in advance :)
>
> Clive
>
>
>
>


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] HELP - DSpace 1.5 upgrade and tomcat error

2008-08-11 Thread Clive Gould
Hi

Can anyone please help?

I'm still trying to upgrade from DSpace 1.4.2 to 1.5.0 on our test server.

I get through the complete upgrade process successfully with no apparent
error messages but when I go to our repository home page I get the
following error message within the DSpace main window:

null >
Internal System Error
The system has experienced an internal error. Please try to do what you
were doing again, and if the problem persists, please contact us so we can
fix the problem.
Leave a message for the null administrators.
Go to the DSpace home page


On checking the tomcat log catalina.out it contains the following lines:

INFO: Loading provided config file: ${dspace.dir}/config/dspace.cfg
FATAL: Can't load configuration: file:/${dspace.dir}/config/dspace.cfg
java.io.FileNotFoundException: /${dspace.dir}/config/dspace.cfg (No such
file or directory)

I have double checked /home/dspace/config/dspace.cfg and it all appears to
be correctly and fully completed.


When I do a grep on /home/dspace/config for dspace.dir I get:

[EMAIL PROTECTED] logs]$ grep -R "dspace.dir" /home/dspace/config/*
/home/dspace/config/dspace.cfg:dspace.dir = /home/dspace
/home/dspace/config/dspace.cfg:# log.init.config =
${dspace.dir}/config/log4j.xml
/home/dspace/config/dspace.cfg:# log.init.config =
${dspace.dir}/config/log4j-console.properties
/home/dspace/config/dspace.cfg:#authentication.x509.ca.cert =
${dspace.dir}/config/MyClientCA.pem
/home/dspace/config/templates/apache13.conf:  #SSLCertificateFile
@@dspace.dir@@/etc/https-server-cert.crt
/home/dspace/config/templates/apache13.conf:  SSLCertificateFile
@@dspace.dir@@/etc/dspace.pem
/home/dspace/config/templates/apache13.conf:  #SSLCertificateKeyFile
@@dspace.dir@@/etc/https-key.pem

Help please what have I missed??

Thanks in advance :)

Clive




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace 1.5 upgrade and JAR files

2008-08-09 Thread Clive Gould
Hi

In earlier upgrades of DSpace it was necessary to copy over the PostgreSQL
and Handle server JAR files from the previous version.

The upgrade documentation that comes packaged with DSpace 1.5 doesn't
include this step.

Has the new build process removed the need for this step?

Thanks very much

Clive

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problems with modjk2 and dspace 1.5

2008-08-07 Thread Clive Gould
Hi

I have been trying out a DSpace 1.5 upgrade on our test server.

We currently use modjk2 with Apache so that Tomcat is available via port
80 instead of 8080.

I am having problems getting this to work with Dspace 1.5. modjk2 is
looking for a subdirectory called dspace/tomcat/webapps/dspace. This
subdirectory doesn't appear to exist with 1.5 when I've copied over the
dspace/webapps folder.

Help what am I doing wrong??

Thanks

Clive




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Easy to follow guide to updating from 1.4.x to 1.5 (Stuart Lewis)

2008-07-30 Thread Clive Gould
Hi Stuart

Thanks for the information on DSpace update documentation :)

I have spent some time looking into updating and have concluded that it is
impracticable for us to upgrade our production server from DSpace 1.4.2 to
1.5 at this moment, because of our need for RADIUS authentication.

Mark Diggory has kindly now started work on a RADIUS module for the new
Authentication stack, but it will take time to complete. It looks as if
Marcelo Rodrigues who developed the RADIUS module for DSpace 1.4.2 has
moved on and I am hoping his co-worker Rui Ramos (or someone else?) will
be able to take this forward.

I'd be happy to try out any RADIUS authentication modules on our DSpace
1.5 test server.

Best wishes

Clive

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Easy to follow guide to updating from 1.4.x to 1.5

2008-07-28 Thread Clive Gould
Hi

1) Does anyone know of an EASY to follow guide to updating from DSpace
1.4.2 to 1.5 on Linux? Once I've done it I intend to publish my own
experiences on http://www.linuxtraining.org.uk/blogger.html

2) Does anyone know if the RADIUS authentication method which worked with
1.4.2 will work with 1.5? i.e. have there been any changes to
authentication mechanisms with the latest version?

Thanks very much

Clive

Clive Gould
Bromley College


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help: Missing ePersons!

2008-07-17 Thread Clive Gould
Hi everyone

Just to let you know I solved the problem with the missing ePersons.

It turned out that there were four incomplete registrations in the eperson
table containing all NULL fields.

On removing these all was fine again :)

Best wishes

Clive


--

Message: 3
Date: Wed, 16 Jul 2008 13:27:00 +0100 (BST)
From: Clive Gould <[EMAIL PROTECTED]>
Subject: [Dspace-tech] Help: Missing ePersons!
To: dspace-tech@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;charset=iso-8859-1

Hi

I am having trouble with missing ePersons.

If I log into DSpace 1.4.2 as admin and choose Administer EPeople > Select
E-Person I get a list containing a total of 32 names.

If I log in using phpPgAdmin and view the epersons table I can see 79
entries, all bar 6 of whom have can_log_in set to TRUE.

Any idea why I am getting this discrepancy?

Would upgrading solve this problem??

Thanks very much

Clive



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: Missing ePersons!

2008-07-16 Thread Clive Gould
Hi

I am having trouble with missing ePersons.

If I log into DSpace 1.4.2 as admin and choose Administer EPeople > Select
E-Person I get a list containing a total of 32 names.

If I log in using phpPgAdmin and view the epersons table I can see 79
entries, all bar 6 of whom have can_log_in set to TRUE.

Any idea why I am getting this discrepancy?

Would upgrading solve this problem??

Thanks very much

Clive









-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: filter-media error

2008-05-14 Thread Clive Gould
Hi

When I run the ./filter-media script in DSpace 1.4.2 all is well apart
from one MS Word document that logs the following error:

ERROR filtering, skipping bitstream #461 java.util.NoSuchElementException
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:427)
at
org.textmining.text.extraction.WordExtractor.extractText(WordExtractor.java:150)
at
org.dspace.app.mediafilter.WordFilter.getDestinationStream(WordFilter.java:97)
at
org.dspace.app.mediafilter.MediaFilter.processBitstream(MediaFilter.java:155)
at
org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:327)
at
org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:296)
at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:266)
at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:234)
at
org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:185)

I've tried expunging the item and the error goes away. When I re-upload
the MS Word file the error reappears and is associated with the new
bitstream.

Suggestions welcomed.

Thanks

Clive



-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Help: Filter-all error message

2008-05-07 Thread Clive Gould
Hi

When I check my mail I am getting the folowing error when processing just
one of the bitstreams when /bin/filter-media runs:

ERROR filtering, skipping bitstream #461 java.util.NoSuchElementException
java.util.NoSuchElementException
   at java.util.AbstractList$Itr.next(AbstractList.java:427)
   at
org.textmining.text.extraction.WordExtractor.extractText(WordExtractor.java:150)
   at
org.dspace.app.mediafilter.WordFilter.getDestinationStream(WordFilter.java:97)
   at
org.dspace.app.mediafilter.MediaFilter.processBitstream(MediaFilter.java:155)
   at
org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:327)
   at
org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:296)
   at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:266)
   at
org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:234)
   at
org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:185)

All the other bitsreams filter correctly.

Does anyone know what might be wrong here?

Thanks very much

Clive

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] RADIUS Authentication

2008-04-22 Thread Clive Gould
Hi

I have RADIUS authentication working with DSpace 1.42

Does anyone have the RADIUS module working with with DSpace 1.5 yet?

Thanks

Clive

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Viruses and DSpace

2007-11-16 Thread Clive Gould
Hi Larry

I use ClamAV to check the uploaded files by running the following Linux
BASH shell script as a cron task once a day:

echo "Dspace anti-virus scan"
/usr/local/bin/clamscan --infected -r /home/dspace/assetstore

Good luck

Clive


> Message: 2
> Date: Fri, 16 Nov 2007 4:08:01 EST
> From: Larry Stone <[EMAIL PROTECTED]>
> Subject: Re: [Dspace-tech] Viruses and DSpace
> To: "Blanco, Jose" <[EMAIL PROTECTED]>
> Cc: dspace-tech@lists.sourceforge.net
> Message-ID: <[EMAIL PROTECTED]>
>
>> Has any thought been given to how Dspace might handle the remote (
>> hopefully ) possibility of a file containing a virus being deposited
>> into a repository?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Help - Internal Server Error on viewing Eperson solved

2007-10-09 Thread Clive Gould
Hi

I've just solved the problem thanks to a previous posting on this list.

I use RADIUS authentication and there was an incomplete registration in
the eperson table i.e. NULL

Using phpPgAdmin I removed the corresponding entry in the eperson2group
table and then deleted the NULL entry in the eperson table and then all
was well :-)))

Clive


> Help - as dspace-admin I have tried to view the list of users (epeople) on
> the server this morning and I get an internal server error.
>
> I have appended the relevant log entry to this email.
>
> Can anyone please advise me what is wrong and what I need to do to correct
> this?
>
> Thanks very much
>
> Clive Gould
> Bromley College
>
>
> 2007-10-10 06:33:57,759 WARN
> org.dspace.app.webui.servlet.InternalErrorServlet @
> :session_id=10BD6C8CDBB11C85E09C09D9E4B6D0B9:internal_error:-- URL Was:
> http://vle.bromley.ac.u
> k/dspace/tools/eperson-list?multiple=false
> -- Method: GET
> -- Parameters were:
> -- multiple: "false"
>
> java.lang.NullPointerException
> at
> org.apache.jsp.tools.eperson_002dlist_jsp._jspService(org.apache.jsp.tools.eperson_002dlist_jsp:434)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> at
> org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)
> at
> org.dspace.app.webui.servlet.admin.EPersonListServlet.doDSGet(EPersonListServlet.java:110)
> at
> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:151)
> at
> org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
> at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
> at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
> at
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
>
>


-
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] Help - Internal Server Error on viewing Eperson

2007-10-09 Thread Clive Gould
Help - as dspace-admin I have tried to view the list of users (epeople) on
the server this morning and I get an internal server error.

I have appended the relevant log entry to this email.

Can anyone please advise me what is wrong and what I need to do to correct
this?

Thanks very much

Clive Gould
Bromley College


2007-10-10 06:33:57,759 WARN 
org.dspace.app.webui.servlet.InternalErrorServlet @
:session_id=10BD6C8CDBB11C85E09C09D9E4B6D0B9:internal_error:-- URL Was:
http://vle.bromley.ac.u
k/dspace/tools/eperson-list?multiple=false
-- Method: GET
-- Parameters were:
-- multiple: "false"

java.lang.NullPointerException
at
org.apache.jsp.tools.eperson_002dlist_jsp._jspService(org.apache.jsp.tools.eperson_002dlist_jsp:434)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)
at
org.dspace.app.webui.servlet.admin.EPersonListServlet.doDSGet(EPersonListServlet.java:110)
at
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:151)
at
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


-
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] Any definitive guide to setting up handle server? (Dan Scott)

2007-09-07 Thread Clive Gould
Hi

Have a look at http://www.linuxtraining.org.uk/blogger.html

For my experiences getting the handle server working.

Good luck

Clive


-
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] Help - Extra character appearing in HTML document

2007-08-30 Thread Clive Gould
I've uploaded an HTML page into DSpace> When the page stored in DSpace is
viewed from Internet Explorer under Win 2K or Firefox under CentOS 4.5
instead of a space character I am sometimes getting a capital A with a ^
on top of it. This is listed as  in utf8.

Any suggestions why these extra characters might be sometimes appearing in
the body of the HTML document? (

-
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] How to view advanced policies

2007-08-23 Thread Clive Gould
Hi

I've been experimenting with the Advanced Policy Manager, which allows you
to do wildcard additions to and clearing of policies for types of content
contained in a collection.

I can see how it can be used to Add and Clear policies but is there any
way of viewing the advanced policies associated with a collection once
they have been set?

Thanks

Clive



-
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] Collection Administration Rights and Bitstreams

2007-08-22 Thread Clive Gould
Hi

I understand that a DSpace collection administrator has the following rights:

- add and delete submitters

- edit metadata

- withdraw items

- map items from other collections

Is there any way that a collection administrator can be allowed to edit
the bitsteams asssociated with an item within the collection?

It would be useful to allow this for an item that changed content fairly
regularly (e.g. Video Collection), so it kept the same metadata and handle
reference.

Thanks very much

Clive


-
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] RADIUS authentication in DSpace

2007-08-07 Thread Clive Gould
Hi everyone

I've included a section in my DSpace blog explaining how I got DSpace
Radius authentication working with MS AD via a Freeradius proxy.

http://www.linuxtraining.org.uk/blogger.html#twentyfive

Best wishes

Clive


-
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] OAI harvesting of restricted access DSpace collections

2007-08-07 Thread Clive Gould
Hi

Came across this statement on the DSpace Web site referring to DSpace 1.3.2

Is the content still true for Dspace 1.4.2 ???

Thanks

Clive


"Access control
OAI provides no authentication/authorisation details, although these could
be implemented using standard HTTP methods. It is assumed that all access
will be anonymous for the time being.

A question is, "is all metadata public?" Presently the answer to this is
yes; all metadata is exposed via OAI-PMH, even if the item has restricted
access policies. The reasoning behind this is that people who do actually
have permission to read a restricted item should still be able to use
OAI-based services to discover the content.

If in the future, this 'expose all metadata' approach proves
unsatisfactory for any reason, it should be possible to expose only
publicly readable metadata. The authorisation system has separate
permissions for READing and item and READing the content (bitstreams)
within it. This means the system can differentiate between an item with
public metadata and hidden content, and an item with hidden metadata as
well as hidden content. In this case the OAI data repository should only
expose items those with anonymous READ access, so it can hide the
existence of records to the outside world completely. In this scenario,
one should be wary of protected items that are made public after a time.
When this happens, the items are "new" from the OAI-PMH perspective."




-
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] Help - is automatic group membership possible ?

2007-08-02 Thread Clive Gould
Hi

I'm currently successfully using Marcelo's RADIUS Module to authenticate
DSpace under Linux against MS AD via Windows IAS. i.e.

DSpace <-> Freeradius <-> IAS <-> AD

I seem to recall reading somewhere that it is possible for users who are
authorised by LDAP and auto-registered by DSpace to be automatically added
to a group in DSpace at the same time as they are registered.

Is this possible with LDAP authentication?

If yes, is this also possible with RADIUS authentication??

Thanks very much

Clive

Clive Gould
HE PAL ICT
Bromley College






-
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] DSpace and RADIUS Authentication

2007-07-09 Thread Clive Gould
Hi

I came across the RAM - RADIUS authentication module on the DSpace wiki.

This is just what we need, but the documentation is all in Portuguese?

Has anyone implemented this and can explain in English what needs to be done?

Thanks very much

Clive



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Upgrade to DSpace 1.4.2

2007-05-21 Thread Clive Gould
Hi

Just to let you know I have just successfully upgraded our small
experimental repository from DSpace 1.4.1 to DSpace 1.4.2

The process was very straightforward and I encountered no problems.

As usual, I have published details of the upgrade procedure I followed on
my blog at:

http://www.linuxtraining.org.uk/blogger.html#twentyfour

Please let me know if you spot any errors or omissions in the published
upgrade procedure.

Thanks to the DSpace development team yet again for an excellent product :-)

Clive

Clive Gould
HE PAL ICT
Bromley College

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


  1   2   >