Re: [Dspace-tech] More enterprise deployment questions

2014-01-24 Thread Tim Donohue
Hi Andrew,

On 1/24/2014 2:46 PM, Andrew Reid wrote:
>Huh.  This is not working for me -- I have a testing installation
> with the default Mirage theme, and I am adding the lines from
> your comment directly in Mirage/sitemap.xmap, rather than
> rebuilding the app -- I mention this because it might be
> part of the issue.
>
>I may be using weird errors, too, my testing URL is
> "/dspace/xmlui/static/wrong.html", or
> "/dspace/xmlui/static/wrong.js" -- they give different
> errors, the former gives a "ResourceNotound" with a big
> long Cocoon back-trace, and the second one gives a
> NullPointerException, with a very short Cocoon back-trace.
>
>Modifying Mirage/sitemap.xmap did not change this
> behavior -- I double-checked that the additional handle-errors
> map is *inside* the map:pipelines tag and *outside* any of the
> other map:item tag-pairs.
>
>Are my errors too weird?  Am I actually getting *two* errors
> somehow?  Vandalizing the top-level sitemap.xml
> is starting to look like the near-term solution, but I'd be
> willing to invest a bit more effort in a nicer answer.

I'm probably going to need more info. It sounds like our two setups are 
different in some waythough admittedly, all of this work is 
extremely new (working on it *today*). So maybe I've overlooked 
something too.

What does the URL to your DSpace homepage look like? Is it 
/dspace/xmlui/?

Also, what happens if you remove the /static/ subpath? (That actually 
*IS* a valid subpath in DSpace, and there's some "special logic" to deal 
with that subpath which could be causing issues here.)

In any case, here's what works for me (on DSpace 4.0, but it should be 
the same for 3.2). In the example below "[dspace.dir]" represents the 
directory where DSpace is *installed*.

1. For me, Tomcat is loading the DSpace XMLUI from 
[dspace.dir]/webapps/xmlui/ (it's a completely fresh install of DSpace 4)

2. Create an "error.html" under 
[dspace.dir]/webapps/xmlui/themes/Mirage/ (making sure it's obviously 
readable to Tomcat)

3. Modify the "sitemap.xmap" under 
[dspace.dir]/webapps/xmlui/themes/Mirage/  For a simple test just add this:





   








   
   

   


4. You may need to restart Tomcat (depending on your settings)

5. Finally, test some invalid URLs.  For me, DSpace XMLUI is running 
directly at "http://localhost:8080";.  So, all of these invalid URLs show 
me the "error.html" contents:

 http://localhost:8080/asdfasdf
 http://localhost:8080/not/a/valid/path
 http://localhost:8080/also/not/valid.html
 http://localhost:8080/handle/not/valid
 http://localhost:8080/asdfsdf.js

But, I can still load valid DSpace URLs like:

 http://localhost:8080/   (DSpace homepage for me)
 http://localhost:8080/community-list (Community listing)

I'm not sure if that helps at all. But, hopefully it gives you all the 
steps.  Obviously I've simplified the  setting (from 
the more complete example in DS-1596).

- Tim


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Diacritics and DSpace 4.0 and 3.1

2014-01-24 Thread helix84
You'll probably want to. They vary a little across Tomcat versions. Look in
their Tomcat docs to see what they mean.
On Jan 24, 2014 9:56 PM, "Thomas Misilo"  wrote:

>
>
> Does your Tomcat's *AJP*  include the
> URIEncoding="UTF-8" attribute?
>
>
>
> No it didn’t. Now it works!
>
> Should I have all the attributes that are on the tomcat port 8080
> settings, on the AJP connector as well?
>
> Thanks!
>
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Diacritics and DSpace 4.0 and 3.1

2014-01-24 Thread Thomas Misilo


Does your Tomcat's *AJP*  include the
URIEncoding="UTF-8" attribute?



No it didn’t. Now it works!

Should I have all the attributes that are on the tomcat port 8080 settings, on 
the AJP connector as well?

Thanks!
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Diacritics and DSpace 4.0 and 3.1

2014-01-24 Thread helix84
Does your Tomcat's *AJP*  include the
URIEncoding="UTF-8" attribute?
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] More enterprise deployment questions

2014-01-24 Thread Andrew Reid
On Fri, Jan 24, 2014 at 01:58:53PM -0600, Tim Donohue wrote:
> Hi Andrew,
> 
> On 1/24/2014 12:35 PM, Andrew Reid wrote:
> >   Thanks, this looks useful -- I take it that I can just make the
> >suggested changes, and/but don't have to remove the error-handling
> >stuff from sitemap.xmap?
> 
> That is correct.  The static error page "workaround" suggested in
> https://jira.duraspace.org/browse/DS-1596 will actually *override*
> the default error-handling stuff in the main sitemap.xmap.
> 
> So, you can (and should) leave those defaults in place. That way, if
> your static HTML error page was ever accidentally inaccessible (e.g.
> it was accidentally moved/deleted/permissions wrong), then the
> default (not so pretty) DSpace error page would take back over.

  Huh.  This is not working for me -- I have a testing installation
with the default Mirage theme, and I am adding the lines from
your comment directly in Mirage/sitemap.xmap, rather than 
rebuilding the app -- I mention this because it might be 
part of the issue.

  I may be using weird errors, too, my testing URL is 
"/dspace/xmlui/static/wrong.html", or 
"/dspace/xmlui/static/wrong.js" -- they give different
errors, the former gives a "ResourceNotound" with a big
long Cocoon back-trace, and the second one gives a 
NullPointerException, with a very short Cocoon back-trace. 
  
  Modifying Mirage/sitemap.xmap did not change this
behavior -- I double-checked that the additional handle-errors
map is *inside* the map:pipelines tag and *outside* any of the
other map:item tag-pairs. 

  Are my errors too weird?  Am I actually getting *two* errors 
somehow?  Vandalizing the top-level sitemap.xml
is starting to look like the near-term solution, but I'd be
willing to invest a bit more effort in a nicer answer.

-- A.
-- 
Dr. Andrew C. E. Reid
Physical Scientist, Computer Operations Administrator
Center for Theoretical and Computational Materials Science
National Institute of Standards and Technology, Mail Stop 8555
Gaithersburg MD 20899 USA
andrew.r...@nist.gov

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Diacritics and DSpace 4.0 and 3.1

2014-01-24 Thread Thomas Misilo
I think it may have to be my using of apache and ajp_proxy, as when I go 
directly to the port the text doesn't get all garbaled, and I am able to 
successfully browse by author.

Any ideas on what I might need to change for apache?

Thanks!

Tom
> 
> >Ok, wait...
> >we are not talking about the browse system but about the navigation of
> the facets in the xmlui https://dspace-test.lib.fit.edu/search-
> filter?field=author&starts_with=baksay
> >anyway, unsurprising also the browse doesn't work https://dspace-
> test.lib.fit.edu/browse?value=Baksay%2C+L%C3%A1szl%C3%B3+A.&type=a
> uthor
> 
> >but looking to the URL it looks correct so the issue need to be on the
> "rendering / receiving" side.
> >Also the URIEncoding of tomcat/apache look good as searching for László
> produce the right results.
> >So my guess is that there are some bugs in the xml transformer or other
> view component.
> >Do you run also jspui on the same server?
> >Andrea
> 
> 
> I just turned on jspui:
> https://dspace-test.lib.fit.edu/jspui/simple-
> search?query=Baksay%2C+L%C3%A1szl%C3%B3+A
> 
> 
> 
> --
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.c
> lktrk
> ___
> 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
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] More enterprise deployment questions

2014-01-24 Thread Tim Donohue
Hi Andrew,

On 1/24/2014 12:35 PM, Andrew Reid wrote:
>Thanks, this looks useful -- I take it that I can just make the
> suggested changes, and/but don't have to remove the error-handling
> stuff from sitemap.xmap?

That is correct.  The static error page "workaround" suggested in 
https://jira.duraspace.org/browse/DS-1596 will actually *override* the 
default error-handling stuff in the main sitemap.xmap.

So, you can (and should) leave those defaults in place. That way, if 
your static HTML error page was ever accidentally inaccessible (e.g. it 
was accidentally moved/deleted/permissions wrong), then the default (not 
so pretty) DSpace error page would take back over.

- Tim

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] More enterprise deployment questions

2014-01-24 Thread Andrew Reid
On Fri, Jan 24, 2014 at 12:11:38PM -0600, Tim Donohue wrote:
> Hi Andrew (and all),
> 
> A followup on your custom error page question:
> 
> After digging into the code again today, I just figured out a
> workaround where you *can* use a static HTML error page.
> 
> I've described it in this comment on DS-1596:
> https://jira.duraspace.org/browse/DS-1596?focusedCommentId=32607

  Thanks, this looks useful -- I take it that I can just make the
suggested changes, and/but don't have to remove the error-handling
stuff from sitemap.xmap?

  It looks much better than vandalizing the exception2html.xslt 
stylesheet, and for my case specifically, having the changes
be in the theme directory is handy, since that's where my
other customizations already live.

-- A.

  
> I also now have a theory for how we *should* be able to fix this in
> DSpace so that your DSpace theme is applied. But, I think that'll
> take a bit more time to implement, so for now, the workaround should
> be "good enough" for your needs.
> 
> - Tim
> 
> On 1/24/2014 10:58 AM, Tim Donohue wrote:
> >Hi Andrew,
> >
> >On 1/23/2014 5:28 PM, Andrew Reid wrote:
> >>>   I have two new requirements I have to try to comply with.
> >>>
> >>>   The first is, the security folks would like me to not expose
> >>>tracebacks when Java errors occur.  I have followed various
> >>>web guidelines for redirecting errors to a static error page, but
> >>>I can't seem to figure out how to get dspace/xmlui to direct to it.
> >>>
> >>>   I put the error page in static/error.html, and when I manually
> >>>go to "/dspace/xmlui/error.html", I see my content.
> >>>
> >>>   I then added this stanza:
> >>>
> 
> java.lang.Throwable
> /error.html
> 
> >>>
> >>>   ... to the web.xml file under WEB-INF for the dspace xmlui web app.
> >>>
> >>>   The result of this is that I get "HTTP Status 404" from Tomcat
> >>>for any nontrivial dspace/xmlui URL, including the log-in page.
> >>>(The static URL dspace/xmlui/error.html still works, though!)
> >
> >This is actually a tough one. It sounds directly related to a known bug:
> >https://jira.duraspace.org/browse/DS-1596
> >
> >By default, Apache Cocoon (which DSpace XMLUI uses) is capturing &
> >handling any errors. This is controlled in the sitemap.xmap:
> >https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap#L684
> >
> >
> >By default, what happens is that DSpace XMLUI reformats the Cocoon XML
> >error via the included "exception2html.xslt":
> >https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/exception2html.xslt
> >
> >
> >This 'exception2html.xslt' is what creates the ugly Java stacktrace
> >error page. So, you could directly modify this XSLT to change the look
> >of the error page (and also hide the Java stacktrace).
> >
> >Unfortunately, because Cocoon is catching the error, I'm not sure it is
> >being properly passed up to Tomcat (which might be what you are seeing,
> >it's hard to tell). For DSpace, we actually had to manually apply a
> >patch to Apache Cocoon to get it to even properly throw HTTP 404 Error
> >Codes (as the latest version of Cocoon doesn't do it properly).
> >Essentially, I suspect part of the problem here is in Apache Cocoon (but
> >admittedly it's been a while since I've been able to dig in deeply
> >here).  There's more background info on XMLUI error page issues in that
> >ticket I've linked above.
> >
> >If you (or anyone else listening in) manage to find a better solution, I
> >think we'd all like to hear it!
> >
> >
> >>>   The second requirement is, I have been asked to turn off password
> >>>autocomplete.  This involves setting 'autocomplete="off"' in the
> >>>log-in form, but I am having some difficulty navigating the
> >>>code-base -- I'm looking for a low-intervention way of doing this,
> >>>to avoid having "my" DSpace being too different from the upstream,
> >>>and ideally would like to do this *just* for the LDAP log-in form.
> >>>
> >>>   Is there a simple way to do this, or should I just keep looking?
> >
> >In the XMLUI, the actual HTML is generated via the XSLTs in the theme
> >you are using. So, the answer to this depends on your *theme*.
> >
> >By default, DSpace XMLUI uses the "Mirage" theme, which itself loads up
> >the 'dr2xhtml-alt' base theme for most of the basic XSLT stylesheets.
> >
> >If you are using Mirage / dri2xhtml-alt, then the XSLT template which
> >creates *all* forms can be found here:
> >
> >https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/core/elements.xsl#L90
> >
> >
> >If you *only* want to set "autocomplete='off'" for the LDAP login form,
> >you likely could add a simple "xsl:if" into this template...something like:
> >
> >
> >   ...
> >   
> >  off
> >   
> >   ...
> >
> >
> >NOTE: I'm *guessing* at the proper @id value here. I don't have an LDAP
> >enabled site to look at. But, you should be able to find the @id valu

Re: [Dspace-tech] More enterprise deployment questions

2014-01-24 Thread Tim Donohue
Hi Andrew (and all),

A followup on your custom error page question:

After digging into the code again today, I just figured out a workaround 
where you *can* use a static HTML error page.

I've described it in this comment on DS-1596:
https://jira.duraspace.org/browse/DS-1596?focusedCommentId=32607

I also now have a theory for how we *should* be able to fix this in 
DSpace so that your DSpace theme is applied. But, I think that'll take a 
bit more time to implement, so for now, the workaround should be "good 
enough" for your needs.

- Tim

On 1/24/2014 10:58 AM, Tim Donohue wrote:
> Hi Andrew,
>
> On 1/23/2014 5:28 PM, Andrew Reid wrote:
>>>I have two new requirements I have to try to comply with.
>>>
>>>The first is, the security folks would like me to not expose
>>> tracebacks when Java errors occur.  I have followed various
>>> web guidelines for redirecting errors to a static error page, but
>>> I can't seem to figure out how to get dspace/xmlui to direct to it.
>>>
>>>I put the error page in static/error.html, and when I manually
>>> go to "/dspace/xmlui/error.html", I see my content.
>>>
>>>I then added this stanza:
>>>
 
 java.lang.Throwable
 /error.html
 
>>>
>>>... to the web.xml file under WEB-INF for the dspace xmlui web app.
>>>
>>>The result of this is that I get "HTTP Status 404" from Tomcat
>>> for any nontrivial dspace/xmlui URL, including the log-in page.
>>> (The static URL dspace/xmlui/error.html still works, though!)
>
> This is actually a tough one. It sounds directly related to a known bug:
> https://jira.duraspace.org/browse/DS-1596
>
> By default, Apache Cocoon (which DSpace XMLUI uses) is capturing &
> handling any errors. This is controlled in the sitemap.xmap:
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap#L684
>
>
> By default, what happens is that DSpace XMLUI reformats the Cocoon XML
> error via the included "exception2html.xslt":
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/exception2html.xslt
>
>
> This 'exception2html.xslt' is what creates the ugly Java stacktrace
> error page. So, you could directly modify this XSLT to change the look
> of the error page (and also hide the Java stacktrace).
>
> Unfortunately, because Cocoon is catching the error, I'm not sure it is
> being properly passed up to Tomcat (which might be what you are seeing,
> it's hard to tell). For DSpace, we actually had to manually apply a
> patch to Apache Cocoon to get it to even properly throw HTTP 404 Error
> Codes (as the latest version of Cocoon doesn't do it properly).
> Essentially, I suspect part of the problem here is in Apache Cocoon (but
> admittedly it's been a while since I've been able to dig in deeply
> here).  There's more background info on XMLUI error page issues in that
> ticket I've linked above.
>
> If you (or anyone else listening in) manage to find a better solution, I
> think we'd all like to hear it!
>
>
>>>The second requirement is, I have been asked to turn off password
>>> autocomplete.  This involves setting 'autocomplete="off"' in the
>>> log-in form, but I am having some difficulty navigating the
>>> code-base -- I'm looking for a low-intervention way of doing this,
>>> to avoid having "my" DSpace being too different from the upstream,
>>> and ideally would like to do this *just* for the LDAP log-in form.
>>>
>>>Is there a simple way to do this, or should I just keep looking?
>
> In the XMLUI, the actual HTML is generated via the XSLTs in the theme
> you are using. So, the answer to this depends on your *theme*.
>
> By default, DSpace XMLUI uses the "Mirage" theme, which itself loads up
> the 'dr2xhtml-alt' base theme for most of the basic XSLT stylesheets.
>
> If you are using Mirage / dri2xhtml-alt, then the XSLT template which
> creates *all* forms can be found here:
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/core/elements.xsl#L90
>
>
> If you *only* want to set "autocomplete='off'" for the LDAP login form,
> you likely could add a simple "xsl:if" into this template...something like:
>
> 
>...
>
>   off
>
>...
> 
>
> NOTE: I'm *guessing* at the proper @id value here. I don't have an LDAP
> enabled site to look at. But, you should be able to find the @id value
> by browsing to your LDAP login page, and adding "?XML" on the end of the
> URL.  What you will then see is the underlying XML of that page (which
> the XSLT then transforms to XHTML obviously).  You want to find the
> value of the @id attribute on the "" (that XML
>  tag gets changed to an HTML  tag).
>
> Hopefully that helps!
> - Tim

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or St

Re: [Dspace-tech] Making Changes to User Accounts

2014-01-24 Thread Ingram, William A
Well in that case, you're in luck. Just tell your IT guy that he just needs to 
change the 'email' attribute on the 'eperson' table. He should be able to do 
that in a few minutes.

Cheers!

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman [mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 11:51 AM
To: Ingram, William A
Cc: Hilton Gibson; dspace-tech
Subject: Re: [Dspace-tech] Making Changes to User Accounts

Actually what you did is exactly what we are running into.  The e-mail server 
has changed but the only aspect of the e-mail that has changed is the domain 
name (@my.bridgeport.edu vs. 
@bridgeport.edu).

On Fri, Jan 24, 2014 at 12:47 PM, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
We had a similar problem a few years ago. But ours was easy, we only changed 
domain names. We went from everyone having a @uiuc.edu address 
to @illinois.edu, but the user names stayed the same 
(e.g., f...@uiuc.edu => 
f...@illinois.edu).

But if you're going from f...@bar.edu => 
b...@baz.edu, then that's a much harder problem.

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Hilton Gibson 
[mailto:hilton.gib...@gmail.com]
Sent: Friday, January 24, 2014 11:38 AM
To: Ingram, William A
Cc: Matthew Sherman; dspace-tech

Subject: Re: [Dspace-tech] Making Changes to User Accounts

I agree with Bill about modifying the database directly. Maybe somebody on the 
list is willing to craft a SQL query for you for some sort of compensation 
perhaps?

Cheers

hg

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 
4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson

On 24 January 2014 19:33, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
I know how to do it with PostgreSQL.

pg_dump dspace > dspace_dump.sql
# make your changes; then
psql dspace < dspace_dump.sql

That's basically it. There are other ways around the problem as well, maybe 
better ones.

Read this for more info:
http://www.postgresql.org/docs/9.3/interactive/backup-dump.html

Use the --table option on pg_dump to isolate the eperson table.
Probably something like this:
pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql

See:
http://www.postgresql.org/docs/9.3/static/app-pgdump.html


Make sure to back up your db first!

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman 
[mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 11:16 AM
To: Ingram, William A
Cc: dspace-tech
Subject: Re: [Dspace-tech] Making Changes to User Accounts

Is there a way to export this data make that change?  I am a little fuzzy on 
the process.

On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
I think this depends on whether or not you have a mapping from old e-mail to 
new e-mail. Or better yet, a method from going from old to new; i.e., f(old) = 
new. If so, can use this method on the e-mail field of the eperson table. That 
should do it.


Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman 
[mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 10:15 AM
To: dspace-tech
Subject: [Dspace-tech] Making Changes to User Accounts

Hello,
I am hoping someone can give me some insights on an issue we are hoping to head 
off.  Over the summer our University changed e-mail servers and now students 
have a different e-mail address than they did last year.  The problem is DSpace 
does not reflect this change in the user accounts since the e-mail is set when 
an account is first created.  We are concerned this will be a problem in a few 
months when they turn off the old server.  Does anyone know a way we can bulk 
edit the e-mails in the user accounts so we can head off any submission or 
subscription e-mail issues?  Any insights would be appreciated as I have not 
been able to find any documentation online that can tell me how to fix this 
without changing everyone directly in the XMLUI.  Thanks for your time.

Matt Sherman


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or St

Re: [Dspace-tech] Making Changes to User Accounts

2014-01-24 Thread Matthew Sherman
Actually what you did is exactly what we are running into.  The e-mail
server has changed but the only aspect of the e-mail that has changed is
the domain name (@my.bridgeport.edu vs. @bridgeport.edu).


On Fri, Jan 24, 2014 at 12:47 PM, Ingram, William A
wrote:

>  We had a similar problem a few years ago. But ours was easy, we only
> changed domain names. We went from everyone having a @uiuc.edu address to
> @illinois.edu, but the user names stayed the same (e.g., f...@uiuc.edu =>
> f...@illinois.edu).
>
>
>
> But if you’re going from f...@bar.edu => b...@baz.edu, then that’s a much
> harder problem.
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Hilton Gibson [mailto:hilton.gib...@gmail.com]
> *Sent:* Friday, January 24, 2014 11:38 AM
> *To:* Ingram, William A
> *Cc:* Matthew Sherman; dspace-tech
>
> *Subject:* Re: [Dspace-tech] Making Changes to User Accounts
>
>
>
> I agree with Bill about modifying the database directly. Maybe somebody on
> the list is willing to craft a SQL query for you for some sort of
> compensation perhaps?
>
>
>
> Cheers
>
>
>
> hg
>
>
>   *Hilton Gibson*
>
> Ubuntu Linux Systems Administrator
>
> JS Gericke Library
>
> Room 1025D
>
> Stellenbosch University
>
> Private Bag X5036
>
> Stellenbosch
>
> 7599
>
> South Africa
>
>
>
> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>
> http://scholar.sun.ac.za
>
> http://bit.ly/goodir
>
> http://library.sun.ac.za
>
> http://za.linkedin.com/in/hiltongibson
>
>
>
> On 24 January 2014 19:33, Ingram, William A  wrote:
>
>   I know how to do it with PostgreSQL.
>
>
>
> pg_dump dspace > dspace_dump.sql
>
> # make your changes; then
>
> psql dspace < dspace_dump.sql
>
>
>
> That’s basically it. There are other ways around the problem as well,
> maybe better ones.
>
>
>
> Read this for more info:
>
> http://www.postgresql.org/docs/9.3/interactive/backup-dump.html
>
>
>
> Use the --table option on pg_dump to isolate the eperson table.
>
> Probably something like this:
>
> pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql
>
>
>
> See:
>
> http://www.postgresql.org/docs/9.3/static/app-pgdump.html
>
>
>
>
>
> Make sure to back up your db first!
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
> *Sent:* Friday, January 24, 2014 11:16 AM
> *To:* Ingram, William A
> *Cc:* dspace-tech
> *Subject:* Re: [Dspace-tech] Making Changes to User Accounts
>
>
>
> Is there a way to export this data make that change?  I am a little fuzzy
> on the process.
>
>
>
> On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A 
> wrote:
>
>   I think this depends on whether or not you have a mapping from old
> e-mail to new e-mail. Or better yet, a method from going from old to new;
> i.e., f(old) = new. If so, can use this method on the e-mail field of the
> eperson table. That should do it.
>
>
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
> *Sent:* Friday, January 24, 2014 10:15 AM
> *To:* dspace-tech
> *Subject:* [Dspace-tech] Making Changes to User Accounts
>
>
>
> Hello,
>
> I am hoping someone can give me some insights on an issue we are hoping to
> head off.  Over the summer our University changed e-mail servers and now
> students have a different e-mail address than they did last year.  The
> problem is DSpace does not reflect this change in the user accounts since
> the e-mail is set when an account is first created.  We are concerned this
> will be a problem in a few months when they turn off the old server.  Does
> anyone know a way we can bulk edit the e-mails in the user accounts so we
> can head off any submission or subscription e-mail issues?  Any insights
> would be appreciated as I have not been able to find any documentation
> online that can tell me how to fix this without changing everyone directly
> in the XMLUI.  Thanks for your time.
>
> Matt Sherman
>
>
>
>
>
> --
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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
>
>
>
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLin

Re: [Dspace-tech] Making Changes to User Accounts

2014-01-24 Thread Ingram, William A
We had a similar problem a few years ago. But ours was easy, we only changed 
domain names. We went from everyone having a @uiuc.edu address to 
@illinois.edu, but the user names stayed the same (e.g., 
f...@uiuc.edu => 
f...@illinois.edu).

But if you’re going from f...@bar.edu => 
b...@baz.edu, then that’s a much harder problem.

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Hilton Gibson [mailto:hilton.gib...@gmail.com]
Sent: Friday, January 24, 2014 11:38 AM
To: Ingram, William A
Cc: Matthew Sherman; dspace-tech
Subject: Re: [Dspace-tech] Making Changes to User Accounts

I agree with Bill about modifying the database directly. Maybe somebody on the 
list is willing to craft a SQL query for you for some sort of compensation 
perhaps?

Cheers

hg

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson

On 24 January 2014 19:33, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
I know how to do it with PostgreSQL.

pg_dump dspace > dspace_dump.sql
# make your changes; then
psql dspace < dspace_dump.sql

That’s basically it. There are other ways around the problem as well, maybe 
better ones.

Read this for more info:
http://www.postgresql.org/docs/9.3/interactive/backup-dump.html

Use the --table option on pg_dump to isolate the eperson table.
Probably something like this:
pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql

See:
http://www.postgresql.org/docs/9.3/static/app-pgdump.html


Make sure to back up your db first!

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman 
[mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 11:16 AM
To: Ingram, William A
Cc: dspace-tech
Subject: Re: [Dspace-tech] Making Changes to User Accounts

Is there a way to export this data make that change?  I am a little fuzzy on 
the process.

On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
I think this depends on whether or not you have a mapping from old e-mail to 
new e-mail. Or better yet, a method from going from old to new; i.e., f(old) = 
new. If so, can use this method on the e-mail field of the eperson table. That 
should do it.


Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman 
[mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 10:15 AM
To: dspace-tech
Subject: [Dspace-tech] Making Changes to User Accounts

Hello,
I am hoping someone can give me some insights on an issue we are hoping to head 
off.  Over the summer our University changed e-mail servers and now students 
have a different e-mail address than they did last year.  The problem is DSpace 
does not reflect this change in the user accounts since the e-mail is set when 
an account is first created.  We are concerned this will be a problem in a few 
months when they turn off the old server.  Does anyone know a way we can bulk 
edit the e-mails in the user accounts so we can head off any submission or 
subscription e-mail issues?  Any insights would be appreciated as I have not 
been able to find any documentation online that can tell me how to fix this 
without changing everyone directly in the XMLUI.  Thanks for your time.

Matt Sherman


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-t

Re: [Dspace-tech] Making Changes to User Accounts

2014-01-24 Thread Matthew Sherman
Thankfully we have a great IT guy who can help with a lot of this, but I
need to get ideas on what to do so he can focus on his plethora of
projects.  I am hoping this will help.  Thanks.


On Fri, Jan 24, 2014 at 12:38 PM, Hilton Gibson wrote:

> I agree with Bill about modifying the database directly. Maybe somebody on
> the list is willing to craft a SQL query for you for some sort of
> compensation perhaps?
>
> Cheers
>
> hg
>
> *Hilton Gibson*
> Ubuntu Linux Systems Administrator
> JS Gericke Library
> Room 1025D
> Stellenbosch University
> Private Bag X5036
> Stellenbosch
> 7599
> South Africa
>
> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
> http://scholar.sun.ac.za
> http://bit.ly/goodir
> http://library.sun.ac.za
> http://za.linkedin.com/in/hiltongibson
>
>
> On 24 January 2014 19:33, Ingram, William A  wrote:
>
>>  I know how to do it with PostgreSQL.
>>
>>
>>
>> pg_dump dspace > dspace_dump.sql
>>
>> # make your changes; then
>>
>> psql dspace < dspace_dump.sql
>>
>>
>>
>> That’s basically it. There are other ways around the problem as well,
>> maybe better ones.
>>
>>
>>
>> Read this for more info:
>>
>> http://www.postgresql.org/docs/9.3/interactive/backup-dump.html
>>
>>
>>
>> Use the --table option on pg_dump to isolate the eperson table.
>>
>> Probably something like this:
>>
>> pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql
>>
>>
>>
>> See:
>>
>> http://www.postgresql.org/docs/9.3/static/app-pgdump.html
>>
>>
>>
>>
>>
>> Make sure to back up your db first!
>>
>>
>>
>> Bill Ingram
>>
>> University of Illinois
>>
>> Urbana, IL 61801
>>
>> 217-333-4648
>>
>> wingr...@illinois.edu
>>
>>
>>
>> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
>> *Sent:* Friday, January 24, 2014 11:16 AM
>> *To:* Ingram, William A
>> *Cc:* dspace-tech
>> *Subject:* Re: [Dspace-tech] Making Changes to User Accounts
>>
>>
>>
>> Is there a way to export this data make that change?  I am a little fuzzy
>> on the process.
>>
>>
>>
>> On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A <
>> wingr...@illinois.edu> wrote:
>>
>>   I think this depends on whether or not you have a mapping from old
>> e-mail to new e-mail. Or better yet, a method from going from old to new;
>> i.e., f(old) = new. If so, can use this method on the e-mail field of the
>> eperson table. That should do it.
>>
>>
>>
>>
>>
>> Bill Ingram
>>
>> University of Illinois
>>
>> Urbana, IL 61801
>>
>> 217-333-4648
>>
>> wingr...@illinois.edu
>>
>>
>>
>> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
>> *Sent:* Friday, January 24, 2014 10:15 AM
>> *To:* dspace-tech
>> *Subject:* [Dspace-tech] Making Changes to User Accounts
>>
>>
>>
>> Hello,
>>
>> I am hoping someone can give me some insights on an issue we are hoping
>> to head off.  Over the summer our University changed e-mail servers and now
>> students have a different e-mail address than they did last year.  The
>> problem is DSpace does not reflect this change in the user accounts since
>> the e-mail is set when an account is first created.  We are concerned this
>> will be a problem in a few months when they turn off the old server.  Does
>> anyone know a way we can bulk edit the e-mails in the user accounts so we
>> can head off any submission or subscription e-mail issues?  Any insights
>> would be appreciated as I have not been able to find any documentation
>> online that can tell me how to fix this without changing everyone directly
>> in the XMLUI.  Thanks for your time.
>>
>> Matt Sherman
>>
>>
>>
>>
>> --
>> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>> Learn Why More Businesses Are Choosing CenturyLink Cloud For
>> Critical Workloads, Development Environments & Everything In Between.
>> Get a Quote or Start a Free Trial Today.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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
>>
>
>
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Making Changes to User Accounts

2014-01-24 Thread Hilton Gibson
I agree with Bill about modifying the database directly. Maybe somebody on
the list is willing to craft a SQL query for you for some sort of
compensation perhaps?

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson


On 24 January 2014 19:33, Ingram, William A  wrote:

>  I know how to do it with PostgreSQL.
>
>
>
> pg_dump dspace > dspace_dump.sql
>
> # make your changes; then
>
> psql dspace < dspace_dump.sql
>
>
>
> That’s basically it. There are other ways around the problem as well,
> maybe better ones.
>
>
>
> Read this for more info:
>
> http://www.postgresql.org/docs/9.3/interactive/backup-dump.html
>
>
>
> Use the --table option on pg_dump to isolate the eperson table.
>
> Probably something like this:
>
> pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql
>
>
>
> See:
>
> http://www.postgresql.org/docs/9.3/static/app-pgdump.html
>
>
>
>
>
> Make sure to back up your db first!
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
> *Sent:* Friday, January 24, 2014 11:16 AM
> *To:* Ingram, William A
> *Cc:* dspace-tech
> *Subject:* Re: [Dspace-tech] Making Changes to User Accounts
>
>
>
> Is there a way to export this data make that change?  I am a little fuzzy
> on the process.
>
>
>
> On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A 
> wrote:
>
>   I think this depends on whether or not you have a mapping from old
> e-mail to new e-mail. Or better yet, a method from going from old to new;
> i.e., f(old) = new. If so, can use this method on the e-mail field of the
> eperson table. That should do it.
>
>
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
> *Sent:* Friday, January 24, 2014 10:15 AM
> *To:* dspace-tech
> *Subject:* [Dspace-tech] Making Changes to User Accounts
>
>
>
> Hello,
>
> I am hoping someone can give me some insights on an issue we are hoping to
> head off.  Over the summer our University changed e-mail servers and now
> students have a different e-mail address than they did last year.  The
> problem is DSpace does not reflect this change in the user accounts since
> the e-mail is set when an account is first created.  We are concerned this
> will be a problem in a few months when they turn off the old server.  Does
> anyone know a way we can bulk edit the e-mails in the user accounts so we
> can head off any submission or subscription e-mail issues?  Any insights
> would be appreciated as I have not been able to find any documentation
> online that can tell me how to fix this without changing everyone directly
> in the XMLUI.  Thanks for your time.
>
> Matt Sherman
>
>
>
>
> --
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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
>
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Making Changes to User Accounts

2014-01-24 Thread Ingram, William A
I know how to do it with PostgreSQL.

pg_dump dspace > dspace_dump.sql
# make your changes; then
psql dspace < dspace_dump.sql

That's basically it. There are other ways around the problem as well, maybe 
better ones.

Read this for more info:
http://www.postgresql.org/docs/9.3/interactive/backup-dump.html

Use the --table option on pg_dump to isolate the eperson table.
Probably something like this:
pg_dump --table=eperson -E UNICODE -U dspace dspace > eperson_dump.sql

See:
http://www.postgresql.org/docs/9.3/static/app-pgdump.html


Make sure to back up your db first!

Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman [mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 11:16 AM
To: Ingram, William A
Cc: dspace-tech
Subject: Re: [Dspace-tech] Making Changes to User Accounts

Is there a way to export this data make that change?  I am a little fuzzy on 
the process.

On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A 
mailto:wingr...@illinois.edu>> wrote:
I think this depends on whether or not you have a mapping from old e-mail to 
new e-mail. Or better yet, a method from going from old to new; i.e., f(old) = 
new. If so, can use this method on the e-mail field of the eperson table. That 
should do it.


Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman 
[mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 10:15 AM
To: dspace-tech
Subject: [Dspace-tech] Making Changes to User Accounts

Hello,
I am hoping someone can give me some insights on an issue we are hoping to head 
off.  Over the summer our University changed e-mail servers and now students 
have a different e-mail address than they did last year.  The problem is DSpace 
does not reflect this change in the user accounts since the e-mail is set when 
an account is first created.  We are concerned this will be a problem in a few 
months when they turn off the old server.  Does anyone know a way we can bulk 
edit the e-mails in the user accounts so we can head off any submission or 
subscription e-mail issues?  Any insights would be appreciated as I have not 
been able to find any documentation online that can tell me how to fix this 
without changing everyone directly in the XMLUI.  Thanks for your time.

Matt Sherman

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Making Changes to User Accounts

2014-01-24 Thread Matthew Sherman
Is there a way to export this data make that change?  I am a little fuzzy
on the process.


On Fri, Jan 24, 2014 at 12:12 PM, Ingram, William A
wrote:

>  I think this depends on whether or not you have a mapping from old
> e-mail to new e-mail. Or better yet, a method from going from old to new;
> i.e., f(old) = new. If so, can use this method on the e-mail field of the
> eperson table. That should do it.
>
>
>
>
>
> Bill Ingram
>
> University of Illinois
>
> Urbana, IL 61801
>
> 217-333-4648
>
> wingr...@illinois.edu
>
>
>
> *From:* Matthew Sherman [mailto:matt.r.sher...@gmail.com]
> *Sent:* Friday, January 24, 2014 10:15 AM
> *To:* dspace-tech
> *Subject:* [Dspace-tech] Making Changes to User Accounts
>
>
>
> Hello,
>
> I am hoping someone can give me some insights on an issue we are hoping to
> head off.  Over the summer our University changed e-mail servers and now
> students have a different e-mail address than they did last year.  The
> problem is DSpace does not reflect this change in the user accounts since
> the e-mail is set when an account is first created.  We are concerned this
> will be a problem in a few months when they turn off the old server.  Does
> anyone know a way we can bulk edit the e-mails in the user accounts so we
> can head off any submission or subscription e-mail issues?  Any insights
> would be appreciated as I have not been able to find any documentation
> online that can tell me how to fix this without changing everyone directly
> in the XMLUI.  Thanks for your time.
>
> Matt Sherman
>
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Making Changes to User Accounts

2014-01-24 Thread Ingram, William A
I think this depends on whether or not you have a mapping from old e-mail to 
new e-mail. Or better yet, a method from going from old to new; i.e., f(old) = 
new. If so, can use this method on the e-mail field of the eperson table. That 
should do it.


Bill Ingram
University of Illinois
Urbana, IL 61801
217-333-4648
wingr...@illinois.edu

From: Matthew Sherman [mailto:matt.r.sher...@gmail.com]
Sent: Friday, January 24, 2014 10:15 AM
To: dspace-tech
Subject: [Dspace-tech] Making Changes to User Accounts

Hello,
I am hoping someone can give me some insights on an issue we are hoping to head 
off.  Over the summer our University changed e-mail servers and now students 
have a different e-mail address than they did last year.  The problem is DSpace 
does not reflect this change in the user accounts since the e-mail is set when 
an account is first created.  We are concerned this will be a problem in a few 
months when they turn off the old server.  Does anyone know a way we can bulk 
edit the e-mails in the user accounts so we can head off any submission or 
subscription e-mail issues?  Any insights would be appreciated as I have not 
been able to find any documentation online that can tell me how to fix this 
without changing everyone directly in the XMLUI.  Thanks for your time.

Matt Sherman
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] More enterprise deployment questions

2014-01-24 Thread Tim Donohue
Hi Andrew,

On 1/23/2014 5:28 PM, Andrew Reid wrote:
>>I have two new requirements I have to try to comply with.
>>
>>The first is, the security folks would like me to not expose
>> tracebacks when Java errors occur.  I have followed various
>> web guidelines for redirecting errors to a static error page, but
>> I can't seem to figure out how to get dspace/xmlui to direct to it.
>>
>>I put the error page in static/error.html, and when I manually
>> go to "/dspace/xmlui/error.html", I see my content.
>>
>>I then added this stanza:
>>
>>> 
>>> java.lang.Throwable
>>> /error.html
>>> 
>>
>>... to the web.xml file under WEB-INF for the dspace xmlui web app.
>>
>>The result of this is that I get "HTTP Status 404" from Tomcat
>> for any nontrivial dspace/xmlui URL, including the log-in page.
>> (The static URL dspace/xmlui/error.html still works, though!)

This is actually a tough one. It sounds directly related to a known bug:
https://jira.duraspace.org/browse/DS-1596

By default, Apache Cocoon (which DSpace XMLUI uses) is capturing & 
handling any errors. This is controlled in the sitemap.xmap:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap#L684

By default, what happens is that DSpace XMLUI reformats the Cocoon XML 
error via the included "exception2html.xslt":
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/exception2html.xslt

This 'exception2html.xslt' is what creates the ugly Java stacktrace 
error page. So, you could directly modify this XSLT to change the look 
of the error page (and also hide the Java stacktrace).

Unfortunately, because Cocoon is catching the error, I'm not sure it is 
being properly passed up to Tomcat (which might be what you are seeing, 
it's hard to tell). For DSpace, we actually had to manually apply a 
patch to Apache Cocoon to get it to even properly throw HTTP 404 Error 
Codes (as the latest version of Cocoon doesn't do it properly). 
Essentially, I suspect part of the problem here is in Apache Cocoon (but 
admittedly it's been a while since I've been able to dig in deeply 
here).  There's more background info on XMLUI error page issues in that 
ticket I've linked above.

If you (or anyone else listening in) manage to find a better solution, I 
think we'd all like to hear it!


>>The second requirement is, I have been asked to turn off password
>> autocomplete.  This involves setting 'autocomplete="off"' in the
>> log-in form, but I am having some difficulty navigating the
>> code-base -- I'm looking for a low-intervention way of doing this,
>> to avoid having "my" DSpace being too different from the upstream,
>> and ideally would like to do this *just* for the LDAP log-in form.
>>
>>Is there a simple way to do this, or should I just keep looking?

In the XMLUI, the actual HTML is generated via the XSLTs in the theme 
you are using. So, the answer to this depends on your *theme*.

By default, DSpace XMLUI uses the "Mirage" theme, which itself loads up 
the 'dr2xhtml-alt' base theme for most of the basic XSLT stylesheets.

If you are using Mirage / dri2xhtml-alt, then the XSLT template which 
creates *all* forms can be found here:

https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/core/elements.xsl#L90

If you *only* want to set "autocomplete='off'" for the LDAP login form, 
you likely could add a simple "xsl:if" into this template...something like:


   ...
   
  off
   
   ...


NOTE: I'm *guessing* at the proper @id value here. I don't have an LDAP 
enabled site to look at. But, you should be able to find the @id value 
by browsing to your LDAP login page, and adding "?XML" on the end of the 
URL.  What you will then see is the underlying XML of that page (which 
the XSLT then transforms to XHTML obviously).  You want to find the 
value of the @id attribute on the "" (that XML 
 tag gets changed to an HTML  tag).

Hopefully that helps!
- Tim

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] problems with stats-log-converter

2014-01-24 Thread Hilton Gibson
Hi Francis

Here is something I used quite a while ago that worked:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics/Old_Versions

Regards

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson


On 24 January 2014 17:23, Brouns, Francis  wrote:

> Hi all,
>
> we are in the process of upgrading our Dspace 1.8.3 server to Dspace 3.2
> and also want to switch to the new statistics module based on Solr. That
> means that we need to convert the old logs and import those into Solr. It
> seems that a full path needs to be specified for the location of the input
> log files and the output. When using relative paths the -m switch does not
> work. In dspace 1.8.3 a nullpointer exception is returned in the console.
> When running stats-log-converter from dspace 3.2, the console does not
> report any errors. Console reports that it is loading dspace.cfg and
> log4j.properties and then list some of the log files.
> However, the dspace log file reports for every file the same file access
> problem. That seems to be because the filename of the -o parameter is joint
> with the file name of the log, resulting in an invalid path.
>
> The problem is that it does not convert all files. We never have changed
> log4j.properties, but nevertheless we have a mix of log files appended with
> numbers and files appended with a date. The current 3.2 log4j.properties
> uses a DailyFileAppender with log4j.appender.A1.DatePattern=-MM-dd.
> Nevertheless it only seems to read the log files that have a number
> appended.
>
> I have two questions
> How can I get it to convert all log files? Other than copying them all
> into a new file. That file would be very large.
>
> When do I need to use the -n parameter? The logs stem from before Dspace
> 1.5.2 and from Dspace 1.8.x.
>
> This is running on a Linux (SLES) server, Sun java 1.6
>
>
> For your information I copy below the output of the console and the log
> file
>
> best wishes, Francis
>
> === dspace 1.8.3 ==
> When running the same from dspace183 console returns a Nullpointer
> tomcat@lnx:/dspace/dspace183/bin> ./dspace stats-log-converter -i
> ../log/dspace.log.9  -o ../log/solr5.log -m -n
> dspace.log.9
>  About to convert '/dspace/dspace183/bin/../log/dspace.log.9' to
> '../log/solr5.login/../log/dspace.log.9'
> Exception: null
> java.lang.NullPointerException
> at
> org.dspace.statistics.util.ClassicDSpaceLogConverter.convert(ClassicDSpaceLogConverter.java:234)
> at
> org.dspace.statistics.util.ClassicDSpaceLogConverter.main(ClassicDSpaceLogConverter.java:365)
> 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)
>
> the dspace log file reports similar errors as in dspace 3.2, a file access
> problem
>  dspace 3.2 ==
>
> Console log when running stats-log-converter from dspace3.2
> tomcat@lnx:/dspace/dspace32/bin> ./dspace stats-log-converter -i
> ../log/dspace.log.9  -o ../log/solr4.log -m
>  INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
> DSpaceKernel:org.dspace:name=ee3fea82-9d3a-4cf1-b506-03fbbe162223,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
>  INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
> file:/dspace/dspace32/config/dspace.cfg
>  INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
> configuration (log.init.config)
>  INFO [main] (ConfigurationManager.java:1224) - Loading:
> /dspace/dspace32/config/log4j.properties
> dspace.log.9
> dspace.log.95
> dspace.log.91
> dspace.log.93
> dspace.log.94
> dspace.log.98
> dspace.log.92
> dspace.log.99
> dspace.log.96
> dspace.log.90
> dspace.log.97
>
>
> extract from dspace.log for dspace 3.2
> 2014-01-24 14:47:33,603 ERROR
> org.dspace.statistics.util.ClassicDSpaceLogConverter @ File access problem
> java.io.FileNotFoundException: solr.logbin/../log/dspace.log.91 (No such
> file or directory)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:194)
> at java.io.FileOutputStream.(FileOutputStream.java:84)
> at java.io.FileWriter.(FileWriter.java:46)
> at
> org.dspace.statistics.util.ClassicDSpaceLogConverter.convert(ClassicDSpaceLogConverter.java:106)
> at
> org.dspace.statistics.util.ClassicDSpaceLogConverter.main(ClassicDSpaceLogConverter.java:365)
> at sun

[Dspace-tech] DSPACE PROBLEM

2014-01-24 Thread andres . gonzalez
HI, good morning, i have a problem with my dpace server, my hard disk is full, 
but i can't redirect the assetstore to other location. Please I need you help 
to me. I installed dspace 3.1 in a windows 7.

Thank you.

_
Ing. Andrés Patricio González Montesinos
Ingeniero de Sistemas - Campus Yanuncay


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] advisor in browse

2014-01-24 Thread Sunita Barve
I am unable to get Advisor in Browse and itemdisplay field.

I followed following steps but still when dspace is viewed under
Browse i am getting
???browse.menu.advisor??? and in particular item view it is showing
-- ???metadata.dc.contributor.advisor??? hw can this error be solved.

The following changes were made

1. in dspace-3.2-src-release/dspace-api/src/main/resources/Messages.properties
following lines added

browse.type.metadata.advisor = Advisor
browse.menu.advisor = Advisor

#metadata.dc.contributor.*   = Authors
metadata.dc.contributor.author  = Authors
metadata.dc.contributor.advisor = Advisors
browse.type.metadata.advisor = Advisor

itemlist.dc.contributor.*  = Author(s)
itemlist.dc.contributor.author = Author(s)
itemlist.dc.contributor.advisor = Advisor(s)

2. dspace was built by making changes in dspace.cfg file present in
dspace-src/dspace/config/dspace.cfg

webui.browse.index.3 = advisor:metadata:dc.contributor.advisor:text
webui.itemdisplay.default = dc.title, dc.title.alternative,
dc.contributor.author, dc.contributor.advisor, \
webui.itemlist.columns = dc.date.issued(date), dc.title,
dc.contributor.author, dc.contributor.advisor

then dspace was rebuilt or fresh installation done. But still i cannot
see Advisor in Browse and item display.

how to sort this error.

reg

Sunita Barve, Ph. D.
Senior Technical Officer
National Chemical Laboratory
Dr, Homi Bhaba Road
Pune 411008, INDIA
Email :sunitaba...@gmail.com

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Making Changes to User Accounts

2014-01-24 Thread Matthew Sherman
Hello,

I am hoping someone can give me some insights on an issue we are hoping to
head off.  Over the summer our University changed e-mail servers and now
students have a different e-mail address than they did last year.  The
problem is DSpace does not reflect this change in the user accounts since
the e-mail is set when an account is first created.  We are concerned this
will be a problem in a few months when they turn off the old server.  Does
anyone know a way we can bulk edit the e-mails in the user accounts so we
can head off any submission or subscription e-mail issues?  Any insights
would be appreciated as I have not been able to find any documentation
online that can tell me how to fix this without changing everyone directly
in the XMLUI.  Thanks for your time.

Matt Sherman
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] bulkedit.ignore -on -export is not working

2014-01-24 Thread helix84
On Fri, Jan 24, 2014 at 10:49 AM, "M. Àngels Pulido" <
m.angels.pul...@uvic.cat> wrote:

> 1. The parameter bulkedit.ignore -on -export is not working. I have this
> in my dspace.cfg :
>

There seem to be a lot of extra spaces here. Maybe it's just the formatting
in your email, but make sure there are no extra spaces in your config file
(just remove all spaces, none are necessary).



>  bulkedit.ignore -on- export = *dc.date.accessioned* , *dc.date.available*, \
> dc.date.updated , *dc.description.provenance*
>   2. But the .csv file extracted displays the following fields:
>
> id,collection,dc.contributor,dc.contributor.author,dc.contributor.author[],dc.contributor.other[],dc.contributor[],dc.contributor[cat],
> *d**c.date.accessioned*,*dc.date.accessioned[]*
> *,dc.date.available,dc.date.available[]*
> ,dc.date.created,dc.date.created[],dc.date.issued,dc.date.issued[],dc.description.abstract[ca_ES],dc.description.abstract[cat],dc.description.abstract[eng],dc.description.abstract[spa],
> *dc.description.provenance[en]*,dc.description.version[],dc.description[],dc.description[ca_ES],dc.embargo.terms[ca_ES],dc.format.extent[],dc.format.extent[ca],dc.format.extent[ca_ES],dc.format.extent[cat],dc.identifier.citation[],dc.identifier.citation[ca_ES],dc.identifier.doi,dc.identifier.!
> doi[],dc.
> identifier.isbn,dc.identifier.isbn[],dc.identifier.issn,dc.identifier.issn[],dc.identifier.uri,dc.identifier.uri[],dc.language.iso[],dc.language.iso[ca],dc.language.iso[ca_ES],dc.language.iso[cat],dc.publisher[],dc.publisher[ca_ES],dc.relation.isformatof[],dc.relation.publisherversion[],dc.rights.accesRights[],dc.rights.accesRights[ca_ES],dc.rights.uri[],dc.rights.uri[ca_ES],dc.rights[],dc.rights[ca_ES],dc.subject.other[],dc.subject.other[ca_ES],dc.title[],dc.title[ca],dc.title[ca_ES],dc.title[cat],dc.type[],dc.type[ca],dc.type[ca_ES],dc.type[cat]
>

I'm not completely sure, but I think ignoring "fieldname" will not ignore
all the "fieldname[]" variants. If you succeed removing
"dc.date.accessioned" and still see the rest, try specifying the variabts
explicitly.

Also make sure you're not using the "-a" flag because in that case all
fields are exported regardless of the bulkedit.ignore-on-export setting.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] problems with stats-log-converter

2014-01-24 Thread helix84
Hi Francis,

I believe you're encountering this issue:

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

I remember I was able to work around it somehow, but I can't remember
how off the top of my head. Probably I just ran it in a loop and
converted the files one by one. Here you can find more of my notes
from when I tried it:
https://wiki.duraspace.org/display/DSDOC3x/Elastic+Search+Usage+Statistics#comment-thread-33238962


Regards,
~~helix84

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

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] problems with stats-log-converter

2014-01-24 Thread Brouns, Francis
Hi all,

we are in the process of upgrading our Dspace 1.8.3 server to Dspace 3.2 and 
also want to switch to the new statistics module based on Solr. That means that 
we need to convert the old logs and import those into Solr. It seems that a 
full path needs to be specified for the location of the input log files and the 
output. When using relative paths the -m switch does not work. In dspace 1.8.3 
a nullpointer exception is returned in the console. When running 
stats-log-converter from dspace 3.2, the console does not report any errors. 
Console reports that it is loading dspace.cfg and log4j.properties and then 
list some of the log files.
However, the dspace log file reports for every file the same file access 
problem. That seems to be because the filename of the -o parameter is joint 
with the file name of the log, resulting in an invalid path.

The problem is that it does not convert all files. We never have changed 
log4j.properties, but nevertheless we have a mix of log files appended with 
numbers and files appended with a date. The current 3.2 log4j.properties uses a 
DailyFileAppender with log4j.appender.A1.DatePattern=-MM-dd. Nevertheless 
it only seems to read the log files that have a number appended.

I have two questions
How can I get it to convert all log files? Other than copying them all into a 
new file. That file would be very large.

When do I need to use the -n parameter? The logs stem from before Dspace 1.5.2 
and from Dspace 1.8.x.

This is running on a Linux (SLES) server, Sun java 1.6


For your information I copy below the output of the console and the log file

best wishes, Francis

=== dspace 1.8.3 ==
When running the same from dspace183 console returns a Nullpointer
tomcat@lnx:/dspace/dspace183/bin> ./dspace stats-log-converter -i 
../log/dspace.log.9  -o ../log/solr5.log -m -n
dspace.log.9
 About to convert '/dspace/dspace183/bin/../log/dspace.log.9' to 
'../log/solr5.login/../log/dspace.log.9'
Exception: null
java.lang.NullPointerException
at 
org.dspace.statistics.util.ClassicDSpaceLogConverter.convert(ClassicDSpaceLogConverter.java:234)
at 
org.dspace.statistics.util.ClassicDSpaceLogConverter.main(ClassicDSpaceLogConverter.java:365)
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)

the dspace log file reports similar errors as in dspace 3.2, a file access 
problem
 dspace 3.2 ==

Console log when running stats-log-converter from dspace3.2
tomcat@lnx:/dspace/dspace32/bin> ./dspace stats-log-converter -i 
../log/dspace.log.9  -o ../log/solr4.log -m
 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: 
DSpaceKernel:org.dspace:name=ee3fea82-9d3a-4cf1-b506-03fbbe162223,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
 INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: 
file:/dspace/dspace32/config/dspace.cfg
 INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log 
configuration (log.init.config)
 INFO [main] (ConfigurationManager.java:1224) - Loading: 
/dspace/dspace32/config/log4j.properties
dspace.log.9
dspace.log.95
dspace.log.91
dspace.log.93
dspace.log.94
dspace.log.98
dspace.log.92
dspace.log.99
dspace.log.96
dspace.log.90
dspace.log.97


extract from dspace.log for dspace 3.2
2014-01-24 14:47:33,603 ERROR 
org.dspace.statistics.util.ClassicDSpaceLogConverter @ File access problem
java.io.FileNotFoundException: solr.logbin/../log/dspace.log.91 (No such file 
or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:194)
at java.io.FileOutputStream.(FileOutputStream.java:84)
at java.io.FileWriter.(FileWriter.java:46)
at 
org.dspace.statistics.util.ClassicDSpaceLogConverter.convert(ClassicDSpaceLogConverter.java:106)
at 
org.dspace.statistics.util.ClassicDSpaceLogConverter.main(ClassicDSpaceLogConverter.java:365)
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
==

Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan 
en gebruik door anderen is niet toegestaan. Open Universiteit sluit iedere 
aansprakelijkheid uit die voortvloeit uit elektronische verzending. Aan de 
inhoud van deze e-mail en/of eventueel toege

[Dspace-tech] Availability of a first draft documentation for DSpace-CRIS

2014-01-24 Thread Andrea Bollini
Hi all,
I want to share with you that we have produced a first draft of 
technical documentation for DSpace-CRIS.
http://cineca.github.io/dspace-cris/index.html
http://cineca.github.io/dspace-cris/doc/technical-documentation.pdf

We will update this documentation, completing the missing sections (you 
will find some entries in the TOC without actual content) before the 
first release for DSpace 4 scheduled in the next few months.
Andrea

-- 
Andrea Bollini
Dipartimento Servizi e Soluzioni per l'Amministrazione Universitaria
Divisione Ricerca

Via dei Tizii, 6
00185 Roma, Italy
tel. +39 06 44 486 087 - mob. +39 348 82 77 525
http://www.cineca.it


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] registered user has no search results

2014-01-24 Thread Alain Tschanz

Hello,
I have a registered user-he's also an administrator-who doesn't get any search 
results when logged in as himself, however, the search works for everybody else 
whether logged in or not. Why would that be? Permissions?

Thank you.

DSpace version: 3.2
Theme: Reference
Interface: xmlui


Alain

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] DOI DATACITE

2014-01-24 Thread Becker, Pascal-Nicolas
Hi Massimiliano,

you should configure your E-Mail settings. DSpace wanted to send a mail to the 
address configured in alert.recipient, but this field was empty (you can find 
more information here: 
https://wiki.duraspace.org/display/DSDOC4x/Configuration+Reference#ConfigurationReference-DSpaceEmailSettings).

I see two problems with your DOI-Configuration in the log. The first is, that 
the DOIs have strange names (doi:10.,10.5072/unisa-1), the second is that 
the request seems to be send to the wrong address.

Which values have you set in [dspace]/config/dspace.cfg for 
doi.identifier.prefix and doi.identifier.namespaceseparator? Please DO NOT send 
the complete dspace.cfg as it may contain different username/password 
combinations (e.g. for your database connection, for your doi-namespaces and so 
on). By the way: did you set identifier.doi.user and identifier.doi.password 
correctly (again: please DO NOT send the values you put in there).

In [dspace]/config/spring/api/identifier-service.xml you added a bean with the 
id org.dspace.identifier.doi.DOIConnector (you added it by removing comments). 
In the configuration of the bean you can set the host and paths the 
DOIConnector should connect to. Can you please send me those lines? The 
important part begins with  (in my file these are the lines 56 to 64, but it may 
differ).

Regards,
  Pascal

From: Massimiliano Cilurzo [mailto:mcilu...@unisa.it]
Sent: Friday, January 24, 2014 9:58 AM
To: Becker, Pascal-Nicolas; dspace-tech@lists.sourceforge.net
Subject: R: [Dspace-tech] DOI DATACITE

Hi Pascal,
in this is the dspace.log after  the command dspace/bin/dspace doi-organiser -u
...

org.dspace.content.MetadataSchema @ Loading schema cache for fast finds
2014-01-24 09:53:40,896 WARN  org.dspace.identifier.doi.DataCiteConnector @ 
While reserving the DOI doi:10.,10.5072/unisa-1, we got a http status code 
404 and the message "
var djConfig="en_US"; 
dojo.require("dojo.parser");Welcome to 
DataCite Metadata Store
Metadata Store
You are not logged in | Logindojo.require('dijit.TitlePane');Spring.addDecoration(new 
Spring.ElementDecoration({elementId : '_title_title_id', widgetType : 
'dijit.TitlePane', widgetAttrs : {title: 'Requested Resource Not Found', open: 
true}})); Requested Resource Not FoundSorry, we did not 
find the resource you were looking for.Home | Language: | Login".
2014-01-24 09:53:40,920 WARN  org.dspace.identifier.doi.DOIOrganiser @ Unable 
to send email alert
javax.mail.internet.AddressException: Illegal address in string ``''
at javax.mail.internet.InternetAddress.(InternetAddress.java:94)
at org.dspace.core.Email.send(Email.java:261)
at 
org.dspace.identifier.doi.DOIOrganiser.sendAlertMail(DOIOrganiser.java:914)
at org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:689)
at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265)
at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82)
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.runOneCommand(ScriptLauncher.java:225)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
2014-01-24 09:53:40,921 ERROR org.dspace.identifier.doi.DOIOrganiser @ It 
wasn't possible to update this identifier:  doi:10.,10.5072/unisa-1 
Exceptions code:  BAD_ANSWER
org.dspace.identifier.doi.DOIIdentifierException: Unable to parse an answer 
from DataCite API. Please have a look into DSpace logs.
at 
org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:564)
at 
org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector.java:681)
at 
org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifierProvider.java:412)
at org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:669)
at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265)
at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82)
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.runOneCommand(ScriptLauncher.java:225)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
2014-01-24 09:53:42,294 WARN  org.dspace.identifier.doi.DataCiteConnector @ 
While reserving the DOI doi:10.14273,10.5072/unisa-2, we got a http status cod

