Error When Publishing Changes To Git Repo

Started by Christian, August 29, 2022, 08:21:04 AM

Previous topic - Next topic

Christian

Hi @all,

I have a problem publishing the changes of my model to a Git repository. Archi gives the following error dialogue and does not push any changes (my Archi is in German, the text is translated by me):

Publish Changes

There was an error: DOCTYPE is invalid in case the feature "http://apache.org/xml/features/disallow-doctype-decl" is set to "true"

Is there a setting or anything else I can do to mitigate this? Thanks in advance!

Phil Beauvoir

#1
I've not seen this error before. This relates to an XML loading feature set to disallow DOCTYPE loading in case of XSS exploits. It shouldn't affect coArchi, as it's been set to that since coArchi version 0.8.1 and no-one else has reported the issue.

I can't see how this could happen as coArchi doesn't load XML files with a DOCTYPE declaration in the XML files. Perhaps the server is misconfigured and is returning data with a DOCTYPE?

You'll have to narrow the problem down at your end or at least provide more information to reproduce the problem. Does it happen with all git models? Or just one? Is the git repository working for other users? Have you checked server config?
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Christian

Quote from: Phil Beauvoir on August 29, 2022, 09:59:20 AMit's been set to that since coArchi version 0.8.1

Unfortunately I cannot find the coArchi version, the main Archi version is 4.9.1.

Quote from: Phil Beauvoir on August 29, 2022, 09:59:20 AMPerhaps the server is misconfigured and is returning data with a DOCTYPE?

Quote from: Phil Beauvoir on August 29, 2022, 09:59:20 AMDoes it happen with all git models? Or just one? Is the git repository working for other users? Have you checked server config?

No, just this one. We are maintaining different models on different branches in this repo. The other models are working just fine. However, on my branch I had just a plain model and imported my model from a local folder before trying to commit it initially.

Regarding server config: do you mean git server config or are there some other additional Archi related settings?

Phil Beauvoir

#3
You'll need to provide the exact steps to reproduce the problem, otherwise it's not possible to diagnose this.

The only way that you'd get that error is by opening an XML file, either in Archi itself or using coArchi, that contains an XML DOCTYPE declaration. Archi *.archimate files and exchange format files don't use these declarations.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Jean-Baptiste Sarrodie

Hi,

I've seen people reporting this error sometime. To my knowledge, it was always related to a wrong git repo url (e.g. using the gitlab/github/whatever url instead of the real repo url use to clone it). In such case coArchi gets an HTML file which (in HTML 5) usually include a doctype.

As Phil's said, without more details (repo url as it appears in Archi, steps from import to error, screenshot of repo content on your server....) we won't be able to help.

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.