OpenFeign / OpenFeign/feign

JAX-RS 2 Contract doesn't handle class-level `@Path` annotations correctly

Open
#1,376 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feedback provided
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

When setting a class level path annotation, the jax-rs2 contract tries to set the base path as the target, which throws an exception because the path segment isn't an HTTP url. I'm not sure why the root path annotation is trying to set the target field since it's a path-prefix, not a target.

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

Start by locating the JAX-RS 2 contract handling for class-level @Path annotations and reproduce the exception described in the issue. Trace why the path prefix is assigned as an HTTP target, then verify that class-level paths remain prefixes and no longer trigger the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.