oci artifacts generic artifact get-by-path does not encode forward slashes in --artifact-path
% oci artifacts generic artifact get-by-path --repository-id ocid1.artifactrepository.oc1.phx.0.amaaaaaavhtzrhiahynl4ahak227pxyxcmy4kxcke5ctht2vytipt6dsh4wq --artifact-path abc/def --artifact-version 1
ServiceError:
{
...
"client_version": "Oracle-PythonSDK/2.150.0, Oracle-PythonCLI/3.54.2",
"code": "NotAuthorizedOrNotFound",
"message": "Authorization failed or requested resource not found.",
"operation_name": "get_generic_artifact_by_path",
"request_endpoint": "GET https://artifacts.us-phoenix-1.oci.oraclecloud.com/20160918/generic/repositories/ocid1.artifactrepository.oc1.phx.0.amaaaaaavhtzrhiahynl4ahak227pxyxcmy4kxcke5ctht2vytipt6dsh4wq/artifactPaths/abc/def/versions/1",
"status": 404,
"target_service": "artifacts",
}
% oci raw-request --http-method GET --target-uri https://artifacts.us-phoenix-1.oci.oraclecloud.com/20160918/generic/repositories/ocid1.artifactrepository.oc1.phx.0.amaaaaaavhtzrhiahynl4ahak227pxyxcmy4kxcke5ctht2vytipt6dsh4wq/artifactPaths/abc%2Fdef/versions/1 { "data": { "artifactPath": "abc/def", "compartmentId": "ocid1.compartment......, ... "displayName": "abc/def:1", "freeformTags": {}, "id": "ocid1.genericartifact.oc1.phx.0......", ... }, "headers": { ... }, "status": "200 OK" }