Coder Social home page Coder Social logo

gdata-objectivec-client's People

Watchers

 avatar

gdata-objectivec-client's Issues

compiling for iphone causes errors with gdataxmldocument

What steps will reproduce the problem?
1.  Add the gdata sources from svn into iphone project
2. make the changes as suggested
3. compile

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

Build errors saying GDataXMLDocument may not respond to -nodesForXPath:error

When you ignore and run this, iphone application crashes saying unrecognized 
selector sent to 
the instance.

What version of the product are you using? On what operating system?

10.5 xcode 3.1 iphone 2.1

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 18 Sep 2008 at 7:00

Using rev 228 on iPhone generates a "Duplicate Name" error from server when updating item

What steps will reproduce the problem?
1. First we retrieve the complete calendar entry using fetchCalendarEntryWithURL
2. Then we pass -unedited in our test - the complete calendar entry back to 
fetchCalendarEntryByUpdatingEntry:
3. Some work, but some give us an error back from the server "Duplicate Name" 
on line 2. 

What is the expected output? What do you see instead?
Expected that it doesn't fail.
Going back to the 1.6.0 revision everything works again. 

Please use labels and text to provide additional information.
Calendar
iPhone
Event Updating

Original issue reported on code.google.com by [email protected] on 21 Feb 2009 at 3:09

Memory leak with keepChildXMLElementsForElement

Via CLANG

- (void)keepChildXMLElementsForElement:(NSXMLElement *)element {
1983     
[1] Taking true branch.
1984      if (shouldKeepChildXMLElements_) {
1985     
1986        NSArray *children = [element children];
[2] Taking true branch.
1987        if (children != nil) {
1988     
1989          // save only top-level nodes that are elements
1990          NSXMLNode *childNode;
1991     
1992          GDATA_FOREACH(childNode, children) {
[3] Taking true branch.
1993            if ([childNode kind] == NSXMLElementKind) {
[4] Taking false branch.
1994              if (childXMLElements_ == nil) {
1995                childXMLElements_ = [[NSMutableArray alloc] init];
1996              }
[5] Method returns an Objective-C object with a +1 retain count (owning 
reference).
1997              [childXMLElements_ addObject:[childNode copy]];
[6] Object allocated on line 1997 is no longer referenced after this point and 
has a retain count of 
+1 (object leaked).
1998     
1999              [self handleParsedElement:childNode];
2000            }
2001          }
2002        }
2003      }
2004    }
2005     

Original issue reported on code.google.com by [email protected] on 11 Feb 2009 at 5:13

Synchronous API

The APIs are designed to work asynchroneously using delegates.

This can be an issue in some cases. (for GUI-less daemons especially)

There needs to be an API for this. (which works better than waitForTicket: 
which is polling events 
every 1/1000s)



Original issue reported on code.google.com by [email protected] on 13 Jan 2008 at 4:21

Missing initWithContentsOfUrl

What steps will reproduce the problem?
I used this library because I had code that used NSXMLDocument that I
wanted to put on the iPhone.  I was able to build but my app crashed
because the GDataXMLDocument did not accept the initWithContentsOfUrl
selector which I use in various places in my code.

What is the expected output? What do you see instead?
I expected this to work exactly as a replacement for NSXMLDocument, instead
this method was missing.  Though this method was trivial to implement it
was still kind of annoying and is a simple fix.

Please use labels and text to provide additional information.

I ended up adding it myself, code follows.

- (id)initWithContentsOfURL:(NSURL *)url options:(unsigned int)mask
error:(NSError **)error {

    NSString *contentString = [NSString stringWithContentsOfURL:url
encoding:NSASCIIStringEncoding error:error];
    NSData *data = [contentString dataUsingEncoding:NSUTF8StringEncoding];
    GDataXMLDocument *doc = [self initWithData:data options:mask error:error];
    return doc;
}

Original issue reported on code.google.com by [email protected] on 10 Feb 2009 at 3:31

