samihadas / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Problems with using the AclScope class #295

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I know this is not fully baked yet, but I was trying to get a feed with the 
ACL inside, and then manually iterating over the FeedLink ExtensionElement, 
to output an IEnumerable<AclEntry> for my own uses.
I noticed a bug in the AclScope class' constructors - 
The default one uses the AclNameTable constants to call the base, but the two 
overriding constructors are using values from GDataParserNameTable and 
BaseNameTable, which causes the object to have different namespaces than 
expected, and later on the element is not found using the FindElement method.

I'd recommend just using constructor chaining, to reduce the number of places 
these kinds of bugs can occur.

Original issue reported on code.google.com by ATGard...@gmail.com on 26 Nov 2009 at 2:35

GoogleCodeExporter commented 8 years ago
Done. Code checked in. If you have time, please verify

Original comment by fman...@gmail.com on 30 Nov 2009 at 10:23