Re: [Dspace-tech] XOAI wrong request info

2015-03-05 Thread helix84
OK, I'm a bit lost but let's consider baseURL. Its value doesn't
originate in configuration, it's taken from current request. So if you
can access your repository in three ways (example below), it will
display three values of baseURL accordingly. With caching enabled,
the value used in the first request is cached.

https://eldorado.tu-dortmund.de/dspace-oai/request?verb=Identify
http://eldorado.tu-dortmund.de/dspace-oai/request?verb=Identify
http://eldorado.tu-dortmund.de:8080/dspace-oai/request?verb=Identify

https://github.com/DSpace/DSpace/blob/dspace-4.2/dspace-oai/src/main/java/org/dspace/xoai/data/DSpaceIdentify.java#L76-85

Please note that I tested the behaviour described above only on
current master, not on 4.2.

https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-oai/src/main/java/org/dspace/xoai/services/impl/xoai/DSpaceRepositoryConfiguration.java#L72-81


Regards,
~~helix84

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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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] XOAI wrong request info

2015-03-04 Thread Claudia Jürgen
Hi all,

got a weird effect with oai (DSpace version 4.2 + the latest security 
patches, oai caching disabled).

Validated our site with the Openarchives oai validator after the upgrade 
to 4.2 and all was ok. Now it complains about the baseUrl not matching
http://eldorado.uni-dortmund.de:8080/dspace-oai/request?verb=Identify
Validator output:
[FAIL] baseURL supplied 
'http://eldorado.uni-dortmund.de:8080/dspace-oai/request' does not match 
the baseURL in the Identify response 
'https://eldorado.tu-dortmund.de/dspace-oai/request'. The baseURL you 
enter must EXACTLY match the baseURL returned in the Identify response. 
It must match in case (http://Wibble.org/ does not match 
http://wibble.org/) and include any trailing slashes etc.

In our test instance
http://eldorado2.uni-dortmund.de:8080/dspace-oai/request it is ok.

Both run from the same sources and the same configuration (no rewrite to 
https for dspace-oai) and nothing has changed between the times of the 
two validations.

Has anyone an idea

Claudia

-- 
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@ub.tu-dortmund.de
www.ub.tu-dortmund.de


Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie 
ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der 
für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den 
Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher 
Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung 
eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. 
It is solely intended for the recipient. If you are not the intended 
recipient of this e-mail please contact the sender and delete this 
message. Thank you.
Without prejudice of e-mail correspondence our statements are only 
legally binding when they are made in the conventional written form 
(with personal signature) or when such documents are sent by fax.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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] XOAI wrong request info

2015-03-04 Thread helix84
On Wed, Mar 4, 2015 at 7:46 PM, Claudia Jürgen
claudia.juer...@ub.tu-dortmund.de wrote:
 got a weird effect with oai (DSpace version 4.2 + the latest security
 patches, oai caching disabled).

Hi Claudia,

the description part of OAI Identify response was backported to 4.x,
so most likely that's the change you weren't expecting:
https://github.com/DSpace/DSpace/commit/8fd038334e464593b3732c0ce832c4f27d77fc33#diff-2892a00c2368f97457e6ac3f2030c9e9

By default, repositoryIdentifier is configured to point to your
dspace.hostname - I assume that's the problem. You can change it here:
https://github.com/DSpace/DSpace/blob/dspace-4.2/dspace/config/crosswalks/oai/description.xml#L3

Then just restart your servlet container. You have caching turned off
(may I suggest you reconsider this decision?), so no need to run oai
clean-cache.


Regards,
~~helix84

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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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