How to implement Google Notebook APIs?

first of all, thank you for your great job. Your code helps me a lot for my
project. But I can not find Google Notebook relative wrapper class in
"Clients" section, do you plan to implement this in the feature? 

Original issue reported on code.google.com by [email protected] on 8 Mar 2009 at 7:44

Unable to compile

What steps will reproduce the problem?
I just tried to compile the package because it isn't in the package i 
downloaded.

What is the expected output? What do you see instead?
I wanted to get a GData.framework file but i get 2 compilation errors

What version of the product are you using? On what operating system?
I'm on Mac OS 10.4 Tiger on PPC

Please provide any additional information below.
2 errors:
 - internal link edit command failed
 - Undifined Symbol:
....
...
....
...
etc.

Original issue reported on code.google.com by [email protected] on 14 Jun 2008 at 9:44

Typo in README.txt: avaliable -> available

There's a small typo in the README.txt file that's distributed with the client. 
See patch below...

Index: README.txt
=============================================================
======
--- README.txt  (revision 136)
+++ README.txt  (working copy)
@@ -1,4 +1,4 @@
 Information on using the Goodle Data APIs Objective-C Client Library 
-is avaliable at
+is available at

Original issue reported on code.google.com by [email protected] on 17 Jul 2008 at 11:35

Please tag!

Tag 1.4 breaks Picasa (try the provided sample app). The code in trunk works 
fine with Picasa. 
Please tag when convenient so I can keep on using svn:externals against the tag 
and no the trunk.

Thanks!

Original issue reported on code.google.com by jwight on 10 Oct 2008 at 5:17

NSXMLElement/NSXMLDocument don't exist on iPhone

What steps will reproduce the problem?
1. Create a new Cocoa Touch app
2. Drag the GData sources files from the GData project to the new Cocoa Touch 
project
3. Compile in Device mode (not Simulator mode)
4. Observe the lack of NSXMLElement and NSXMLDocument in the iPhone headers.

What is the expected output? What do you see instead?
Expect it to compile properly, instead it uses constructs that aren't defined 
on iPhone.

What version of the product are you using? On what operating system?
I believe this changed with the most recent SDK.  I would suggest Google file a 
bug report or 
complain to Apple, because a little developer like me isn't going to get much 
out of Apple.

Please provide any additional information below.

Ask someone with an iPhone dev account to check out these links:
http://developer.apple.com/iphone/gettingstarted/docs/iphoneosforcocoadevelopers
.action
http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundati
on/ObjC_
classic/Intro/IntroFoundation.html


Original issue reported on code.google.com by [email protected] on 28 Mar 2008 at 10:08

gain/daysGain/marketValue items are not correct in GDataPortfolioData object in Finance API code.

Version: r161
steps:

1. Use GDataQueryFinance class to fetch position feed, and turn on the
return flag:

GDataQueryFinance * mGDataQueryFinance = [GDataQueryFinance
financeQueryWithFeedURL:feedURL];

[mGDataQueryFinance setShouldIncludeReturns:YES];

2. In the callback method, I got a GDataFeedFinancePosition object contains
some GDataEntryFinancePosition objects.

3. In each GDataEntryFinancePosition object, I can get these items:
costBasis,gain,daysGain,marketValue,gainPercentage..etc.

But the following items is not identical the raw xml data:

  * gain
  * daysGain
  * marketValue

Values of them are all same to costBasis, this is not correct.

and I have changed the GDataPortfolioElements.m file, attachment is the
diff result.




Original issue reported on code.google.com by [email protected] on 12 Nov 2008 at 8:12

Attachments:

Unable to fetchDocEntryByUpdatingEntry a text/plain document

What steps will reproduce the problem?
1. Update an existing text/plain document with a new text/plain document
2.

What is the expected output? What do you see instead?
I would expect to get a call back to my finishedWithEntry.

What version of the product are you using? On what operating system?
Version 1.6 & 1.7 of the gdata-objectivec-client apis.

Please provide any additional information below.

The following code...

        if ([uploadData length]) 
        {
            [aEntry setUploadData:uploadData];
            [aEntry setUploadMIMEType:@"text/plain"];
            [aEntry setUploadSlug:aFileName];

            NSURL   *modifyURL = [[aEntry editLink] URL];
            [myLog writeLogEntry:[NSString stringWithFormat:@"Update Entry URL = %@", 
[modifyURL absoluteString]] error:false];

            // insert the entry into the docList feed
            GDataServiceTicket *ticket;

            ticket = [mService fetchDocEntryByUpdatingEntry:aEntry
                                                 forEntryURL:modifyURL
                                                   delegate:self

didFinishSelector:@selector(uploadFileTicket:finishedWithEntry:)

didFailSelector:@selector(uploadFileTicket:failedWithError:)];

            aResult = true;
            [self setMBusy:true];       
            [self setUploadTicket:ticket];
        }

gets a call to the uploadFileTicket:failedWithError, which for me logs the 
following information:

2009-04-15 11:54:27=uploadFileTicket:GDataServiceTicket 0x138E9440: 
{service:<GDataServiceGoogleDocs: 0x13909ac0> objectFetcher:<GDataHTTPFetcher: 
0x39be80> authFetcher:(null) userData:(null)} failedWithError:Error 
Domain=com.google.GDataServiceDomain Code=400 UserInfo=0x139d3af0 "Operation 
could 
not be completed. (The prefix &quot;docs&quot; for element 
&quot;docs:writersCanInvite&quot; 
is not bound.)"

Original issue reported on code.google.com by [email protected] on 15 Apr 2009 at 7:04

GDataQueryGoogleHealth.h not imported in GDataHealth.h

What steps will reproduce the problem?

1. Compile this:
GDataQueryGoogleHealth *query = [GDataQueryGoogleHealth 
healthQueryWithFeedURL:[GDataServiceGoogleHealth 
profileFeedURLForProfileID:profileId]];

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

Expected: no warnings

See Instead: "warning: no '+ healthQueryWithFeedURL:' method found"

Workaround: #import "GDataQueryGoogleHealth.h" manually

Proposed solution: Add
    #import "GDataQueryGoogleHealth.h"
to the end of GDataHealth.h

The rest of the new Health classes look great.  Thanks!

Original issue reported on code.google.com by [email protected] on 10 Feb 2009 at 5:33

Could not build gdata-objectivec-client-1.5.0 in 10.4.11 / Xcode 2.5

What steps will reproduce the problem?
1. Open gdata-objectivec-client-1.5.0 project with Xcode 2.5
2. Change settings in project.
- Target SDK : Mac OS X 10.4 (Universal)
- compiler : gcc-4.0
- Architecture   : i386 ppc
- Deployment Target : Mac OS X 10.4
- Build target : Release
3. Build Project, but caused an error and can not build.

What is the expected output? What do you see instead?
CompileC build/GData.build/Release/GDataFramework.build/Objects-
normal/ppc/GDataAtomPubControl.o "(Project path)/gdata-objectivec-client-
1.5.0/Source/Elements/GDataAtomPubControl.m" normal ppc objective-c 
com.apple.compilers.gcc.4_0
.
.
.
cc1obj: warnings being treated as errors
(Project 
path)/gdata-objectivec-client-1.5.0/Source/Elements/GDataAtomPubControl.m:26: 
warning: incomplete implementation of class 'GDataAtomPubControl1_0'
(Project 
path)/gdata-objectivec-client-1.5.0/Source/Elements/GDataAtomPubControl.m:26: 
warning: method definition for '-copyWithZone:' not found
(Project 
path)/gdata-objectivec-client-1.5.0/Source/Elements/GDataAtomPubControl.m:26: 
warning: class 'GDataAtomPubControl1_0' does not fully implement the 
'NSCopying' protocol

What version of the product are you using? On what operating system?
Mac OS X 10.4.11 
Xcode 2.5 
Xcode IDE: 799.0
Xcode Core: 798.0
ToolSupport: 794.0

Please use labels and text to provide additional information.
I succeeded to  build "gdata-objectivec-client-1.4.0" by same settings.



Original issue reported on code.google.com by [email protected] on 28 Nov 2008 at 3:11

Add documentation/comments for uploading to YouTube using Gmail accounts

It took me some times to figure out how you can upload videos to YouTube using 
the GData 
framework with a Gmail account. I found no documentation online and there is no 
comment in 
the GData framework sources explaining how to do that.

--------

Steps to reproduce:

- Create a Gmail account.
- Go to YouTube.com and use the Gmail account to log in. It will create a 
YouTube account 
linked to your Gmail account.
- Use your Gmail account in your application using the GData framework to 
upload videos to 
YouTube.

--------

Expected result:

When using a Google account to upload video to YouTube, some functions of the 
GData 
Objective-C require the Gmail account as parameter and some require 
the YouTube linked account as parameter. 

When you call '- (void)setUserCredentialsWithUsername:(NSString *) 
username password:(NSString *)password;' in GDataServiceBase, the 
username should be the Gmail account, for example 
'[email protected]' and the password should be the password of the 
Gmail account.

But when you call '+ (NSURL *)youTubeUploadURLForUserID:(NSString *) 
userID clientID:(NSString *)clientID;' in GDataServiceGoogleYouTube, 
the userID parameter should be the YouTube linked account and the 
password the password of the Gmail account.


Original issue reported on code.google.com by [email protected] on 8 Apr 2009 at 5:07

GDataRecurrence could parse its stringValue

It would be nice if GDataRecurrence was able to parse its stringValue 
(implicitly) to spare clients 
from having to write their own parsing implementation and corresponding data 
structures.

I'm interested in helping to work to resolve this issue. I need to parse 
recurrences for my own 
application, anyway, so I'm going to start working on an implementation now, 
but I would be glad 
to contribute it.

Original issue reported on code.google.com by [email protected] on 28 Apr 2007 at 6:38

Unable to install application in iPhone which uses GData Framework

What steps will reproduce the problem?
1. Open XCode
2. Create a new project and link GData
3. Set Device |  Debug and Run

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

- Would like to get the application installed on my iPhone and it throws error 
instead.
error: syntax error before 'NSXMLElement'

What version of the product are you using? On what operating system?

XCode 3.1.1 - GData 1.4.0 - iPhone OS 2.0

Please provide any additional information below.

But it works fine with the simulator.

Original issue reported on code.google.com by muthu16 on 29 Jul 2008 at 6:53

Unable to connect to schemas.google.com

What steps will reproduce the problem?
1. include the GData framework
2. I used kGDataLinkWorksheetsFeed to connect which is defined in
GDataEntrySpreadsheet.h line 39.  It is defined as
http://schemas.google.com/spreadsheets/2006#worksheetsfeed
3. Returned 404 could not find domain.

What is the expected output? What do you see instead?
Anything other than 404 either through browser or doing a dig
schemas.google.com

What version of the product are you using? On what operating system?
Version 1.5 of Objective-C Client Library on Mac OSX10.5.5

Please provide any additional information below.
I asked an outside individual to view this domain, and he also returned a
404/domain could not be found.

Original issue reported on code.google.com by [email protected] on 9 Dec 2008 at 11:01

[PATCH] fix build on 10.4 with Xcode 2.5

What steps will reproduce the problem?
1. try to build on a 10.4 machine with Xcode 2.5.

What is the expected output?
a successful build.

What do you see instead?
errors caused by the use of the wrong GDATA_FOREACH variant (the new syntax
one that uses "for ... in").

the problem is that MAC_OS_X_VERSION_10_5, which you're using in the guard,
isn't [necessarily] defined on 10.4l; here's one possible fix:

Index: Source/GDataDefines.h
===================================================================
--- Source/GDataDefines.h       (revision 177)
+++ Source/GDataDefines.h       (working copy)
@@ -113,13 +113,14 @@
 // reliance on NSEnumerator for 10.4
 //
 #ifndef GDATA_FOREACH
-  #if defined(TARGET_OS_IPHONE) || MAC_OS_X_VERSION_MIN_REQUIRED >=
MAC_OS_X_VERSION_10_5
+  #if !defined(TARGET_OS_IPHONE) || \
+      MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
     #define GDATA_FOREACH(element, collection) \
-      for (element in collection)
+      for(id _ ## element ## _enum = [collection objectEnumerator]; \
+          (element = [_ ## element ## _enum nextObject]) != nil; )
   #else
     #define GDATA_FOREACH(element, collection) \
-      for(id _ ## element ## _enum = [collection objectEnumerator]; \
-          (element = [_ ## element ## _enum nextObject]) != nil; )
+      for (element in collection)
   #endif
 #endif


i guess it would be more idiomatic to check defined(MAC_OS_X_VERSION_10_5)
before using it, but that makes the guard very long and awkward. reversing
the sense of the test seemed simpler.

Original issue reported on code.google.com by [email protected] on 7 Jan 2009 at 6:47

Attachments:

BadAuthentication / Account and password is correct / no captcha

What steps will reproduce the problem?
A user of my iPhone Application TankPro can't log into the service.
His email-address and password are working using the web interface of google 
docs.
Using exact this login information does not work using the 
gdata-objectivec-client.
He can login with account data provided from me.
I can login using his account data using the web interface of google docs, so 
his access data is 
correct.
I can't login using the iPhone application with the user's account data.

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

I get the following error: com.google.GDataServiceDomain-Fehler 403

The userInfo error dictionary contains :

Error = BadAuthentication;
error = BadAuthentication;

So no captcha involved.


What version of the product are you using? On what operating system?
Tested and reproduced with gdata-objectivec-client 1.5 and 1.6

Please provide any additional information below.
If you need more details please contact me by mail

Original issue reported on code.google.com by [email protected] on 30 Jan 2009 at 11:10

Incorrect exception thrown

What steps will reproduce the problem?
1. Set the user credentials to be null or empty for the username and pass 
in a password on the service.
2. Try and insert a new album
3. Object reference exception thrown

What is the expected output? What do you see instead?
I would expect to see an invalid credentials exception.  Instead I get 
this:
System.NullReferenceException was caught
  Message="Object reference not set to an instance of an object."
  Source="Google.GData.Client"
  StackTrace:
       at Google.GData.Client.Utilities.UriEncodeReserved(String content)
       at Google.GData.Client.GDataGAuthRequest.QueryAuthToken
(GDataCredentials gc)
       at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()
       at Google.GData.Client.GDataRequest.EnsureWebRequest()
       at Google.GData.Client.GDataGAuthRequest.CopyRequestData()
       at Google.GData.Client.GDataGAuthRequest.Execute(Int32 iRetrying)
       at Google.GData.Client.GDataGAuthRequest.Execute()
       at Google.GData.Client.Service.StreamInsert(Uri feedUri, AtomBase 
baseEntry, GDataRequestType type)
       at Google.GData.Client.Service.StreamInsert(Uri feedUri, AtomEntry 
newEntry)
       at Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry 
newEntry)

What version of the product are you using? On what operating system?
The latest version, Vista Ultimate 64.

Please provide any additional information below.
I'm not absolutely positive of what produced the invalid exception, but 
this is what I had discovered.  I should have checked for those things 
first, but was surprised when I got the object reference exception.

Original issue reported on code.google.com by [email protected] on 7 Feb 2008 at 3:23

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.