Skip to content

SecurityContextCallableProcessingInterceptor securityContext field should volatile #6143

Closed
@lmagyar89

Description

@lmagyar89

Summary

Within class org.springframework.security.web.context.request.async.SecurityContextCallableProcessingInterceptor field securityContext should volatile.

Actual Behavior

Above mentioned field is regular field.

Expected Behavior

Since beforeConcurrentHandling method and preProcess method called on different threads to make sure there is no visibility issue volatile modifier should used.

Configuration

Version

All version affected.

Sample

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