WebDAV: ignore props of a found collection

When a collection was identified as one we searched for, then don't
look at its properties. If the search started with the principal, then
we are not going to learn more from the collection's properties. If
the search starts with a specific collection, then the search will stop
after reporting that collection.

Not listing further collections when searching for all databases is
probably what the user wants. Otherwise he should have used the
principal or simple the host name.
This commit is contained in:
Patrick Ohly 2011-10-04 16:17:18 +02:00
parent 7cf726d7c9
commit 77b586eb72

View file

@ -749,6 +749,8 @@ bool WebDAVSource::findCollections(const boost::function<bool (const std::string
if (!res) {
// done
break;
} else {
goto next;
}
}
@ -836,6 +838,7 @@ bool WebDAVSource::findCollections(const boost::function<bool (const std::string
}
}
next:
if (next.empty()) {
// use next untried candidate
next = "";