Giter Club home page Giter Club logo

Comments (8)

dovholuknf avatar dovholuknf commented on May 24, 2024 1

Need steps to reproduce, please? There's not quite enough information here. Just looking at this it seems correct, kenneth_bingham-laptop already exists. Seems fine

from ziti.

qrkourier avatar qrkourier commented on May 24, 2024

I was attempting to update the role attributes on this identity and sent the same value for the name field as was already assigned. If I don't send the name field the error is "name is required".

from ziti.

qrkourier avatar qrkourier commented on May 24, 2024

Before the PATCH request shown, which attempts to replace current attributes with only sandbox, the only role attribute on that identity shown in the list from ziti CLI is defaultRouters.

from ziti.

dovholuknf avatar dovholuknf commented on May 24, 2024

Try removing the name. I think in a patch you only send what changed

from ziti.

qrkourier avatar qrkourier commented on May 24, 2024

If I don't send the name field the error is "name is required".

from ziti.

qrkourier avatar qrkourier commented on May 24, 2024

Works with CLI v0.15.1 against the same controller where I observed the error.

❯ ziti edge list identities 'name="kenneth_bingham-laptop"'
id: c2b4dcd4-7295-4932-b293-5af06d2e0c14    name: kenneth_bingham-laptop    type: Device    role attributes: ["defaultRouters"]
results: 1-1 of 1

❯ ziti edge update identity kenneth_bingham-laptop --role-attributes sandbox

❯ ziti edge list identities 'name="kenneth_bingham-laptop"'
id: c2b4dcd4-7295-4932-b293-5af06d2e0c14    name: kenneth_bingham-laptop    type: Device    role attributes: ["sandbox"]

from ziti.

andrewpmartinez avatar andrewpmartinez commented on May 24, 2024

Chatted with Paul who tested it on 0.15.1 via the CLI and he reported no issue. I tested it against 0.15.1 via Postman and encountered no issue.

My personal tests were:

  1. create an identity named "a' w/ role attributes
  2. patch identity named "a" with name = "b' - worked, updated name to "b"
  3. patch identity named "b" w/ current name and new role attributes - worked, the name stayed the same, new attributes
  4. patch identity named "b" with only new role attributes - worked, new attributes, the name stayed the same
  5. patched identity name "b" with only name "a" - worked, renamed to "a"

I am inclined to close this issue.

from ziti.

qrkourier avatar qrkourier commented on May 24, 2024

The problem was that I was unintentionally renaming the identity to a name that was not unique.

from ziti.

Related Issues (20)

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.