-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAI PMH: Invalid Identify-Response #4597
Comments
@youssefOuahalou yes, this does still appear to be an issue. I just tried it with Harvard Dataverse running Dataverse 4.20 and got the same error you did: As always, pull requests are welcome! 😄 |
@pdurbin Do you think that errors can appear elsewhere due to this? |
@youssefOuahalou it's possible but I'm not aware of other errors, other problems. That said, it would be nice to get Dataverse to pass these tests completely. |
@pdurbin Okay thank you so much :D |
@pdurbin As I suspected, the Identify XML response is created by the third party library XOAI. If you don't supply your own description for the Identify XML, the library automatically adds the
I could make a Pull Request for the fix, let me know what your thoughts are. |
The default values seem fine but it would be nice if they could be configurable. If it's not too hard to make a pull request, please go ahead. Sometimes it's easier to talk about code than words. 😄 |
@pdurbin I made a pull request for the current fix and I'll look into making it configurable. Somewhere in the UI I suppose, no? |
@JingMa87 for now it's better to have it configurable with a database setting without worrying about the UI. I would suggest looking at this example of a configurable setting:
That's from the file you touched in your pull request (#7062). |
@pdurbin I'm adding the new settings in the setup_all.sh script for new installations and also in one of those upgrade_v4.10.1_to_v4.11.sql files. How should I call the new upgrade file? I tested both the sql file and reinstalling dataverse which triggers the setup file. Both are working. |
@JingMa87 well, for a database setting, you may not need a SQL script, and you may not need to change the setup script either. We use a convention of having a "sane default" for database settings. Here's an example: String saneDefault = "http://guides.dataverse.org"; So if you hard code some sane defaults (maybe the ones you're using now), that's fine. And if people want to change them, they can do this on their own after installation is complete. The important thing, of course, is to document the database options. And we would appreciate if you add a release note in your pull request. The process is here: http://guides.dataverse.org/en/4.20/developers/making-releases.html#write-release-notes . You could just write "added the following database options: [one], [two], [three]". p.s. Since you asked, here's our process for SQL script naming, etc: http://guides.dataverse.org/en/4.20/developers/sql-upgrade-scripts.html |
There seems to be a problem with the OAI-PMH-Identify-Response.
Different OAI-PMH validators report an invalidity of the
Dataverse OAI-Identify response:
For example:
OAI-PMH URL: https://heidata.uni-heidelberg.de/oai
ERROR: Identify response well-formed but invalid: Element 'XOAIDescription': This element is not expected. Expected is ( ##other{http://www.openarchives.org/OAI/2.0/}* )., line 1
Our Dataverse version is 4.8.2
The text was updated successfully, but these errors were encountered: