Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2334)

Issue 64060043: FSA FsMonitor does not feed files with hidden ancestors (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by Brett
Modified:
10 years, 1 month ago
Reviewers:
ejona, mifern, pjo
CC:
connector-cr_google.com
Visibility:
Public.

Description

When crawling a directory, the FS adaptor will return the DocIds of hidden files and folders within that directory. A subsequent crawl request for a hidden file will return a 404. A crawl request for a hidden directory will also return a 404 - importantly its contents are not fed. The FS adaptor monitor works differently. It pays no attention to hidden files or folders and simply feeds all changed items. This results in modified files contained within a hidden directory being fed. My first inclination was to have the Monitor not feed any hidden items, but that is not consistent with the existing lister/retriever model. This change has the monitor not feed any docIds for any items with a hidden ancestor. The item itself might be hidden and still be fed. This is consistent with the existing getDocContent() behavior.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Miguel's Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/com/google/enterprise/adaptor/fs/FsAdaptor.java View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13
Brett
10 years, 2 months ago (2014-02-14 18:39:55 UTC) #1
ejona
LGTM It would be good for the commit message to say that feeding the hidden ...
10 years, 2 months ago (2014-02-14 21:49:14 UTC) #2
ejona
Miguel, how do you feel about this, since you had previously voted against it?
10 years, 2 months ago (2014-02-14 21:49:50 UTC) #3
brett.michael.johnson_gmail.com
On Feb 14, 2014, at 1:49 PM, ejona@google.com wrote: > LGTM > > It would ...
10 years, 2 months ago (2014-02-14 23:20:33 UTC) #4
mifern
Needs more work. https://codereview.appspot.com/64060043/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/64060043/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode562 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:562: if (!isVisibleDescendantOfRoot(doc.getParent())) { This fails if ...
10 years, 2 months ago (2014-02-15 00:00:20 UTC) #5
Brett
https://codereview.appspot.com/64060043/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/64060043/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode562 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:562: if (!isVisibleDescendantOfRoot(doc.getParent())) { On 2014/02/15 00:00:20, mifern wrote: > ...
10 years, 2 months ago (2014-02-15 00:09:16 UTC) #6
Brett
Miguel's Feedback.
10 years, 2 months ago (2014-02-15 00:11:16 UTC) #7
pjo
Can this CL get unit tests, including 1 for case Miguel has brought up. Thank ...
10 years, 2 months ago (2014-02-15 00:33:59 UTC) #8
brett.michael.johnson_gmail.com
Certainly, Unfortunately, the infrastructure for the tests is in FsAdaptorTest. I will add tests to ...
10 years, 2 months ago (2014-02-15 00:37:34 UTC) #9
pjo
That doesn't sound right. The tests for this CL should not be in the other ...
10 years, 2 months ago (2014-02-15 00:57:17 UTC) #10
mifern
On 2014/02/14 21:49:50, ejona wrote: > Miguel, how do you feel about this, since you ...
10 years, 2 months ago (2014-02-18 22:57:35 UTC) #11
ejona
On 2014/02/18 22:57:35, mifern wrote: > I still don't see that this is needed mainly ...
10 years, 2 months ago (2014-02-18 23:30:28 UTC) #12
Brett
10 years, 1 month ago (2014-03-07 22:34:11 UTC) #13
Abandoning this CL, as there seems to be little interest in fixing the issue.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b