spring-projects / spring-projects/spring-data-rest

Move off Expression infrastructure to apply JSON Patch paths

Open
#2,360 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: task
Dominant language
Java
Stars
958
Forks
568
PR merge metrics
No merged PRs in 30d

Description

We should investigate an alternative data binding infrastructure to avoid using expressions. While SimpleEvaluationContext is a good sandbox, SpEL provides too many options that could lead to a potential escaping of the sandbox.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by locating the current Expression-based data binding and reviewing how SimpleEvaluationContext and SpEL are used. Investigate an alternative based on JSON Patch paths and define completion as moving away from the Expression infrastructure while retaining safe data binding. No source files or tests are identified, so locating the affected implementation and coverage is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend, security
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.