Giter Club home page Giter Club logo

fiware-keystone-scim's Issues

bug in pagination

users are paginated in a wrong way.

If I create 18 users like:
user1... user18 and then I try to list then I see:

keystone scim API: "GET /v3/OS-SCIM/Users?domain_id=2d11ea01a00c423b919cb336adb99c76&startIndex=0&count=15"

Keystone scim API: GET /v3/OS-SCIM/Users?domain_id=2d11ea01a00c423b919cb336adb99c76&startIndex=15&count=15

So its seems a keystone-scim bug/issue https://github.com/telefonicaid/fiware-keystone-scim

Pagination do not works listing users without provide domain_id

Works OK:

curl -s -X GET -H "x-auth-token: $SMARTVALENCIA_ADMIN_TOKEN" \
  "http://${KEYSTONE_HOST}/v3/OS-SCIM/Users?domain_id=${ID_DOM1}&startIndex=1&count=1"

Do not works (do not returns just 1)

curl -s -X GET -H "x-auth-token: $CLOUD_ADMIN_TOKEN" \
  "http://${KEYSTONE_HOST}/v3/OS-SCIM/Users?startIndex=1&count=1"

Provide full SCIM pagination results

According with SCIM spec: http://www.simplecloud.info/specs/draft-scim-api-01.html section 3.2.2.3 pagination results should provide totalResults, ItemsPerPage, startindex

itemsPerPage    Non-negative Integer. Specifies the number of search results returned in a query response page; e.g., 10.
totalResults    Non-negative Integer. Specifies the total number of results matching the Consumer query; e.g., 1000.
startIndex  The 1-based index of the first result in the current set of search results; e.g., 1. 

errors should respect Accept header

When I issue this command, requesting a resource id with spaces in it, curl http://localhost:35357/v3/OS-SCIM/Users/"name with spaces" -H "X-Auth-Token: valid_token" -H "Content-Type: application/json" -H "Accept: application/json", I get the following HTML content describing the error, instead of the typical Json format:

<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad request syntax ('GET /v3/OS-SCIM/Users/name with spaces HTTP/1.1').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>

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.