jfrog / jfrog-idea-plugin

JFrog IntelliJ IDEA plugin
https://jfrog.github.io/jfrog-idea-plugin/
Apache License 2.0
196 stars 31 forks source link

XRay version >3 URL? #118

Closed Smasherr closed 3 years ago

Smasherr commented 3 years ago

It's not clear from the documentation what URL I should specify to connect to XRay. Since version 3, XRay fully integrates into Artifactory so there is no more separate URL for XRay. When I'm specifying the URL of Artifactory I am getting the following error message:

image

I checked the connection with the Wireshark and found out the plugin tries to access the URL https://[MASKED]/artifactory/api/v1/system/version but this endpoint is available without v1 at https://[MASKED]/artifactory/api/system/version. Is this an incompatibility with XRay >= 3 or am I setting the wrong URL?

yahavi commented 3 years ago

Thanks for your feedback, @Smasherr.

The Artifactory and Xray API URL are a bit different. The Xray API URL ends by /xray: Artifactory API URL is: https://<jfrog-platform-url>/artifactory Xray API URL is: https://<jfrog-platform-url>/xray

In the next version we are going to allow providing the JFrog platform URL and by this way, hopefully, prevent the confusion. See https://github.com/jfrog/jfrog-idea-plugin/pull/103 for more info.

Please let me know if it helped.

Smasherr commented 3 years ago

Thank you for the quick response! https://<jfrog-platform-url>/xray works!