listRemoteFolderItems can be accessed in multiple ways
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với các API RemoteRepository và RepositorySettings, rồi so sánh các accessor listRemoteFolderItems của chúng với thuộc tính REST duy nhất có liên quan của Artifactory được mô tả trong issue. Xác định accessor nào là nguồn chính thức cho việc đọc và ghi, sau đó xác định liệu API dư thừa có nên được loại bỏ hay không; hoàn thành nghĩa là Java API có một hành vi rõ ràng, nhất quán với REST.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
RemoteRepositoryobject and uses the value defined for theRepositorySettingsobject.
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?
- Ngôn ngữ chính
- Java
- Star
- 331
- Fork
- 163
- Merge trung bình
- 20 giờ 9 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jfrog/artifactory-client-java
-
Timeout unit not specified Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jfrog/artifactory-client-java#450 · 2 bình luận ·
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jfrog/artifactory-client-java#375 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
jfrog/artifactory-client-java#448 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
jfrog/artifactory-client-java#447 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
jfrog/artifactory-client-java#445 ·
Tất cả issue của jfrog/artifactory-client-java
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
inu-appcenter/memorIN-backend#288 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
frontend maui-pilot pilot-ask question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·