Giter Club home page Giter Club logo

catalogit-api's People

Contributors

jkurz avatar wilsonodk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

sakhtar1979

catalogit-api's Issues

add authentication

  • all rest endpoints need to be authenticated
  • use auth server to implement authentication

Trying to POST the same (name, version) tuple yields a non-obvious 422 error

When trying to POST to /v1/containers with an already existing (name, version) tuple, CatalogIt will barf all over itself and return a 422 to the client with nary any indication as to what really went on:

error   10-May-2017 15:08:28    * About to connect() to catalogit.services.dmtio.net port 80 (#0)
error   10-May-2017 15:08:28    *   Trying 10.61.6.71... connected
error   10-May-2017 15:08:28    > POST /v1/containers HTTP/1.1
error   10-May-2017 15:08:28    > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
error   10-May-2017 15:08:28    > Host: catalogit.services.dmtio.net
error   10-May-2017 15:08:28    > Accept: */*
error   10-May-2017 15:08:28    > Content-Type: application/json
error   10-May-2017 15:08:28    > Content-Length: 202
error   10-May-2017 15:08:28    > 
error   10-May-2017 15:08:28    } [data not shown]
error   10-May-2017 15:08:28    * upload completely sent off: 202out of 202 bytes
error   10-May-2017 15:08:28    * The requested URL returned error: 422
error   10-May-2017 15:08:28    * Closing connection #0
error   10-May-2017 15:08:28    [ERROR] Posting image to CatalogIt failed.

This makes debugging, e.g., Bamboo build failures kind of a pain when considering CatalogIt itself as a black box.

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.