[JERSEY-1777] AsyncWebResource.path(String) do no copy parent ressource proerties. Created: 11/Mar/13  Updated: 10/Sep/15  Resolved: 05/Nov/13

Status: Closed
Project: jersey
Component/s: core
Affects Version/s: 1.17
Fix Version/s: 1.18

Type: Bug Priority: Major
Reporter: david.joaquim Assignee: Marek Potociar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When creating a new AsyncWebResource using path(String) method, the properties are not copied from the parent resource. There is no way to do it.

public AsyncWebResource path(String path)

{ return new AsyncWebResource(this, getUriBuilder().path(path)); }

which calls:

protected AsyncWebResource(AsyncWebResource that, UriBuilder ub)

{ super(that); this.executorService = that.executorService; this.u = ub.build(); }

 Comments   
Comment by Marek Potociar [ 13/Mar/13 ]

Moving to 1.x backlog, even though we do not have plans to dedicate resources to fix the issue any time soon given that JAX-RS 2.0 client API is going to be final together with its Jersey 2.0 support in a few weeks.

Comment by david.joaquim [ 14/Mar/13 ]

Ok

Nevertheless, the fix is small:

    protected AsyncWebResource(AsyncWebResource that, UriBuilder ub) {
        super(that);
        this.executorService = that.executorService;
        this.u = ub.build();
+       this.properties = that.getProperties().clone();
    }

As we planned not to use Jersey 2.0 before it is production ready. I'll enjoy the fix!

Thanks you!

Generated at Mon Jul 25 03:56:15 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.