Re: [Dspace-tech] dropdown on input-forms.xml
-Original Message- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:55 AM To: 'dspace-tech@lists.sourceforge.net' Subject: RE: DSpace-tech Digest, Vol 58, Issue 48 Hi Friends, Here is what the log file reads 2011-02-14 08:35:47,197 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.DescribeStep': javax.servlet.ServletException: Error creating submission forms: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.dspace.submit.step.DescribeStep.getInputsReader(DescribeStep.java:41 2) at org.dspace.submit.step.DescribeStep.(DescribeStep.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java: 126) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr oller.java:405) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionCon troller.java:344) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnly Filter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebapp ServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) at java.lang.Thread.run(Thread.java:619) Thanks -Original Message- From: dspace-tech-requ...@lists.sourceforge.net [mailto:dspace-tech-requ...@lists.sourceforge.net] Sent: Friday, February 11, 2011 10:59 PM To: dspace-tech@lists.sourceforge.net Subject: DSpace-tech Digest, Vol 58, Issue 48 Send DSpace-tech mailing list submissions to dspace-tech@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to dspace-tech-requ...@lists.sourceforge.net You can reach the person managing the list at dspace-tech-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of DSpace-tech digest..." Today's Topics: 1. Re: dropdown on input-forms.xml (Thornton, Susan M. (LARC-B702)[LITES]) -- Message: 1 Date: Fri, 11 Feb 2011 13:58:27 -0600 From: "Thornton, Susan M. (LARC-B702)[LITES]" Subject: Re: [Dspace-tech] dropdown on input-forms.xml To: "Webshet, Sisay (ILRI)" , "dspace-tech@lists.sourceforge.net" Message-ID:
Re: [Dspace-tech] DSpace-tech Digest, Vol 58, Issue 48
Hi Friends, Here is what the log file reads 2011-02-14 08:35:47,197 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.DescribeStep': javax.servlet.ServletException: Error creating submission forms: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at org.dspace.submit.step.DescribeStep.getInputsReader(DescribeStep.java:41 2) at org.dspace.submit.step.DescribeStep.(DescribeStep.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java: 126) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr oller.java:405) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionCon troller.java:344) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnly Filter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebapp ServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) at java.lang.Thread.run(Thread.java:619) Thanks -Original Message- From: dspace-tech-requ...@lists.sourceforge.net [mailto:dspace-tech-requ...@lists.sourceforge.net] Sent: Friday, February 11, 2011 10:59 PM To: dspace-tech@lists.sourceforge.net Subject: DSpace-tech Digest, Vol 58, Issue 48 Send DSpace-tech mailing list submissions to dspace-tech@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to dspace-tech-requ...@lists.sourceforge.net You can reach the person managing the list at dspace-tech-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of DSpace-tech digest..." Today's Topics: 1. Re: dropdown on input-forms.xml (Thornton, Susan M. (LARC-B702)[LITES]) -- Message: 1 Date: Fri, 11 Feb 2011 13:58:27 -0600 From: "Thornton, Susan M. (LARC-B702)[LITES]" Subject: Re: [Dspace-tech] dropdown on input-forms.xml To: "Webshet, Sisay (ILRI)" , "dspace-tech@lists.sourceforge.net" Message-ID: <03de6124b1f32240b3692ed5e591ed1617a78c9...@ndmsscc07.ndc.nasa.gov> Content-Type: text/plain; charset="utf-8" Can you post the contents of dspace.log and possibility your web server log f
Re: [Dspace-tech] Edit Item Template Error
Hi Claudia, > Are you trying this as instance admin or with a different role? I'm a member of the main Administrator group, so I assume that means I am an "instance" admin. > Did you change any of the dspace.cfg delegation setting in this section > # Authorization system configuration - Delegate ADMIN # > especially > #core.authorization.community-admin.collection.template-item = true > #core.authorization.collection-admin.template-item = true No, I hadn't changed either of these from the installation defaults, although I note that "collection-admin.template-item" was false (by default?) - anyway, I tried changing this to true, and I also uncommented the "community-admin.collection.template-item=true" line, just to make this explicit (you never know!). Unfortunately neither of these changes appeared to have any effect :-( > On a vanilla instance of 1.6.2 jspui this works fine for the instance > administrator and a > collection administrator (default, no delegation rules set). OK, so, as I guessed, this isn't an issue generally, so presumably has something to do with the fact that this is a "migrated" instance - I set up a dev 1.6.2 alongside our old live v1.4, made all our local changes and additions on 1.6 (Request a copy, home grown auth module, and a few other minor bits and pieces), and then migrated 1.4 to 1.6 by copying over the assetstore and other key directories, pgdumping the 1.4 database, deleting the 1.6 DB and copying over the 1.4 DB and running the upgrade scripts (including removing the spurious constraints) - after re-indexing, everything seemed to be working fine - this is the first major problem I've hit . . . . Does anyone have any ideas what might cause this behaviour? Any assistance very welcome! Cheers, Mike Michael White Research Information System (RIS) Project Information Services S8, Library University of Stirling Stirling SCOTLAND FK9 4LA Email: michael.wh...@stir.ac.uk Tel: +44 (0) 1786 466877 Fax: +44 (0) 1786 466880 http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php Date: Fri, 11 Feb 2011 17:24:15 +0100 From: Claudia J?rgen Subject: Re: [Dspace-tech] Edit Item Template Error To: dspace-tech@lists.sourceforge.net Message-ID: <4d5562af.3060...@ub.tu-dortmund.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello Michael, your values for the template item are correct, it is not in_archive, not withdrawn and got no owning collection nor a submitter. On a vanilla instance of 1.6.2 jspui this works fine for the instance administrator and a collection administrator (default, no delegation rules set). Are you trying this as instance admin or with a different role? Did you change any of the dspace.cfg delegation setting in this section # Authorization system configuration - Delegate ADMIN # especially #core.authorization.community-admin.collection.template-item = true #core.authorization.collection-admin.template-item = true Hope that helps Claudia J?rgen Am 11.02.2011 15:15, schrieb Michael White: > Hi, > > Using JSP UI on v1.6.2 (recently migrated from v1.4.2) - I'm trying to > edit Item Templates, but I'm getting an Internal Server Error whenever > I click the "Edit" button to access an existing Item Template (all our > Collections are created with templates in order to automatically > populate a "type" attribute): > > -- URL Was: https://dspace.stir.ac.uk/tools/edit-item?item_id=263 -- > Method: GET -- Parameters were: -- item_id: "263" > > > Exception: java.lang.NullPointerException at > org.dspace.app.util.AuthorizeUtil.authorizeWithdrawItem(AuthorizeUtil. > java:590) > > at org.dspace.app.webui.servlet.admin.EditItemServlet.showEditForm(EditItemServlet.java:494) > at > org.dspace.app.webui.servlet.admin.EditItemServlet.doDSGet(EditItemSer > vlet.java:167) > > 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(Appli > cationFilterChain.java:269)etc > > I did a search on the DSpace tech archives but couldn't find anything > - I also did a search in JIRA and turned up something that may be > similar/related: https://jira.duraspace.org/browse/DS-184 "NPE from > Edit Collection, Item Template, Edit Authorizations" - however, this > appears to be related to the XMLUI, relates to v1.5 and states that > the issue was fixed in v1.6 - but as I can't even get into the item > template, I'm not sure this is related! > > I also had a poke around the database for things with "item_id=263" - > when I look in the "item" table I see: > > item_id submitter_id in_archive withdrawn last_modified > owning_collection 263 NULL FALSE FALSE > 2008-03-03 16:37:26.636+00
Re: [Dspace-tech] Blocking a single ip address from accessing a DSpace instance
On Sun, Feb 13, 2011 at 02:45, Jeffrey Trimble wrote: > We've had to block several sites (certain web crawlers causing us headaches, > and not the legitimate ones) using IPSec. Of course > it blocks them from everything. > That's one option, though a little severe, IMHO. Right, blocking a web spider is an application where you really could think of blocking a single IP from DSpace. The problem with blocking a single IP is that the attacker's IP may change in time. If you want to block a well-behaving spider, it should respect robots.txt. You can find the spider's name from your apache access logs. Then you can block just this one robot. In DSpace, you should place robots.txt in these locations: [dspace]/webapps/jspui/robots.txt [dspace]/webapps/xmlui/static/robots.txt The contents would look like this (with the name of the spider from your logs): User-agent: BadBot Disallow: / Details here: http://www.robotstxt.org/ http://www.robotstxt.org/faq/blockjustbad.html Regards, ~~helix84 -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech