PILLUTLAAVINASH / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
0 stars 0 forks source link

QueryTraverser swallows RepositoryException causing further problems #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

QueryTraverser directly and indirectly squelches thrown
RepositoryExceptions and this leads to runBatch throwing
NullPointerExceptions, for different reasons. 

What is the expected output? What do you see instead?

A.  If resumeTraversal throws a RepositoryException, then resultSet is null
when iterator is called on line 77. Similarly, though much less likely, if
resultSet.iterator throws a RepositoryException, then iter will be null
when hasNext is called on line 85.

B.  If the call to getStream on the google:content property throws a
RepositoryException, a null InputStream will be used to construct the
SequenceInputStream that is eventually passed to DocPusher.take. That
method will throw a NullPointerException when it gets to the null stream.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by donald.z...@gmail.com on 24 Jan 2007 at 12:11

GoogleCodeExporter commented 8 years ago
Brian, please add to backlog.

Original comment by donald.z...@gmail.com on 24 Jan 2007 at 12:11

GoogleCodeExporter commented 8 years ago
Google Bug #243983

Original comment by vjo...@gmail.com on 9 Feb 2007 at 4:17

GoogleCodeExporter commented 8 years ago
Fixed in r441.

Original comment by mgron...@gmail.com on 3 Oct 2007 at 9:44

GoogleCodeExporter commented 8 years ago

Original comment by mgron...@gmail.com on 3 Oct 2007 at 10:49