archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
153 stars 52 forks source link

Unable to add model to workspace #149

Closed WayneCBarker closed 2 years ago

WayneCBarker commented 4 years ago

Unable to add model to workspace (Bitbucket)

I get the following error :There was an error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target."

image

Windows Ver 10.0.16299.1625 Arch 4.7.1 Build 202007151058

Version of this plug-in

org.archicontribs.modelrepository_0.6.2.202004031233.archiplugin

Any other plug-ins installed?

No.

Expected Behaviour

Model should be added to workspace.

Actual Behaviour

Error as described above is given.

Steps to Reproduce the Behaviour

  1. Collaboration -> Add local model to workspace and publsih
  2. Fill in URL and username and password.
  3. Keep Store user name and password box selected
  4. Click Ok.
  5. Boom - Error.
jbsarrodie commented 4 years ago

Do you use an enterprise setup of bitbuckep which uses a certificate comming from a local PKI?

If yes you most certainly have to add those root certificates to Archi's JRE or try to edit Archi.ini to use Windows-root. Try looking it up on previous issues. If you don't find needed information then tell me and I'll get you the links (don't have them at hand).

Phillipus commented 4 years ago

Is this relevant?

https://github.com/archimatetool/archi-modelrepository-plugin/wiki/Use-SSL-TLS-with-local-or-private-PKI

WayneCBarker commented 4 years ago

OK cool, added the PKI entries as per the link above.

Now I get this. Is there not a error log with more detailed errors somewhere?

image

Phillipus commented 4 years ago

Is there not a error log with more detailed errors somewhere?

Unfortunately, JGit, the Java Git library, does not do logging. All we get is an exception for a git action which is shown in the error dialog. In this case an error occurs on git "push".

WatchTh1 commented 3 years ago

Has the same error as topicstarter on bitbucket server deployed in public internet with let's encrypt certificate. git clone works as expected. root certificate exists both in system keystore, and Archi keystore. (keytool throws : already exists error ).

Is this possible to configure git binary should be used to archi ? I mean tell it to use system one.

UPD: Ubuntu Linux 20.04. ca-cacert (2019.0411-2) Archi uses embedded JVM

Workaround: Use git clone. Then import repo into Archi from filesystem