Uploaded image for project: 'mod-authtoken'
  1. mod-authtoken
  2. MODAT-107

Filter returns X-Okapi-Module-Tokens on error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • 2.9.0
    • 2.9.1
    • CP: sprint 125
    • 2
    • Core: Platform

    Description

      mod-authtoken returns headers in case of 403-type of errors, such as X-Okapi-Module-Tokens. This tricked Okapi to save them (OKAPI-1037).. But in general, headers like these should not be returned in case of errors.

      It can be spotted in code sections easily - as if the mod-authtoken deliberately wants to return that header always.

      https://github.com/folio-org/mod-authtoken/blob/ee0ada57495b2613191cb2cc4880c32fcef577bc/src/main/java/org/folio/auth/authtokenmodule/MainVerticle.java#L706

      https://github.com/folio-org/mod-authtoken/blob/ee0ada57495b2613191cb2cc4880c32fcef577bc/src/main/java/org/folio/auth/authtokenmodule/MainVerticle.java#L724

      https://github.com/folio-org/mod-authtoken/blob/ee0ada57495b2613191cb2cc4880c32fcef577bc/src/main/java/org/folio/auth/authtokenmodule/MainVerticle.java#L755

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss (Inactive)
                adam Adam Dickmeiss (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases