Giter Club home page Giter Club logo

Comments (4)

danflomin avatar danflomin commented on June 4, 2024

I think it happens in DeleteRepresentationCommandHandler.cs in

await _scimRepresentationCommandRepository.BulkInsert(reference.AddedRepresentationAttributes).ConfigureAwait(false);

For some reason the same attributes that are removed are also added.
Should we just remove this line?

from simpleidserver.

simpleidserver avatar simpleidserver commented on June 4, 2024

Hello,

I have verified on my local machine, and the HTTP DELETE request is functioning correctly for all the scenarios outlined below:

First scenario

  1. create a group G1.with one user in it.
  2. create a user U1.
  3. Assign the user to the group.
  4. Remove the group.

Result : the groups property of the user is removed.

Second scenario

  1. Create a group G1.
  2. Create a group G2.
  3. Create a user U1.
  4. Assign the group G1 to the group G2.
  5. Assign the user to the group G1.
  6. Remove the group G1.

Result : the groups property of the user is removed.

Could you please provide more details and explain how to reproduce this problem? :)

The portion of code you mentioned in your comment is not needed and can be commented out.
Normally, the reference.AddedRepresentationAttribute list, must always be empty.

from simpleidserver.

danflomin avatar danflomin commented on June 4, 2024

from simpleidserver.

simpleidserver avatar simpleidserver commented on June 4, 2024

Okay, of course :) I'll comment the code in the 'master' branch.

from simpleidserver.

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.