Access public link with REST API must not ask for authentication

(Doc ID 2314053.1)

Last updated on OCTOBER 09, 2017

Applies to:

Content and Experience Cloud Service - Version N/A to N/A
Information in this document applies to any platform.

Symptoms

On : 17.3.1, Documents Server

Access contents of folder through public link with REST API

Access to the public link with REST API should be asking for
username/password authentication.

business justification:
Content owners need to push content to external systems and consumers via
public links that require no authentication. This brings the functionality of
the REST API up to par with the functionality of the web interface.

Technical Justification - The customer would want to access the contents of
the folder through the
public link with REST API.
The folder has a public link, with "anyone" set to be able to download.
getting a 401 error. He is NOT specifying a username/pass in the curl
command as they trying to anonymously access the content through the
public link.

Changes

 confirmed from the response

Response:

* Trying 160.34.0.74...
* TCP_NODELAY set
* Connected to docs-dev.documents.oraclecloud.com (10.34.0.74) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate: *.documents.oraclecloud.com
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET /documents/api/1.2/folders/FB6578AB77E79366821C724D91FEABD9B481A6BCB7F5/items HTTP/1.1
> Host: docs-dev.documents.oraclecloud.com
> User-Agent: curl/7.54.0
> Accept: */*
> LinkID: LF30E3DFC568D7B7D03B44E391B481A6BCB7F5
>
< HTTP/1.1 401 Authorization Required
HTTP/1.1 401 Authorization Required
< Date: Wed, 13 Sep 2017 03:02:06 GMT
Date: Wed, 13 Sep 2017 03:02:06 GMT
< Server: Oracle-Application-Server-11g
Server: Oracle-Application-Server-11g
< Content-Length: 0
Content-Length: 0
< X-ORACLE-DMS-ECID: 005MG_Y^ynV6uHFpR0WByd0003Qt0001n4
X-ORACLE-DMS-ECID: 005MG_Y^ynV6uHFpR0WByd0003Qt0001n4
< WWW-Authenticate: BASIC realm="owsm",oit,Negotiate,Bearer
WWW-Authenticate: BASIC realm="owsm",oit,Negotiate,Bearer
< Content-Type: text/plain
Content-Type: text/plain
< Content-Language: en
Content-Language: en

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms