[dspace-tech] Re: Can't enable CORS on rest/login

2019-08-02 Thread Ualas Rohrer
Hi Tim, thank you for answering.

I've put the cors.support.credentials inside the filter tag. And you're 
right, there is something else happening here. I've tried many combination 
of the setting and didn't get it to work.

The weird is that the CORS is enables for all the other endpoints except 
for login.

Anyway, thanks for you answer. I'm still looking forward to solve it.

On Tuesday, July 30, 2019 at 1:31:55 PM UTC-7, Ualas Rohrer wrote:
>
> Guys, how are you?
>
> I'm trying to enable CORS on the rest api.
>
> I've added the below code to webapps/rest/WEB-INF/web.xml. It enables CORS 
> on the items endpoint but not on the login endpoint, find attached 
> screenshots,
>
>   CorsFilter
>   org.apache.catalina.filters.CorsFilter
>   
> cors.allowed.origins
> *
>   
>   
> cors.allowed.methods
> GET,POST,HEAD,OPTIONS,PUT
>   
>   
> cors.allowed.headers
> 
> Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,rest-dspace-token
>   
>   
> cors.exposed.headers
> 
> Access-Control-Allow-Origin,Access-Control-Allow-Credentials
>   
>   
> cors.preflight.maxage
> 10
>   
> 
>   
> cors.support.credentials
> true
>   
> 
>   CorsFilter
>   /*
> 
>
>
> I've tried many different settings, but couldn't get it to work.
>
> Can someone help me?
>
> Thanks,
> Ualas
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/3bbc239a-4bbe-4da5-b874-2ecfa903c2e8%40googlegroups.com.


Re: [dspace-tech] Re: Can't enable CORS on rest/login

2019-08-02 Thread Tim Donohue
Hello,

Unfortunately, I've never tried to enable CORS with the existing REST API (for 
DSpace 5 or 6), so I don't know the answer here.  But, I did notice that in 
your configuration the  for "cors.support.credentials" seems to be 
*outside* of the  end tag, which seems incorrect.  I'm not sure if 
that is the problem or if there's something else going on here.

It's also worth noting that in the upcoming DSpace 7 release, the new REST API 
supports CORS out-of-the-box (without special Tomcat configuration, etc).  But, 
I've no experience with using the Tomcat "CorsFilter" to try to enable CORS for 
the current REST API.  Maybe someone else on this list has tried, or is 
interested in collaborating on this.

Tim

From: dspace-tech@googlegroups.com  on behalf of 
Ualas Rohrer 
Sent: Friday, August 2, 2019 11:56 AM
To: DSpace Technical Support 
Subject: [dspace-tech] Re: Can't enable CORS on rest/login

Someone help me, please.

On Tuesday, July 30, 2019 at 3:31:55 PM UTC-5, Ualas Rohrer wrote:
Guys, how are you?

I'm trying to enable CORS on the rest api.

I've added the below code to webapps/rest/WEB-INF/web.xml. It enables CORS on 
the items endpoint but not on the login endpoint, find attached screenshots,

  CorsFilter
  org.apache.catalina.filters.CorsFilter
  
cors.allowed.origins
*
  
  
cors.allowed.methods
GET,POST,HEAD,OPTIONS,PUT
  
  
cors.allowed.headers

Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,rest-dspace-token
  
  
cors.exposed.headers

Access-Control-Allow-Origin,Access-Control-Allow-Credentials
  
  
cors.preflight.maxage
10
  

  
cors.support.credentials
true
  

  CorsFilter
  /*



I've tried many different settings, but couldn't get it to work.

Can someone help me?

Thanks,
Ualas

--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1be40d78-7ed5-4e2c-8f9e-ad0905ad755d%40googlegroups.com.

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/DM5PR22MB05724BCBA74109E377B6B623EDD90%40DM5PR22MB0572.namprd22.prod.outlook.com.


[dspace-tech] Re: Can't enable CORS on rest/login

2019-08-02 Thread Ualas Rohrer
Someone help me, please.

On Tuesday, July 30, 2019 at 3:31:55 PM UTC-5, Ualas Rohrer wrote:
>
> Guys, how are you?
>
> I'm trying to enable CORS on the rest api.
>
> I've added the below code to webapps/rest/WEB-INF/web.xml. It enables CORS 
> on the items endpoint but not on the login endpoint, find attached 
> screenshots,
>
>   CorsFilter
>   org.apache.catalina.filters.CorsFilter
>   
> cors.allowed.origins
> *
>   
>   
> cors.allowed.methods
> GET,POST,HEAD,OPTIONS,PUT
>   
>   
> cors.allowed.headers
> 
> Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,rest-dspace-token
>   
>   
> cors.exposed.headers
> 
> Access-Control-Allow-Origin,Access-Control-Allow-Credentials
>   
>   
> cors.preflight.maxage
> 10
>   
> 
>   
> cors.support.credentials
> true
>   
> 
>   CorsFilter
>   /*
> 
>
>
> I've tried many different settings, but couldn't get it to work.
>
> Can someone help me?
>
> Thanks,
> Ualas
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1be40d78-7ed5-4e2c-8f9e-ad0905ad755d%40googlegroups.com.


[dspace-tech] Re: Getting error when building Dspace 6 with Mirage2 on Centos 7

2019-08-02 Thread Sebastian Cordoba
Cordial saludo, he tenido el mismo error y buscado en google encontré esta 
solucióndespués se me presenta otro error y no me aparecen los estilos 
css. 

https://github.com/DSpace/DSpace/pull/2315/files#diff-5576a54a7c1a9188bf7f34514ce72078




El lunes, 19 de junio de 2017, 14:36:13 (UTC-5), David Brian Holt escribió:
>
> Recibo este error cuando intento instalar Dspace 6 con Mirage2 en Centos. 
> ¿Alguna 
> sugerencia?
>
> Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.6:initialize   
> (default) on project 
> xmlui-mirage2: Execution default of goal de.saumya.mojo:gem   
>-maven-plugin:1.0.6:initialize 
> failed: Java returned: 1 -> [Help 1]
>
>
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/fb3c1013-4975-4248-8a08-f094087105e2%40googlegroups.com.


[dspace-tech] Re: Not sure where to install Dspace application and warning in database connection test

2019-08-02 Thread Mark H. Wood
On Wednesday, July 31, 2019 at 8:48:47 AM UTC-4, Michel Souza wrote:
>
> Second question: Is the warning concerning database connection test that 
> I'm receiving when the application is built or rebuilt harmful? Should I do 
> something to fix this? The warn file is attached
> Translation for the Java.net.UnknownHostException: [java] 
> java.net.UnknownHostException: poc-dspace: Name or service unknown
>
>

This appears to be a problem with your server's network configuration.  
See, for example,  
https://serverfault.com/questions/779804/fix-error-unable-to-set-localhost-this-prevents-creation-of-a-guid
 
.  I found this by asking Google for 'net.sf.ehcache.Cache "unable to set 
localhost"'

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/6753c673-9da8-4f3d-b262-18fa9ed1d843%40googlegroups.com.


Re: [dspace-tech] Show Thumbnails for item in restricted collection

2019-08-02 Thread Marc
Thank you Tim,

I missed that setting in the DSpace config file. Works a charm

kind regards
Marc

On Thursday, August 1, 2019 at 10:37:07 PM UTC+1, Tim Donohue wrote:
>
> Hi Marc,
>
> Yes! There's a configuration that does just that.  You have to enable it 
> per media filter (which generates thumbnails).  So, you'd want to figure 
> out which media filters you are using to generate those thumbnails and set 
> them in the "publicPermission" configuration here:
>
>
> https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace/config/dspace.cfg#L473-L476
>
> Good luck,
>
> Tim
> --
> *From:* dspac...@googlegroups.com   > on behalf of Marc >
> *Sent:* Thursday, August 1, 2019 4:36 AM
> *To:* DSpace Technical Support >
> *Subject:* [dspace-tech] Show Thumbnails for item in restricted collection 
>  
> Dear List,
>
> We have a collection that is setup to restrict access to bitstreams 
> attached to items. When the thumbnails are created they also have this 
> restriction. Is there any way of making the items in the thumbnail bundle 
> have Anonymous Read whilst keeping the items in the original bundle 
> restricted, without having to manually change the permissions?
>
> We have DSpace CRIS 5.10 although this should be applicable to the non 
> CRIS version.
>
> Any advice would be appreciated, as a search of the previous messages in 
> this forum and the documentation does not reveal the answer, at least that 
> I can see
>
> Kind regards
> Marc
>
> -- 
> All messages to this mailing list should adhere to the DuraSpace Code of 
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> --- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspac...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/9d7efb0e-019d-4638-99dc-ee4c27af9df3%40googlegroups.com
>  
> 
> .
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/6febf8d7-60df-48e1-b484-4b881310f799%40googlegroups.com.


[dspace-tech] How can I install dspace-ckan

2019-08-02 Thread Pham Quang Quyen
I access to: 
https://github.com/4Science/dspace-ckan?fbclid=IwAR0hrbtiRSc6jbS8LpisTb-_7C9t_E8zU_jQorCHxBHSm4X2fwvX3ZIKwWI
But I don't know how to install integrate into DSpace-CRIS 5.10.
Please help me. Thanks!

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/78e5dbc8-7399-411e-b0ba-5d6cbb7a14c9%40googlegroups.com.


Re: [dspace-tech] Pipeline to check and fix CSV metadata

2019-08-02 Thread Bram Luyten
Beautiful ! Thanks for sharing Alan 

Hope that this kind of validation/cleaning, or a more advanced warning
system, can get into the default uploader at some point.
So we can all collectively prevent eachother from shooting ourselves in the
feet with these uploads.

best,

Bram

[image: logo] Bram Luyten
*250-B Luci*us Gordon Drive, Suite 3A, West Henrietta, NY 14586
Gaston Geenslaan 14, 3001 Leuven, Belgium
atmire.com



On Wed, 31 Jul 2019 at 17:08, Alan Orth  wrote:

> Dear list,
>
> For years I've used OpenRefine to do basic sanity checks and cleaning of
> CSV files before batch upload (either directly or with SAFBuilder).
> OpenRefine makes it very easy to do things like trim whitespace, facet on
> text values or custom patterns to eyeball outliers like invalid dates or
> ISSNs, and you can even write Python (though it's Python 2 and quite
> cumbersome). This is much more powerful and methodical than using a
> spreadsheet application for the same task, but still becomes tedious when
> you have dozens of metadata fields and hundreds or thousands of records.
>
> To make a long story short, I've just written a metadata cleaning pipeline
> geared towards working with CSVs in the DSpace ecosystem. Its
> implementation is basically a series of checks and fixes applied as a
> pipeline. For example, the order is roughly:
>
> 1. Strip leading, trailing, and excessive whitespace
> 2. Strip newlines
> 3. Remove "unnecessary" Unicode characters like non-breaking spaces
> 4. Fix invalid multi-value separators like "Kenya|Ethiopia"
> 5. Drop duplicate metadata values
> 6. Validate subject terms against AGROVOC REST API
> 7. Validate languages against ISO 639-2 or ISO 639-3
> 8. Validate ISSNs and ISBNs
> 9. Validate dates against ISO 8601 (and warn if date missing)
>
> It is slightly geared towards our repository's workflow, but I think the
> implementation is simple and powerful enough that many of you could benefit
> from it. I will keep working to extend it. If you are interested in using
> or improving it you can find the code on GitHub:
>
> https://github.com/alanorth/csv-metadata-quality
>
> Regards,
> --
> Alan Orth
> alan.o...@gmail.com
> https://picturingjordan.com
> https://englishbulgaria.net
> https://mjanja.ch
> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/CAKKdN4VD5x%3DWFR8tMtPKbfVoYsYWPHDhKtYwSBCNp3JnHMk7Tw%40mail.gmail.com
> 
> .
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CACwo3X2BQq2AOe68oqgrfGFPV6hS8EWGvz6UP%3DL9_%2B3wqd%3D9BQ%40mail.gmail.com.