[Dspace-tech] bulkedit.ignore -on -export is not working

2014-01-24 Thread M. Àngels Pulido

  
  
Hi,

  I work with Dspace
1.7.2.
  


I have a problem when export a .csv file from my repository:


  1. The parameter bulkedit.ignore
-on -export is not working. I have this in my dspace.cfg :
  
bulkedit.ignore -on- export = dc.date.accessioned ,
dc.date.available , \
dc.date.updated , dc.description.provenance
  
  

  2.
But the .csv file extracted
displays the following fields:

 id,collection,dc.contributor,dc.contributor.author,dc.contributor.author[],dc.contributor.other[],dc.contributor[],dc.contributor[cat],dc.date.accessioned,dc.date.accessioned[],dc.date.available,dc.date.available[],dc.date.created,dc.date.created[],dc.date.issued,dc.date.issued[],dc.description.abstract[ca_ES],dc.description.abstract[cat],dc.description.abstract[eng],dc.description.abstract[spa],dc.description.provenance[en],dc.description.version[],dc.description[],dc.description[ca_ES],dc.embargo.terms[ca_ES],dc.format.extent[],dc.format.extent[ca],dc.format.extent[ca_ES],dc.format.extent[cat],dc.identifier.citation[],dc.identifier.citation[ca_ES],dc.identifier.doi,dc.identifier.!
 doi[],dc.
identifier.isbn,dc.identifier.isbn[],dc.identifier.issn,dc.identifier.issn[],dc.identifier.uri,dc.identifier.uri[],dc.language.iso[],dc.language.iso[ca],dc.language.iso[ca_ES],dc.language.iso[cat],dc.publisher[],dc.publisher[ca_ES],dc.relation.isformatof[],dc.relation.publisherversion[],dc.rights.accesRights[],dc.rights.accesRights[ca_ES],dc.rights.uri[],dc.rights.uri[ca_ES],dc.rights[],dc.rights[ca_ES],dc.subject.other[],dc.subject.other[ca_ES],dc.title[],dc.title[ca],dc.title[ca_ES],dc.title[cat],dc.type[],dc.type[ca],dc.type[ca_ES],dc.type[cat]



  
  

  Can
  someone
  help me
with this problem?


Thanks in advance.
  



-- 
  
M. Àngels Pulido Medina
  Biblioteca - Servei de Recursos
Informàtics
  
  Universitat de Vic
  C. Sagrada Família, 7
  08500 Vic
  Tel. 938 816 170 (8333)
  m.angels.pul...@uvic.cat 
  www.uvic.cat
  

  

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] Restoring Backed up Dspace files

2014-01-24 Thread helix84
Hi Eric,

like I said before, it's important to save the database. Do you at
least have the files from your data_directory (see postgresql.conf)?
E.g. in my case it's in "/var/lib/postgresql/9.1/main".


Regards,
~~helix84

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

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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] R: DOI DATACITE

2014-01-24 Thread Massimiliano Cilurzo
Hi Pascal, 

in this is the dspace.log after  the command dspace/bin/dspace doi-organiser
–u

…

….

org.dspace.content.MetadataSchema @ Loading schema cache for fast finds

2014-01-24 09:53:40,896 WARN  org.dspace.identifier.doi.DataCiteConnector @
While reserving the DOI doi:10.,10.5072/unisa-1, we got a http status
code 404 and the message "

var
djConfig="en_US"; dojo.require("dojo.parser");Welcome to
DataCite Metadata Store

Metadata Store

You are not logged in | Logindojo.require('dijit.TitlePane');Spring.addDecoration(new
Spring.ElementDecoration({elementId : '_title_title_id', widgetType :
'dijit.TitlePane', widgetAttrs : {title: 'Requested Resource Not Found',
open: true}})); Requested Resource Not FoundSorry, we
did not find the resource you were looking for.Home | Language: | Login".

2014-01-24 09:53:40,920 WARN  org.dspace.identifier.doi.DOIOrganiser @
Unable to send email alert

javax.mail.internet.AddressException: Illegal address in string ``''

at
javax.mail.internet.InternetAddress.(InternetAddress.java:94)

at org.dspace.core.Email.send(Email.java:261)

at
org.dspace.identifier.doi.DOIOrganiser.sendAlertMail(DOIOrganiser.java:914)

at
org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:689)

at
org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265)

at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82)

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.runOneCommand(ScriptLauncher.java:225
)

at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

2014-01-24 09:53:40,921 ERROR org.dspace.identifier.doi.DOIOrganiser @ It
wasn't possible to update this identifier:  doi:10.,10.5072/unisa-1
Exceptions code:  BAD_ANSWER

org.dspace.identifier.doi.DOIIdentifierException: Unable to parse an answer
from DataCite API. Please have a look into DSpace logs.

at
org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.jav
a:564)

at
org.dspace.identifier.doi.DataCiteConnector.updateMetadata(DataCiteConnector
.java:681)

at
org.dspace.identifier.DOIIdentifierProvider.updateMetadataOnline(DOIIdentifi
erProvider.java:412)

at
org.dspace.identifier.doi.DOIOrganiser.update(DOIOrganiser.java:669)

at
org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:265)

at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:82)

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.runOneCommand(ScriptLauncher.java:225
)

at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

2014-01-24 09:53:42,294 WARN  org.dspace.identifier.doi.DataCiteConnector @
While reserving the DOI doi:10.14273,10.5072/unisa-2, we got a http status
code 404 and the message "

 

 

