Closed alseddnm closed 9 years ago
fixed CANCEL observe issue..
@alseddnm : is this branch going to be improved per the requests so we can finally merge this PR?
Thx @alseddnm, I integrate your pull-request.
When you mess a commit (like imports in this PR), you can fix it by using a commit --amend
and a push --force
on your branch.
A good way to keep a clear git history.
fixed CANCEL observe issue.. It is a bug in client servlet line 285 -> added forward slash before observe before: String target = StringUtils.substringsBetween(req.getPathInfo(), clientEndpoint, "observe")[0]; after: String target = StringUtils.substringsBetween(req.getPathInfo(), clientEndpoint, "/observe")[0];
TARGET always = /objectId/objectInstance/resourceId/ ----- in ObservationRegistryImpl.java line 118, the key in the map does't contain the forward slash at the end..
I changed doPost also line 205 clientServlet.java.