-
Notifications
You must be signed in to change notification settings - Fork 501
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
reExportAll does not respect the exclusion of email addresses of dataset contacts from metadata export when it should according to the configuration #4683
Comments
@PaulBoon thanks for the bug report. If it helps, here's where the "exclude" logic is applied: I'm surprised that the logic above isn't used by |
Yes it's strange that it's not working, maybe it doesn't get the settings somehow. But I would like to have someone else confirm the bug, just to be sure that it's not only me or I am not doing something right here. |
On 4.8.1, I can confirm that running |
From preliminary additional investigation, I'm wondering if this behaviour could be related to API calls ending up in JsonPrinter with null SettingsServiceBean (assuming that's a condition that's actually occurring here). |
Looks like it needs a bit of debugging to confirm its the null SettingsServiceBean. BTW I am running a fork of 4.8.6. |
While I was reviewing pull request #4691 I noticed that the deprecated |
I fixed the two references to the deprecated version of the ExportService.getInstance() that @pdurbin noted above. This fixes the export All bug. The one in the ExportService itself can be called with a null parameter since it's just getting the names of the Exporters to display in the UI. I didn't fix the one in Xrecord since it's a POJO. @landreev can you take a look at it and see if it needs to be fixed. |
@sekmiller @kcondon So, in other words, this call from the OAI server should always be getting a cached copy. |
When disabling the export of email adresses in the metadata export on a existing system, we set :ExcludeEmailFromExport to true.
Newly published datasets get the correct metadata export, without the emails in DDI and JSON.
To clean all existing metadataexports, all published datasets need to be reexported.
However, after running curl http://localhost:8080/api/admin/metadata/reExportAll
the existing metadata exports are not changed, and for the new datasets the email adresses are back in the metadata exports.
The text was updated successfully, but these errors were encountered: