ericzile / google-gdata

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

Incorrect handling of HTML Entity encoding while making posts to Blogger. #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using the .NET Client library create a new post with the body as -
<b>I will update this post shortly</b>
2.
3.

What is the expected output? What do you see instead?
The response that gets de-serialized into an AtomEntry should be -

<b>I will update this post shortly</b>

Whereas it is -

<b>I will update this post shortly</b>

What version of the product are you using? On what operating system?
1.0.8 on Windows XP and Windows Server 2003.

Please provide any additional information below.

Fiddler Logs -
Request -
----------------------------------------
POST /feeds/31090276/posts/full HTTP/1.1 
Content-Type: application/atom+xml; charset=UTF-8 
User-Agent: Matrix GService-CS/1.0.0 GDataGAuth-CS/1.0.0 
Authorization: GoogleLogin auth=*****REMOVED******* 
Content-Length: 241 
Expect: 100-continue 
Host: www.blogger.com 

<?xml version="1.0" encoding="utf-8"?> 
<entry xmlns="http://www.w3.org/2005/Atom"> 
  <title type="text">Embedded Test</title> 
  <content type="html">&amp;lt;b&amp;gt;I will update this post 
shortly&amp;lt;/b&amp;gt;</content> 
</entry> 

----------------------------------------
Response -
----------------------------------------
HTTP/1.1 201 
Date: Mon, 04 Dec 2006 17:44:59 GMT 
Server: Apache 
Location: 
http://www.blogger.com/feeds/31090276/posts/full/116525429971157938 
Content-Length: 759 
Content-Type: application/atom+xml; charset=UTF-8 
Set-Cookie: NSC_cmphhfs-fyu=0a1402230050;Version=1;Max-Age=1800;path=/ 

<?xml version='1.0' encoding='UTF-8'?><entry 
xmlns='http://www.w3.org/2005/Atom'><id>http://www.blogger.com/feeds/310902
76/posts/full/116525429971157938</id><published>2006-12-
04T17:44:59.698Z</published><updated>2006-12-04T17:­
44:59.698Z</updated><title 
type='text'>Embedded Test</title><content 
type='html'>&amp;lt;b&amp;gt;I will update this post 
shortly&amp;lt;/b&amp;gt;</content><link rel='alternate' 
type='text/html' 
href='http://swatkatz1.blogspot.com/2006/12/embedded-
test_04.html'></link><link 
rel='self' type='application/atom+xml' 
href='http://www.blogger.com/feeds/31090276/posts/full/116525429971157938'>
</link><link 
rel='edit' type='application/atom+xml' 
href='http://www.blogger.com/feeds/31090276/posts/full/116525429971157938'>
</link></entry> 
----------------------------------------

Original issue reported on code.google.com by mohanrao...@gmail.com on 4 Dec 2006 at 8:01

GoogleCodeExporter commented 9 years ago
Fixed with version 1.0.9.4 - available via subversion now. Please report back 
if the
issue is not resolved. 

Original comment by fman...@gmail.com on 25 Jan 2007 at 4:42