irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

Issue with adding template from JSON #361

Open marchoeppner opened 1 month ago

marchoeppner commented 1 month ago

Hi,

fairly new Metalnx user here, so this is possibly a trivial question/problem.

I have a working iRODS installation on my test machine, bare metal. Everything seems to work ok there.

I have then deployed Metalnx via Docker, which starts up and accesses iRODS just fine - as far as I can tell.

Now, I would like to add complex metadata templates to my setup. One way would be to manually create and populate each schema via the Metalnx Template section. But at > 100 keys, this would simply not be feasible.

Instead, I would like to upload complete schemas as pre-built JSONs.

My issue(s):

1) Where is the JSON standard for templates defined, exactly? 2) When downloading a hand-build schema if 2 keys and trying to re-upload, I simply get an "internal error".

attrib:org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.emc.metalnx.services.interfaces.MetadataTemplateException: error parsing template from JSON

So I am guessing the formatting is wrong, which kind of circles back to issue 1.

Any help would be greatly appreciated!

/M

trel commented 1 month ago

Hi @marchoeppner - welcome!

I am not sure the metadata templates parts of Metalnx ever really worked as advertised.

We'll look at this quickly, but it may be that the templates parts of this codebase will be removed in the run-up to 3.0.0.