eeditiones / tei-publisher-app

The main TEI Publisher app
https://teipublisher.com
GNU General Public License v3.0
68 stars 33 forks source link

issues uploading documents in playground #145

Closed rerouj closed 1 year ago

rerouj commented 1 year ago

Hi,

I'm new with TEI publisher, I was trying to add a new document in the "playground" collection but nothing appends. More precisely, the document is well uploaded in the existdb database but the document is not displayed on the TEI Publisher UI.

Also, after uploading the document, a link is displayed on the upload box. When I press the link, an error page is displayed with the following message:

the server did not return any content

The request to the server failed.: Document playground/tei_output.xml not found [at line 452 of /db/apps/tei-publisher/modules/lib/api/document.xql]

the server did not return any content

The request to the server failed.: Document playground/tei_output.xml not found [at line 452 of /db/apps/tei-publisher/modules/lib/api/document.xql]

I suspect some sort of user privileges error, because the document is in the database, but the system for a certain reason can't access it.

Issue is observed in the following environnements:

I don't know if the project is still maintained (no new issues from 2021...) but I hope somebody could bring me some help.

tuurma commented 1 year ago

@rerouj can you check, i.e. via eXide where in the collection structure of the database the file is uploaded and what are the privileges? Which user do you log in as, tei-demo or tei?

rerouj commented 1 year ago

@tuurma it's in /db/apps/tei-publisher/data/playground. I've tried with both account.

Screenshot 2023-03-03 at 12 57 38

here are the privileges :

Screenshot 2023-03-03 at 13 10 42
tuurma commented 1 year ago

This looks legit. I'd suggest following further diagnostics:

  1. Can you check the content of the file, in particular the namespace?
  2. If you check the Network tab in your browser when opening the Playground collection in Publisher, are there any errors?
rerouj commented 1 year ago

Well, I didn't realize that TEIpublisher was expecting documents complying with TEI guidelines... my xml used to have a bunch of TEI elements and the good namespace but was not well formed.

I have tried again with a more standard TEI document and now it works.

Thank's for your help!