Skip to content

HttpSessionFilter is not applied if using custom server:context-path #285

@michalpetrov

Description

@michalpetrov

Expected Behavior

Setting micronaut:server:context-path to any other value the / results in HttpSessionFilter not being applied hence session handling not working.

Not working:

micronaut:
  server:
    context-path: /foo
  session:
    http:
      cookie-path: /foo
      cookie: true

Workaround is by setting the filter regex-pattern:

micronaut:
  server:
    context-path: /foo
  session:
    http:
      cookie-path: /foo
      cookie: true
    filter:
      regex-pattern: /foo/.*

Actual Behaviour

No response

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

4.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions