-
Hi all 😄 I keep getting an error when trying to duplicate a record from one group to a different group and I have looked everywhere, I can't understand why this happens This happens in a dockerised GeoNetwork 4.2.5 - basically when I am duplicating a record from one group into another, I get a UI error saying that the id is not found and then the editing screen isn't loading for the new record. But, in the background, the record is copied and if I go to the target group's records and open the record in editing mode I can edit and save it just fine, so this makes me think it's not a permissions issue (I try to copy it with a full admin user so it should be an editor in all groups). When I try to duplicate the record in the same group, it works just fine, and the editing screen is loaded as you'd expect, so I can edit the copy straight away, without having to navigate away manually. This doesn't happen in other deployments, so I think it must be something specific to this deployment, not a general bug (hence asking for help here rather than opening an issue). I am not quite sure where to look further, so I was hoping that maybe someone has any pointers on what else to try and get to the bottom of this. 🙏 🙏 Any help would be greatly appreciated, thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I have tested locally with the tag 4.2.5 and can't reproduce the issue.
Please check in the GeoNetwork log file if it contains any exceptions that may be useful to check the error. Also check in the database if metadata with the id indicated in the error message as not found exists in the database. |
Beta Was this translation helpful? Give feedback.
-
Can you check the URL when you duplicate the metadata? Are you in the main portal I suspect you are in the subportal of the metadata, and when you duplicate it in the other group, it tries to open the metadata in the subportal of the original metadata, that doesn't have access to the duplicated metadata. The code to open the editor should always use the |
Beta Was this translation helpful? Give feedback.
Can you check the URL when you duplicate the metadata? Are you in the main portal
srv
or a subportal?I suspect you are in the subportal of the metadata, and when you duplicate it in the other group, it tries to open the metadata in the subportal of the original metadata, that doesn't have access to the duplicated metadata.
The code to open the editor should always use the
srv
portal, not the current subportal. Probably that is the problem.