Thanks

Best regards,

Massimiliano

Da: Becker, Pascal-Nicolas [mailto:p.bec...@tu-berlin.de] 
Inviato: giovedì 23 gennaio 2014 18:10
A: Massimiliano Cilurzo; dspace-tech@lists.sourceforge.net
Oggetto: RE: [Dspace-tech] DOI DATACITE

 

Hi Massimiliano,

 

you’re on the right way, but there is still some error. What does the
doi-organiser writes into [dpsace]/logs/dspace.logs?

 

Regards,

  Pascal

 

From: Massimiliano Cilurzo [mailto:mcilu...@unisa.it] 
Sent: Thursday, January 23, 2014 1:09 PM
To: Becker, Pascal-Nicolas; dspace-tech@lists.sourceforge.net
Subject: R: [Dspace-tech] DOI DATACITE

 

Hi Pascal,

Thanks for your help now I’m understanding how it works.

When I execute [dspace]/bin/dspace doi-organiser –u the answer is this:

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx,10.5072/unisa-1

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx,10.5072/unisa-2

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx,10.5072/unisa-3

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx,10.5072/unisa-4

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx/unisa-5

Unable to send email alert.

It wasn't possible to update this identifier: doi:10.142xx/unisa-6

 

Da: Becker, Pascal-Nicolas [mailto:p.bec...@tu-berlin.de] 
Inviato: giovedì 23 gennaio 2014 13:00
A: dspace-tech@lists.sourceforge.net
Cc: Mass