Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

listRemoteFolderItems can be accessed in multiple ways

オープン
#337 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
api

調査の方向性

RemoteRepository API と RepositorySettings API から調査を始め、両者の listRemoteFolderItems アクセサーを、issue に記載されている関連する単一の Artifactory REST プロパティと比較します。読み取りと書き込みのどちらにおいて、どのアクセサーを正式なものとするかを判断し、そのうえで冗長な API を削除すべきかを定義します。完了とは、Java API の動作が REST と整合した、曖昧さのないものになることです。

索引モデルが issue の本文から書いたものです。

説明

question

In the Java API there are two ways to get or set a remote repository's listRemoteFolderItems property, one via the RemoteRepository class, and one via the RepositorySettings class. E.g.:

RemoteRepository repo = /* ... a generic remote repository ...*/;

repo.isListRemoteFolderItems(); // 1
((GenericRepositorySettings)repo.getRepositorySettings()).getListRemoteFolderItems(); // 2

When I check the REST API of Artifactory, there's only a single related property, so it's a bit confusing to have two ways of accessing it.

More importantly, it seems that the two properties work a differently:

  • When I read a remote repository from Artifactory, both properties are set according to the value on the server.
  • When I write the repository, it ignores the property on the RemoteRepository object and uses the value defined for the RepositorySettings object.

Which of these properties should be used? Is it ok in all cases to just use the property in the RepositorySettings object and simply ignore the property on the RemoteRepository?

If so, would it be possible to change artifactory-client-java and remove the unnecessary one?

主要言語
Java
スター
331
フォーク
164
平均マージ
20時間 9分
マージ済み PR(30日)
1

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jfrog/artifactory-client-java のほかの issue

jfrog/artifactory-client-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。