Giter Club home page Giter Club logo

Comments (7)

AndersAbel avatar AndersAbel commented on June 4, 2024 1

@bNobo I have reproduced the error and am looking into possible ways to solve this.

Currently the error handling will call LogError() with the exception and then return an empty collection of grants.

I think that the error logging can be moved to be done per grant. This would log each grant error individually. Those grants that caused a failure are ignored and the rest returned.

An alternative is to collect a list of deserialization/unprotect failures and log an aggregate exception to avoid spamming the logs with individual errors.

I would prefer an aggregate exception to just write one Error log per call to GetAllUserGrantsAsync. @brockallen @josephdecock what do you think?

from identityserver.

bNobo avatar bNobo commented on June 4, 2024 1

I gave it a try and the patch fixed the issue. Thx !

from identityserver.

AndersAbel avatar AndersAbel commented on June 4, 2024

Thank you for your detailed error report and reproduction steps.

from identityserver.

josephdecock avatar josephdecock commented on June 4, 2024

I don't have a strong opinion here, but it probably is simpler to implement with individual errors logged, and a single value might be slightly easier to consume/search for in a log than a list?

from identityserver.

brockallen avatar brockallen commented on June 4, 2024

@AndersAbel is this something we're targeting our 7.0 release for a fix?

from identityserver.

brockallen avatar brockallen commented on June 4, 2024

PR merged.

from identityserver.

brockallen avatar brockallen commented on June 4, 2024

@bNobo we released patch 6.3.8 for this today, so please give it a try. thanks

from identityserver.

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.