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

Issue 109680045: FSA Fix b/16139028 Part 2: Do not feed docids that are too long. (Closed)

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

Description

Examination of customer log files showed frequent exceptions thrown from WindowsAclFileAttributesView.getFileSecurity() claiming that "The filename, directory name, or volume label syntax is incorrect." As it turned out, all these pathnames exceeded the maximum pathname length of 260 characters. The too-long pathnames occur when we prepend the UNC server + share syntax to the local pathname. See: http://msdn.microsoft.com/library/windows/desktop/aa365247.aspx This change avoids feeding docids that are too long. The windows version of newDocId() now throws IllegalArgumentException if the supplied pathname is too long.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Miguels feedback and add check to monitor thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -6 lines) Patch
M src/com/google/enterprise/adaptor/fs/FsAdaptor.java View 4 chunks +26 lines, -3 lines 0 comments Download
M src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java View 1 2 chunks +18 lines, -3 lines 0 comments Download
M test/com/google/enterprise/adaptor/fs/WindowsFileDelegateTest.java View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Brett
12 years, 1 month ago (2014-07-11 00:30:21 UTC) #1
mifern
https://codereview.appspot.com/109680045/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java File src/com/google/enterprise/adaptor/fs/FsAdaptor.java (right): https://codereview.appspot.com/109680045/diff/1/src/com/google/enterprise/adaptor/fs/FsAdaptor.java#newcode479 src/com/google/enterprise/adaptor/fs/FsAdaptor.java:479: } catch (IllegalArgumentException e) { delegate.getPath above hits the ...
12 years, 1 month ago (2014-07-11 01:44:10 UTC) #2
pjo
Thank you. Please apply Miguel's suggestion. Otherwise LGTM.
12 years, 1 month ago (2014-07-11 17:38:40 UTC) #3
Brett
https://codereview.appspot.com/109680045/diff/1/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java File src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java (right): https://codereview.appspot.com/109680045/diff/1/src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java#newcode266 src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java:266: if (id.length() > WinNT.MAX_PATH) { On 2014/07/11 01:44:10, mifern ...
12 years, 1 month ago (2014-07-11 21:33:18 UTC) #4
Brett
Miguels feedback and add check to monitor thread.
12 years, 1 month ago (2014-07-11 21:41:31 UTC) #5
pjo
Thank you. LGTM. Thanks for catching another "type" message.
12 years, 1 month ago (2014-07-11 21:46:08 UTC) #6
Brett
12 years, 1 month ago (2014-07-11 21:52:56 UTC) #7
Committed 11 July 2014 to Filesystem Adaptor:

To https://code.google.com/p/plexi.fs/
   fe9d9c9..f47e2c2  master -> master
Sign in to reply to this message.

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