[Dspace-tech] SubmissionInfo in AbstractSubmissionStep/AbstractProcessingStep (passing
Hi, I have two classes, core.UploadStep and xmlui.UploadStep, using in the item submission wizard. I have added a select box which is saved in submissionInfo in core.UploadStep and the selection should be remembered in xmlui when going back to the step. In xmlui.UploadStep, the following is always null (the value is not set in xmlui.UploadStep: String testString=(String) submissionInfo.get(fileSelect); In core.UploadStep, the value is returned: subInfo.put(fileSelect, fileSelect); log.info(fileSelect: +fileSelect); log.info(fileSelect(from subInfo): +subInfo.get(fileSelect)); Why is subInfo not persisted or how can I exchange variables between AbstractSubmissionStep and AbstractProcessingStep? Thanks, -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ 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] Editing dspace-api and compiling
Hi helix8, mvn clean package did the trick. Thanks! 2013/6/6 helix84 heli...@centrum.sk I can see no obvious problem. canEditItemInWorkflow() is a new static method both added and called by the patch. It's called as a static method, too. First thing I'd try is clearing the Cocoon cache because who knows how it caches old Flowscript files? If that doesn't help, second thing I'd try is to run mvn clean package and see if it starts working. If it still doesn't work, send us the full stack trace. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j___ 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] Psuedo video streaming with item attachment and seeking enabled
Hi, It looks like it only works in Firefox. In IE I get Invalid source. The same file works in other static web servers. Looking at the content type, I got video/mp4;charset=ISO-8859-1. This should be just video/mp4. How can I change this? Thanks, -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ 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] Submission form saves only unique contributors
(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:269) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:722) 2013-05-29 15:29:57,969 INFO org.apache.cocoon.components.treeprocessor.sitemap.HandleErrorsNode - Processing handle-errors at map:handle-errors - jndi:/localhost/xmlui/sitemap.xmap:656:36 2013-05-29 15:29:57,981 INFO cocoon.access - 'handle/123456789/19/edit_item_metadata' Processed by Apache Cocoon in 116 milliseconds. And in space-xmlui-api/src/main/resources/aspects/XMLWorkflow/sitemap.xmap: !-- flow match-- map:match pattern=handle/*/*/edit_item_metadata map:call function=doEditItemMetadata map:parameter name=handle value={1}/{2}/ /map:call /map:match map:serialize type=xml/ /map:when Thanks! 2013/4/29 helix84 heli...@centrum.sk On Fri, Apr 26, 2013 at 9:09 AM, Jonathan Freesbay j.frees...@gmail.com wrote: One new question: I would like to use the wizard again to update the item. This is, as I see it, default not possible. Does this require much work? Currently there's a patch for that in our Jira. It would help if you could review it and leave your comments in Jira: https://jira.duraspace.org/browse/DS-1234 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ 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] Exporting dublin_core.xml (registering bitstream)
Hi, I have two related questions: (1) Is there a programmatically way (in Java) to register (not copy) a bitstream on local disk? The only way I see is using itemupdate from the command line. (2) I want to add a bitstream to the database (inbox for large files). I do this by exporting the item using dspace export, adding the bitstream to the mets-folder and updating the contents file and reimporting the item using dspace itemupdate -A. The import part runs fast, but the export part may be long based on the size of bitstreams of the item. To fasten the process, I want to create an empty metsfile with the dublin_core.xml file, a contents file containing the new content name and the bitstream itself. How can I get the dublin_core.xml file without dspace export? Something as wget http://server/xmlui/handle/XXX/Y/dublin_core.xml would be fine... Thanks, -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] LDAP not working (AD): error code 34 - 0000208F\colon; NameErr\colon; DSID-031001F7, problem 2006 (BAD_NAME)
OK, got it: object_context was empty, should be set to the ou where the user is. 2013/4/2 helix84 heli...@centrum.sk Sorry I can't be of more help. Here are some more observations, but they probably won't directly help you. Here's what result=2 means: /** User exists, but credentials (eme.g./em passwd) don't match. */ public static final int BAD_CREDENTIALS = 2; Based on the BAD_NAME exception, I'm guessing this could also be a permissions problem in AD. Try the initial bind as the most privileged user (just for testing) to eliminate this possibility. To check whether this is really a problem with space in username, try to create both users (the initial bind DN and the DN you're logging in) without a space in their name. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ 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] Submission form saves only unique contributors
Hi, It looks like it's simple as editing org.dspace.identifier.HandleIdentifierProvider.java, populateHandleMetadata: It only adds the metadata if it doesn't exist. One new question: I would like to use the wizard again to update the item. This is, as I see it, default not possible. Does this require much work? Regards, 2013/2/28 helix84 heli...@centrum.sk Hi Jonathan, it would be best to file this as a bug into our Jira: https://jira.duraspace.org/browse/DS Otherwise it may be easily overlooked or forgotten here in the lists. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] LDAP not working (AD): error code 34 - 0000208F\colon; NameErr\colon; DSID-031001F7, problem 2006 (BAD_NAME)
Hi Helix87, No, not a related problem. I can navigate the AD with my account. Must I have specific rights for the authentication of users? Regards, 2013/3/25 helix84 heli...@centrum.sk Hi Jonathan, does this help? https://answers.atlassian.com/questions/12497/problems-with-active-directory Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] LDAP not working (AD): error code 34 - 0000208F\colon; NameErr\colon; DSID-031001F7, problem 2006 (BAD_NAME)
Hi, I want to use DSpace 3.1 with AD (Debian 6, Tomcat 6.0.36). I have: config/modules/authentication-ldap.cfg: enable = true autoregister = true provider_url = ldap://IP:389/ id_field = cn object_context = OU=Users,OU=Name Of Organization,DC=com email_field = mail surname_field = sn givenname_field = givenName phone_field = telephoneNumber login.specialgroup = usersfromldap search_scope = 2 search.anonymous = false search.user = CN=LASTNAME Firstname,OU=Users,OU=Name Of Organization,DC=com search.password = XXX The following works from terminal: ldapsearch -x -LLL -D myn...@test.com -w 'XXX' -b CN=LASTNAME Firstname,OU=Users,OU=Name Of Organization,DC=com -s sub -H dspace.log.date: DATE INFO org.dspace.authenticate.LDAPAuthentication @ anonymous:session_id=0F9CC2198C182E229D9E3A98CF5B9DC1:ip_addr=IP:auth:attempting trivial auth of user=myn...@test.com DATE WARN org.dspace.authenticate.LDAPAuthentication @ anonymous:session_id=0F9CC2198C182E229D9E3A98CF5B9DC1:ip_addr=IP:ldap_attribute_lookup:type=failed_search javax.naming.InvalidNameException\colon; null\colon; [LDAP\colon; error code 34 - 208F\colon; NameErr\colon; DSID-031001F7, problem 2006 (BAD_NAME), data 8350, best match of\colon; 'null' ^@]; remaining name 'null' DATE INFO org.dspace.authenticate.LDAPAuthentication @ anonymous:session_id=0F9CC2198C182E229D9E3A98CF5B9DC1:ip_addr=IP:failed_login:no DN found for user myn...@test.com DATE INFO org.dspace.app.xmlui.utils.AuthenticationUtil @ anonymous:session_id=0F9CC2198C182E229D9E3A98CF5B9DC1:ip_addr=IP:failed_login:email= myn...@test.com, realm=null, result=2 Escaping the empty spaces in search.user and object_context with \ didn't help. What's happening? Thanks, -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ 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] Psuedo video streaming with item attachment and seeking enabled
Hi, Just uncomment partial download code in org.dspace.app.xmlui.cocoon.BitstreamReader under generate(). It's disabled because some browser integrated PDF readers crash (says documentation code). Regards, 2013/2/27 Jonathan Freesbay j.frees...@gmail.com Hi Keith, Impressive! When do you plan to contribute the code? Regards, 2013/2/27 Keith Gilbertson keith.gilbert...@gmail.com Jonathan - I'm not sure if you're using xmlui or jspui. I know that in xmlui, the servlet didn't implement content range. You have to uncomment some code in BitstreamReader, and then fix a couple of bugs in it to get things working. Sample: http://vtechworks.lib.vt.edu/handle/10919/18426 I've been intending to put these code changes back into the DSpace project, but since the hack was a bit rushed I wanted to wait and see if anything broke. Also, I think it would be better if the content-range was configurable to be enabled/disabled. --keith On Mon, Feb 25, 2013 at 4:38 AM, Jonathan Freesbay j.frees...@gmail.com wrote: Hi, I added a html 5 video tag to play the video's I uploaded to dspace. The video can be played, but I cannot seek to parts which aren't downloaded. The command curl -H Range:bytes=16- -I localhost:8080 gives Accept-Ranges: bytes back, so tomcat understands content-range. Does this mean that the servlet handling the file downloads doesn't implement content-range? What other options do I have within dspace to do this or will it be difficult to implement content-range on servlet level? Regards, (This is my second post for the same question, as the first was sent to dspace-gene...@lists.sourceforge.net, as the question should be sent to this mailing list.) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ 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 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ 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] Submission form saves only unique contributors
Hi, Tomcat version: 6.0.35.0 Dspace version: 3.1 I would like to save movie data in dublin core. I use: -dc.contributor.director -dc.contributor.writer When the director and writer are the same, the submission wizard just saves one of them. I can later add the value back using the editor, so it's not a core dublin core limitation. Can I disable this behaviour in the submission wizard? Otherwise, I must use dc.director and dc.writer, Regards, -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ 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] Psuedo video streaming with item attachment and seeking enabled
Hi Keith, Impressive! When do you plan to contribute the code? Regards, 2013/2/27 Keith Gilbertson keith.gilbert...@gmail.com Jonathan - I'm not sure if you're using xmlui or jspui. I know that in xmlui, the servlet didn't implement content range. You have to uncomment some code in BitstreamReader, and then fix a couple of bugs in it to get things working. Sample: http://vtechworks.lib.vt.edu/handle/10919/18426 I've been intending to put these code changes back into the DSpace project, but since the hack was a bit rushed I wanted to wait and see if anything broke. Also, I think it would be better if the content-range was configurable to be enabled/disabled. --keith On Mon, Feb 25, 2013 at 4:38 AM, Jonathan Freesbay j.frees...@gmail.com wrote: Hi, I added a html 5 video tag to play the video's I uploaded to dspace. The video can be played, but I cannot seek to parts which aren't downloaded. The command curl -H Range:bytes=16- -I localhost:8080 gives Accept-Ranges: bytes back, so tomcat understands content-range. Does this mean that the servlet handling the file downloads doesn't implement content-range? What other options do I have within dspace to do this or will it be difficult to implement content-range on servlet level? Regards, (This is my second post for the same question, as the first was sent to dspace-gene...@lists.sourceforge.net, as the question should be sent to this mailing list.) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ 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 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ 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] Psuedo video streaming with item attachment and seeking enabled
Hi, I added a html 5 video tag to play the video's I uploaded to dspace. The video can be played, but I cannot seek to parts which aren't downloaded. The command curl -H Range:bytes=16- -I localhost:8080 gives Accept-Ranges: bytes back, so tomcat understands content-range. Does this mean that the servlet handling the file downloads doesn't implement content-range? What other options do I have within dspace to do this or will it be difficult to implement content-range on servlet level? Regards, (This is my second post for the same question, as the first was sent to dspace-gene...@lists.sourceforge.net, as the question should be sent to this mailing list.) -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ 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