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

Handle http schemas #38

Open
ilovan opened this issue Nov 15, 2018 · 3 comments
Open

Handle http schemas #38

ilovan opened this issue Nov 15, 2018 · 3 comments

Comments

@ilovan
Copy link
Contributor

ilovan commented Nov 15, 2018

Decision:

  1. CWRC will add proxies for the established TEI customizations (https://trello.com/c/hy4CcGsk)
  2. For non-TEI schemas and otehr TEI customizations,
    a. provide more detailed error message (i.e. why the schema is failing)
    b. provide documentation (re saving and referencing copies of the schemas in GitHub repos)
    c. ensure the Git-Writer Git server supports referencing the GitHub schemas

Archived description:

In the revamped Git-Writer, users can load any xml document, with any schema declared, including http schemas which are currently not supported by CWRC-Writer. We need to either
find

  • a way for CWRC Writer to read non https schemas, or
  • a way to automatically add a proxy for the http schemas when used in Git-Writer.

We discussed this problem with James and Andrew multiple times in the past and it looks like the former is not a viable solution.

Re the latter, would it be possible to have a setup where:

  1. Git-Writer would check the schema of an uploaded document and if http identified, send a call to the CWRC server
  2. On the CWRC Server, the call from GitWriter would trigger a script that would create an on-the fly proxy and pass it back to Git-Writer
  3. GitWriter would use the proxy while the document is open and send another call to the CWRC server when the document is closed to remove the proxy

Do you think this would be doable, @jefferya ?

@ilovan
Copy link
Contributor Author

ilovan commented Nov 16, 2018

FYI, @ajmacdonald :

EpiDoc proxy: https://cwrc.ca/epidoc/schema/latest/tei-epidoc.rng on this card

@ajmacdonald
Copy link
Collaborator

Related discussion: cwrc/DEPRECATED-CWRC-Writer#386

@ilovan
Copy link
Contributor Author

ilovan commented Aug 9, 2019

Remaining to do:

For non-TEI schemas and other TEI customizations that either:

  1. don't have https

or

  1. have https but don't have CORS enabled
  • provide more detailed error message (i.e. why the schema is failing)
  • provide documentation (re saving and referencing copies of the schemas in GitHub repos)
  • ensure the Git-Writer Git server supports referencing the GitHub schemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants