hguerrero / 3scale-cms

To maintain 3scale CMS files locally
MIT License
6 stars 3 forks source link

403 Access Forbidden trying to create the structure section/subsection/file #4

Closed rmarins closed 2 years ago

rmarins commented 4 years ago

Using: 3scale-2.8.1.GA-onprem on OCP 4.4.12

Trying to upload file with following structure topics/api-management/open-banking.html.liquid fails. This folder and sub-folder structure doesn't exist as Developer Portal sections hierarchy.

[user@localhost tmp]$ cms <PROVIDER_KEY> <URL> upload topics/api-management/open-banking.html.liquid 

Loaded ignore file list from '/tmp/.cmsignore'
Analyzing local files under '/tmp'
Getting CMS content from https://domain.com/admin/api/cms 

Failed to create 'topics/api-management/open-banking.html.liquid': Failed to create required section 'topics' for 'topics/api-management/open-banking.html.liquid' : 403 Forbidden
rmarins commented 4 years ago

After manually creating the topics/api-management sections hierarchy, the command above successfully completed.

[user@localhost tmp]$ cms <PROVIDER_KEY> <URL> upload topics/api-management/open-banking.html.liquid 

Loaded ignore file list from '/tmp/.cmsignore'
Analyzing local files under '/tmp'
Getting CMS content from https://domain.com/admin/api/cms 

Failed to create 'topics/api-management/open-banking.html.liquid': Failed to create required section 'topics' for 'topics/api-management/open-banking.html.liquid' : 403 Forbidden

The layout 'main_layout' in file 'l_main_layout.html.liquid' was selected as the default layout for uploading new pages
Created template '/topics/api-management/open-banking' in CMS with id='214' in section 'topics/api-management', timestamp '2020-07-30T02:01:33Z'
neoxu9999 commented 2 years ago

Hi @hguerrero , I got the same error. Is it possible to turn on the logs? I didn't see any debug model or the response from cms command.

hguerrero commented 2 years ago

Duplicate of #3