Ticket #299 (defect)
Opened 3 years ago
Last modified 2 years ago
Fix makeAddrbookDn
Status: new
| Reported by: | douglm | Assigned to: | douglm |
|---|---|---|---|
| Priority: | major | Milestone: | Bedework 3.7 |
| Component: | carddav | Version: | |
| Keywords: | Cc: | ||
This is wrong
protected String makeAddrbookDn(String path,
boolean isCollection) throws WebdavException {
String remPath = path.substring(dhConfig.getPathPrefix().length() + 1);
String[] elements = remPath.split("/");
We shouldn't use the path prefix defining the handler to use. We should have a separate path prefix specifying what to remove in the above code
<pathPrefix>/user/blah</pathPrefix> <removePathPrefix>/user</removePathPrefix>
Also the code fails if the path is the same as the prefix.
Change History
04/26/09 01:47:19: Modified by douglm
- milestone changed from Bedework 3.5 to Bedework 3.6.
12/08/09 13:42:37: Modified by douglm
- component changed from unclassified to carddav.
12/14/09 15:41:44: Modified by johnsa
- milestone changed from Bedework 3.6 to Bedework 3.7.
