All Products
Search
Document Center

Object Storage Service:0026-00000012

Last Updated:Apr 29, 2024

Problem description

The object to which the symbolic link points does not exist.

Causes

You initiated a request to access a symbolic link, but the object to which the symbolic link points does not exist. As a result, the error is returned.

Examples

The following code shows a sample request:

HEAD /link-to-nothing HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 02 Jan 2019 13:28:38 GMT
Authorization: OSS qn6q**************:77Dv****************

In the preceding request, the link-to-nothing object that you want to access is a symbolic link, and the object to which the link-to-nothing object points does not exist. As a result, the error is returned.

Solutions

Initiate a GetSymlink request to query the path of the object to which the symbolic link points. Sample request:

GET /link-to-nothing?symlink HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 02 Jan 2019 13:28:38 GMT
Authorization: OSS qn6q**************:77Dv****************

Sample response:

HTTP/1.1 200 OK
Server: AliyunOSS
Date: Wed, 02 Jan 2019 13:28:38 GMT
Last-Modified: Wed, 01 Jan 2019 13:28:38 GMT
Content-Length: 0
Connection: keep-alive
x-oss-request-id: 5650BD7****FB30443962F9A
x-oss-symlink-target: file-not-exist
ETag: "A797938C31D59EDD08D86188F6D5****"

The x-oss-symlink-target field specifies that the object to which the link-to-nothing object points is the file-not-exist object. If the file-not-exist object does not exist in the bucket and you initiate a HeadObject request to access the link-to-nothing object, the error is returned. Make sure that the object to which the symbolic link that you access points exists.

References