jfrog / jfrog/artifactory-client-java

Exception: This REST API is available only in Artifactory Pro

Open
#203 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
331
Forks
163
Avg merge
20h 9m
Merged PRs (30d)
1

Description

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. 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the Artifactory server edition and license associated with the URL in the example, then review the repository and user operations involved in the client call. Compare the server's supported REST APIs with the operation that returns the error; done means determining whether the failure is caused by the server edition or by the Java client usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.