question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: This REST API is available only in Artifactory Pro

See original GitHub issue

Hi, when I operate repository, my process finished with exit. Here is my code

 Artifactory artifactory = ArtifactoryClientBuilder.create()
                .setUrl("http://192.168.1.**:8081/artifactory")
                .setUsername("admin")
                .setPassword("?????")
                .build();
DebianRepositorySettingsImpl settings = new DebianRepositorySettingsImpl();
        settings.setDebianTrivialLayout(true);

        Repository repository = artifactory.repositories()
                .builders()
                .localRepositoryBuilder()
                .key("NewRepoName")
                .description("new local repository")
                .repositorySettings(settings)
                .build();

        String result3 = artifactory.repositories().create(2, repository);

The exception is :``` Exception in thread “main” org.apache.http.client.HttpResponseException: { “errors” : [ { “status” : 400, “message” : “This REST API is available only in Artifactory Pro (see: http://www.jfrog.com/addons.php). If you are already running Artifactory Pro please make sure your server is activated with a valid license key.\n” } ]

That's what happens when I do any operation to User. I want to know that is my code wrong or something else. 

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
smsajidcommented, Oct 6, 2020

Does repository creation through REST api require license? That’s hindrance for open source developers to integrate with Artifactory. I was trying to automate a workflow to create repos in artifactory automatically and I am getting the same error. I was expecting that whatever feature is available in OSS Web UI will be available with REST api

0reactions
briantistcommented, Jun 9, 2022

I know this is old but I have to agree with @smsajid . I am building a small open source product to integrate with Artifactory. I’m trying to set up a set of integration tests in CI with the OSS container, and running into this. It’s really a shame.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Artifactory REST API - JFrog - JFrog Documentation
Description: Promotes a Docker image from one repository to another. Supported by local repositories only. Since: 3.7. Notes: Requires JFrog Container Registry ...
Read more >
Known Issues - JFrog - JFrog Documentation
Overview. The following document lists the set of known issues in the JFrog Platform, including the version in which they were discovered, ...
Read more >
[RTFACT-4643] REST DELETE operation not allowed for OSS ...
When the DELETE command is called the Artifactory responds with 400: "This REST API is available only in Artifactory Pro (see: http://www.jfrog.
Read more >
Xray REST API - JFrog - JFrog Documentation
This section describes how to use the Xray REST API using cURL as an example. You can download cURL here. Learn how to...
Read more >
Installing Artifactory - JFrog - JFrog Documentation
mv jfrog-artifactory-<pro|oss|cpp-ce>-<version>-linux. tar .gz jfrog ... port: 8081 for Artifactory REST APIs and 8082 for all other uses.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found