macpd / google-enterprise-gdata-api Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/google-enterprise-gdata-api
Automatically exported from code.google.com/p/google-enterprise-gdata-api
What steps will reproduce the problem?
1. Create a report with a name that is >20 characters via the api
2. It will show up in the Web interface, but it cannot be edited or deleted
What is the expected output? What do you see instead?
Expect that the API will not allow creation of reports with invalid names
What version of the product are you using? On what operating system?
Admin API 1.0
GSA 6.0
Java code running on Windows
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 30 Jun 2009 at 7:55
What steps will reproduce the problem?
1. Following steps set out in "Google Search Appliance Administrative API
Developer's Guide: Java" for "Updating the Host Load Schedule"
2. Specify host exclusion for whole day: e.g.
updateEntry.addGsaContent("www.example.com 0 0 0.0");
What is the expected output? What do you see instead?
Expect it to update the schedule, instead get
"com.google.gdata.util.ServiceException: time overlap for host: www.example.com"
What version of the product are you using? On what operating system?
gsa-admin-api-java-1.0.0
Please provide any additional information below.
On the help center
(http://code.google.com/apis/searchappliance/documentation/62/help_gsa/crawl_sch
ed.html), in the section for "Host Load Schedule" and subsection "Determining
Exceptions to Web Server Host Loads" it states:
"To set a period of 24 hours, use 12 a.m. as the start time and 12 a.m. as the
end time."
This does work if I specify the configuration through the browser.
Original issue reported on code.google.com by [email protected]
on 7 Dec 2011 at 12:40
What steps will reproduce the problem?
1. C#.NET Sample code from following URL
http://code.google.com/apis/searchappliance/documentation/62/gdata/a
capi_cs.html#RetrievingASearchReport
returns null for
entry.GetGsaContent("reportContent");
Even though there is content in that report, and the Java API works fine for
the same report(s)
What is the expected output? What do you see instead?
Report Content is expected, but nothing is returned.
What version of the product are you using? On what operating system?
GSA 6.2.0.G.14
Visual Studio 2008
.NET DLLs version 1.3.1.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Mar 2010 at 8:22
What steps will reproduce the problem?
1. Using C# .NET project
2. GsaEntry entry = myService.GetEntry("searchReport",
"reportname@default_collection");
What is the expected output? What do you see instead?
Should allow: string status = entry.GetGsaContent("reportState");
I see error: Execution of request failed:
http://search.xyz:8000/feeds/searchReport/reportname%2540default_collection
What version of the product are you using? On what operating system?
GSA 6.2.0 G. 14
Visual Studio 2008
Gdata libs 1.3.1.0
Please provide any additional information below.
Just using sample code from:
http://code.google.com/apis/searchappliance/documentation/62/gdata/acapi_cs
.html#RetrievingASearchReport
Original issue reported on code.google.com by [email protected]
on 11 Mar 2010 at 2:57
What steps will reproduce the problem?
1.Read the docs on
http://code.google.com/apis/searchappliance/documentation/62/gdata/acapi_java.ht
ml#RetrievingKeyMatchSettings
2.try to follow the sample
What is the expected output? What do you see instead?
A list of keymatches
What version of the product are you using? On what operating system?
Java
Please provide any additional information below.
To correct the error, the code snippet should read:
-------------------------------------------------
Map<String, String> queryMap = new HashMap<String, String>();
// Initialize the query map
queryMap.put("query", "myQuery");
queryMap.put("startLine", "0");
queryMap.put("maxLines", "50");
// Send the request and print the response
GsaEntry myEntry = myClient.getEntry("keymatch", "myFrontend",queryMap);
while (Map.Entry<String, String> me : myEntry.getAllGsaContents().entrySet()) {
if (me.getKey().matches("\\d+")) {
System.out.println("The lines for " + my.getKey() + " are: " +
my.getValue());
}
}
System.out.println("The number of lines are: " +
myEntry.getGsaContent("numLines"));
-------------------------------------------------
Original issue reported on code.google.com by [email protected]
on 9 Apr 2010 at 12:29
What steps will reproduce the problem?
1. Try to run sample dashboard application from it.
2. I have also copy and jar file from its lib folder and set jar file path
in CLASSPATH variable of environment variable.3.
What is the expected output? What do you see instead?
Run dashboard sample application.
What version of the product are you using? On what operating system?
Product version: gsa-admin-api-java-1.0.0
Operating system: XP professional
Please provide any additional information below.
I am getting error after running program:
D:\Download\GSA\gsa-admin-api-java-1.0.0\gdata\java>ant -f build-
samples.xml sam
ple.dashboard.run
Buildfile: build-samples.xml
sample.dashboard.dependencies:
template.require.service.jar:
sample.dashboard.build:
[javac] Compiling 4 source files to D:\Download\GSA\gsa-admin-api-
java-1.0.0
\gdata\java\sample\dashboard\classes
[javac] D:\Download\GSA\gsa-admin-api-java-1.0.0\gdata\java\sample
\dashboard
\DashAddServerForm.java:19: cannot access
com.google.enterprise.apis.client.GsaC
lient
[javac] bad class file: D:\Download\GSA\gsa-admin-api-java-1.0.0\gdata
\java\
lib\gdata-gsa-1.0.jar(com/google/enterprise/apis/client/GsaClient.class)
[javac] class file has wrong version 50.0, should be 49.0
[javac] Please remove or make sure it appears in the correct
subdirectory of
the classpath.
[javac] import com.google.enterprise.apis.client.GsaClient;
[javac] ^
[javac] 1 error
BUILD FAILED
D:\Download\GSA\gsa-admin-api-java-1.0.0\gdata\java\build-samples
\dashboard.xml:
49: Compile failed; see the compiler error output for details.
Total time: 1 second
Original issue reported on code.google.com by [email protected]
on 14 Oct 2009 at 6:09
All external script to configure Kerberos settings (KDC), uploading the
Keytab file, and enable/disable Kerberos.
Original issue reported on code.google.com by [email protected]
on 26 Dec 2009 at 3:41
What steps will reproduce the problem?
1.initialize a new GsaEntry, set its Id, and add a TWO GsaContents
entry.addGsaContent("updateMethod", "append");
entry.addGsaContent("newLines", newLines);
2.generate xml from the entry and save to file -- entry.generate(xmlWriter,
extProfile)
3.use the generated XML to construct a GsaEntry
ParseSource source = new ParseSource(new FileInputStream(xmlFile));
GsaEntry entryFromXml = GsaEntry.readEntry(source, GsaEntry.class, new
ExtensionProfile());
4. System.out.println(entryFromXml.getAllGsaContents().size());
What is the expected output? What do you see instead?
Expected = 2
Actual = 0
What version of the product are you using? On what operating system?
I am using 6.2 gdata api on a windows xp environment
Please provide any additional information below.
I am not sure if this is a bug or a correct behavior.
if it is the correct behavior, how can one get GsaContents from GsaEntry
objects parsed from xml
thanks,
abel
Original issue reported on code.google.com by [email protected]
on 19 May 2010 at 7:44
What steps will reproduce the problem?
1. Wrote a client Program to export keymatches
2. Set Java version to 5.0 (JDK1.5)
3. Set all admin related binaries in the classpath.
What is the expected output? What do you see instead?
Error: class file has wrong version 50.0, should be 49.0
When changing the java version to jdk1.6 it works fine.
What version of the product are you using? On what operating system?
Windows
Please provide any additional information below.
GSAClientDemo.java:4: cannot access
com.google.enterprise.apis.client.GsaEntry
bad class file: C:\Google\Admin\gdata\java\lib\gdata-gsa-1.0.jar
(com/google/enterprise/apis/client/GsaEntry.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import com.google.enterprise.apis.client.GsaEntry;
^
1 error
Original issue reported on code.google.com by [email protected]
on 26 Oct 2009 at 11:56
What steps will reproduce the problem?
1. Have a Search Report in state "Failed" (Ex. Report "abc" in collecion
"default_collection")
2. Create a GsaEntry for that report:
GsaEntry entry = myService.GetEntry("searchReport", "abc@default_collection");
What is the expected output? What do you see instead?
Expected Result: A GsaEntry object representing the abc report;
Actual Result: A Exception (See Additional Info).
What version of the product are you using? On what operating system?
GSA Version: 6.2.0.G44
API .NET: 1.0.0.1
VS 2008 Express Edition
Please provide any additional information below.
Stack Trace in attach.
Original issue reported on code.google.com by [email protected]
on 18 Jun 2010 at 2:54
Attachments:
What steps will reproduce the problem?
I am trying to create a GSA CLIENT object. i have entered the arguments as
below.
1.gsaClient = new GsaClient("152.96.99.41",8000, "user", "pwd");
i get the below error
com.google.gdata.util.AuthenticationException: Error authenticating (check
service name)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(Unknown Source)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(Unknown Source)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(Unknown Source)
at com.google.gdata.client.GoogleService.setUserCredentials(Unknown Source)
at com.google.gdata.client.GoogleService.setUserCredentials(Unknown Source)
at com.google.enterprise.apis.client.GsaClient.<init>(Unknown Source)
at com.google.enterprise.apis.client.GsaClient.<init>(Unknown Source)
at sample.aclclient.AclClient.main(AclClient.java:149)
-------------------------------------------------------------------------
Do i need to make any configuration changes in GSA like adding my local systems
address in trusted ip.
please help me for the same
Original issue reported on code.google.com by [email protected]
on 19 Oct 2010 at 2:04
What steps will reproduce the problem?
1. Use a JRE 1.5 with libraries
2. You will get "Caused by: java.lang.UnsupportedClassVersionError:
(com/google/gdata/util/ServiceException) bad major version at offset=6"
What is the expected output? What do you see instead?
Expected this to work with JRE 1.5 (Java 5), but apparently the ant tasks
used to build the distrubuted jar files don't include the target for Java 1.5
What version of the product are you using? On what operating system?
1.0, Windows Server 2003 64-bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Aug 2009 at 7:47
What steps will reproduce the problem?
1.
Dictionary<String, String> queries = new Dictionary<string,string>();
queries.Add("collectionName", "default_collection");
GsaFeed myFeed = myService.QueryFeed("searchReport", queries);
What is the expected output? What do you see instead?
Expected Output: All the reports from collection "default_collection" in
myFeed.Entries
Actual Output: All the reports from all the collections in myFeed.Entries.
What version of the product are you using? On what operating system?
GSA Version: 6.2.0.G44
API .NET: 1.0.0.1
VS.NET 2008 Express Edition
Please provide any additional information below.
I'm trying to list all the reports from a given collection. The documentation
says thar the "collectionName" is a valid parameter for querying the "feed"
"searchReport".
http://code.google.com/apis/searchappliance/documentation/62/gdata/acapi_cs.html
#ListingASearchReport
«List search report entries by sending an authenticated GET request to the
root entry of the searchReport feed. Query parameter: collectionName»
Original issue reported on code.google.com by [email protected]
on 18 Jun 2010 at 2:09
What steps will reproduce the problem?
1. Create user with Manager account type
2. attempt authentication with GsaClient myClient = new GsaClient(gsaAddr,
gsaPort, myUserId, myPassword);
3. get com.google.gdata.util.AuthenticationException: Error authenticating
(check service name)
4. Change account to Administrator account type
5. attempt authentication (same code as step 2)
6. Successfully authenticates (as expected)
What is the expected output? What do you see instead?
Expect to be able to authenticate as a Manager account type
What version of the product are you using? On what operating system?
GSA Software 6.0.x
GDATA API 1.0
Please provide any additional information below.
It isn't clear whether an Admin account type is required to use the admin
API. It would seem that a Manager account type should be able to
authenticate and perform allowed functions.
Original issue reported on code.google.com by [email protected]
on 3 Jun 2009 at 12:50
What steps will reproduce the problem?
1.Create a search report.
2.Run the following code:
myService.DeleteEntry("searchReport", "TesteSafiraDay@collectionName");
What is the expected output? What do you see instead?
Expected Output: Deletion of the specified report and and entry on Event Log
GSA Admin Console saying that everything when Ok.
Actual Output: The report is deleted (this is Ok), but the following message is
logged:
Delete report TesteSafiraDay. [admin logged ...]
Failed to delete report TesteSafiraDay. [admin logged ...]
What version of the product are you using? On what operating system?
GSA Version: 6.2.0.G44
API .NET: 1.0.0.1
VS 2008 Express Edition
Please provide any additional information below.
N/A
Original issue reported on code.google.com by [email protected]
on 18 Jun 2010 at 7:58
URL patterns have ampersands that are double-escaped by the .NET library for
Policy ACLs
Steps to reproduce:
1. Create a .NET program as shown in the attached Program.cs file.
Using version 1.0.0 downloaded from
http://google-enterprise-gdata-api.googlecode.com/files/gsa-admin-api-cs-1.0.0.z
ip.
Using Windows Visual Studio 2010.
2. Run program while doing a packet trace.
3. Packet trace will show that the XML has the following:
<entry xmlns='http://www.w3.org/2005/Atom'
xmlns:gsa='http://schemas.google.com/gsa/2007'><id>http://entyo36.hot.corp.googl
e.com:8000/feeds/policyAcls</id><updated>2010-01-
06T22:21:50.926Z</updated><link rel='self' type='application/atom+xml'
href='http://entyo36.hot.corp.google.com:8000/feeds/policyAcls'/><link
rel='edit' type='application/atom+xml'
href='http://entyo36.hot.corp.google.com:8000/feeds/policyAcls'/><gsa:contentnam
e='entryID'>http://example.com/a?
b&amp;c</gsa:content><gsa:content
name='urlPattern'>http://example.com/a?b&amp;c</gsa:content><gsa:content
name='acl'>group:testGroup
user:john</gsa:content></entry>
The ampersands are escaped as &amp;. They should be escaped as &
The Serving >Policy ACLs page in the Admin Console shows that the ampersand is
double-escaped. Here is copy-and-paste from the Admin Console:
Matching URL Patterns:
http://example.com/a?b&c
I have verified that this problem does not occur when using the Java API or
when uploading URL patterns directly via the Admin Console. The Java
API test program is attached as PolicyTest.java
Original issue reported on code.google.com by [email protected]
on 6 Jan 2010 at 10:35
Attachments:
What steps will reproduce the problem?
1.Use C# GSA API
2.
Dictionary<string, string> queries = new Dictionary<string, string>();
queries.Add("uriAt", "http://dvshpsvr1.axa-fr.intraxa/TSTCISI/");
GsaFeed myFeed = myService.QueryFeed("diagnostics", queries);
What is the expected output? What do you see instead?
In the myFeed, the uri should be encode once like:
http%3A%2F%2Fdvshpsvr1.axa-fr.intraxa%2FTSTCISI%2F
but it has been encoded twice:
http%253A%252F%252Fdvshpsvr1.axa-fr.intraxa%252FTSTCISI%252F
What version of the product are you using? On what operating system?
VS 2008
GSA gdata API 1.0.1
GSA 6.2.44
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 May 2010 at 2:46
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.