PILLUTLAAVINASH / google-enterprise-connector-manager

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

Log an error if GSA is rejecting feeds from connector(s) #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In Admin Console, on the Feeds page, exclude access from connector(s)
2. Set up a Connector to start sending feeds

What is the expected output? What do you see instead?
1. An error gets logged about the GSA not accepting feeds.

What version of the product are you using? On what operating system?
GSA 5.0
Windows XP
JDK 1.4.2
Sharepoint Connector 1.0.2

Please provide any additional information below.
It would be nice to see an error message that tells me the GSA is not
accepting feeds.  I was under the impression that it takes a while to get
things started, but it was actually a problem with the feed IP restriction.

Original issue reported on code.google.com by enterpri...@gmail.com on 11 Apr 2008 at 9:10

GoogleCodeExporter commented 8 years ago
Marty mentioned that we log a WARNING. He will investigate and change it to an 
ERROR.

Original comment by mobe...@gmail.com on 18 Apr 2008 at 10:38

GoogleCodeExporter commented 8 years ago
r778 | mgronber | 2008-04-30 09:21:09 -0700 (Wed, 30 Apr 2008) | 29 lines

Fix Issue 74 - Log an error if GSA is rejecting feeds from connector(s).

Currently the Connector Manager will log this as a Warning and throw a
PusherException containing the response code.  I have updated this to now log at
SEVERE level and added more information to the message used to create the
PusherException.

This type of error should now result in the following:

Apr 29, 2008 5:35:05 PM 
com.google.enterprise.connector.traversal.QueryTraverser runBatch
SEVERE: Error - Unauthorized Request: Client is not authorized to send feeds. 
Make
sure the GSA is configured to trust feeds from your host.
com.google.enterprise.connector.pusher.PushException: Error - Unauthorized 
Request:
Client is not authorized to send feeds. Make sure the GSA is configured to trust
feeds from your host.
        at com.google.enterprise.connector.pusher.DocPusher.take(DocPusher.java:688)
        at
com.google.enterprise.connector.traversal.QueryTraverser.runBatch(QueryTraverser
.java:120)
        at
com.google.enterprise.connector.scheduler.TraversalScheduler$TraversalWorkQueueI
tem.doWork(TraversalScheduler.java:359)
        at
com.google.enterprise.connector.common.WorkQueueThread.run(WorkQueueThread.java:
83)

ChangeLog:

*
projects/connector-manager/source/java/com/google/enterprise/connector/traversal
/QueryTraverser.java:
  - Changed Log level from WARNING to SEVERE and removed redundant stack trace.

*
projects/connector-manager/source/java/com/google/enterprise/connector/pusher/Do
cPusher.java:
  - Creted a more descriptive message for the PusherException.

*
projects/connector-manager/source/java/com/google/enterprise/connector/pusher/Gs
aFeedConnection.java:
  - Added some constants to describe possible failure responses from the GSA.

Original comment by mgron...@gmail.com on 30 Apr 2008 at 4:29

GoogleCodeExporter commented 8 years ago

Original comment by mgron...@gmail.com on 19 Jun 2008 at 6:35