GithubHelp home page GithubHelp logo

hguerrero / 3scale-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kristianalnaes/3scale-cms

6.0 6.0 3.0 191 KB

To maintain 3scale CMS files locally

License: MIT License

Ruby 99.82% Dockerfile 0.18%

3scale-cms's People

Contributors

4integration avatar hguerrero avatar kristianalnaes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

3scale-cms's Issues

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

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

403 Access Forbidden trying to upload file under /css/ section

Attempt to upload stylesheet file from local folder to 3scale CMS fails.

[user@locahost tmp]$ cmd <PROVIDER_KEY> <URL> upload css/developers-theme-1.css 

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 'css/developers-theme-1.css': 403 Forbidden

"/admin/api/cms" ActiveDocs not displayed in 3scale API Docs section

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

Where should I look for the Swagger or ActiveDocs for the CMS API ?

At path "/p/admin/api_docs#/account_management_api" of admin portal it's not displayed on any of following sections/operations categories:

  • Service Management API
  • Account Management API
  • Analytics API
  • Billing API
  • Policy Registry API

Either cannot locate the API definition for "/admin/api/cms" at https://github.com/3scale/porta/tree/3scale-2.8.1-GA

Container image - CMS download leads to NullPointerException

cms -k --directory=. --access-token=${ADMIN_PORTAL_URL_B2B_TOKEN} ${ADMIN_PORTAL_URL_B2B_TOKEN} https://${ADMIN_PORTAL_URL_B2B}/ download -u
Downloading accounts/users/index.html.liquid (published)
Downloading messages/_menu.html.liquid (published)
Downloading applications/alerts/index.html.liquid (published)
Downloading login
java.lang.NullPointerException
at com.fwmotion.threescale.cms.cli.DownloadCommand.performDownload(DownloadCommand.java:170)
at com.fwmotion.threescale.cms.cli.DownloadCommand.call(DownloadCommand.java:147)
at com.fwmotion.threescale.cms.cli.DownloadCommand.call(DownloadCommand.java:26)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
at picocli.CommandLine.execute(CommandLine.java:2078)
at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:40)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:131)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:69)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
at io.quarkus.runner.GeneratedMain.main(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:60)
at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:31)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.