Skip to content

@BeanParam + @QueryParam don't work with Dropwizard-guice #93

@vmd408

Description

@vmd408

Dropwizard version: 1.0.0, dropwizard-guice version: 1.0.0.1

Given:
Resource method containing "@BeanParam"-annotated parameter, each field of the parameter's class is annotated with "@QueryParam(...)"

When server is running, values passed as query parameters to request are not passed to the resource method. The bean arrives with all fields' default (null) values.

Simple demo app (requires gradle)
Try to run main methods of GuiceApp and NoGuiceApp from your IDE and send get request to "localhost:8080/?foo=foo&bar=bar" to observe the issue.

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