Skip to content
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

Fix saving/opening documents with time in the uri in eXistDB #8

Closed
obujor opened this issue Jun 8, 2018 · 5 comments
Closed

Fix saving/opening documents with time in the uri in eXistDB #8

obujor opened this issue Jun 8, 2018 · 5 comments

Comments

@obujor
Copy link
Contributor

obujor commented Jun 8, 2018

As emerged in this issue comment there are some problems with saving and opening documents containing time in the version.
The problem is probably caused by : in the uri, figure out how eXistdb handles this character.

@eltorre
Copy link

eltorre commented Jun 8, 2018

Any estimate of when will this be fixed?

What are the drawbacks of disabling eXistdb?

Is it be possible to disable the "time" field of the version instead?

@obujor
Copy link
Contributor Author

obujor commented Jun 8, 2018

I don't know when it will be fixed.
By setting existIsMainBackend to false, existDb is still used but only for writing, LIME will use file system for reading and writing. One drawback is that if you change the documents with XQuery in eXistdb you cannot access them from LIME.
The time field is optional so you can ignore it by leaving the default value.

@eltorre
Copy link

eltorre commented Jun 8, 2018

Maybe this is helpful: if eXist is an XML database, then the character : is a reserved character to be exclusively used for namespacing. As far as I know, according to the spec, it can't be escaped.

About eXistdb changing documents with XQuery: What LIME actions trigger that action? Or is that something that has to be done manually? What is the purpose of this?

@obujor
Copy link
Contributor Author

obujor commented Jun 11, 2018

Thanks for the tip, the issue is not the XML itself because the character : is inserted in an attribute. The problem is about using this character in a resource name in eXist, there are some known issues about special characters.

LIME doesn't trigger documents changing through XQuery, you can do this manually for different purposes i.e. normalizing some attributes, changing the ontology used in <references>, etc...

obujor added a commit that referenced this issue Jun 11, 2018
@obujor
Copy link
Contributor Author

obujor commented Jun 11, 2018

This is fixed now, you can save and open files with the time in the version. BUT I don't recommend you to use time in LIME because this feature is not well supported in the client, i.e. it's missing from the 'Metadata editor' and from the URI, so this information will not be included in the final AkomaNtoso.

@obujor obujor closed this as completed Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants