Bug 288533 - Blogilo throws error when a post containing <br> html tag is posted to blogger account
Summary: Blogilo throws error when a post containing <br> html tag is posted to blogge...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: blogilo
Classification: Applications
Component: general (show other bugs)
Version: 1.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Mehrdad Momeny
URL:
Keywords:
: 322833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-09 12:03 UTC by srix
Modified: 2018-11-12 19:54 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description srix 2011-12-09 12:03:44 UTC
Version:           1.1 (using KDE 4.7.2) 
OS:                Linux

Am using blogilo 1.1 on Kubuntu 11.10 (KDE 4.7.2) and I see this error whenever I try to post a blog that contains <br> tag in the html.

Could not regexp the id out of the result: "The element type "br" must be terminated by the matching end-tag "</br>". "Server (Atom) error: Could not regexp the id out of the result."

Reproducible: Didn't try

Steps to Reproduce:
The bug can be reproduced by trying to post a blog with the following content to blogger ( blogspot.com api)
Type the content within the quotes in the html tab of blogilo " <div>hi</div><div></br></div>"

Actual Results:  
I had compile the debug version of the blogilo using the instructions given here [ http://blogilo.gnufolks.org/forum/topic/submit-does-nothing#post-176]and here[http://blogilo.gnufolks.org/download/] . the error out put is as follows.


blogilo(20038) PostEntry::submitPost:
blogilo(20038) SendToBlogDialog::SendToBlogDialog: true false
blogilo(20038) BilboPost::setProperties:
blogilo(20038) Backend::Backend: with blog id: 1
blogilo(20038) KBlog::GDataPrivate::GDataPrivate:
blogilo(20038) KBlog::GData::GData:
blogilo(20038) PostEntry::uploadMediaFiles:
blogilo(20038) TextEditor::getLocalImages:
blogilo(20038) PostEntry::submitPost: Uploading
blogilo(20038) Backend::publishPost: Blog Id: 1
blogilo(20038) KBlog::GData::createPost:
blogilo(20038) KBlog::GDataPrivate::authenticate:
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2f90190)
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "https"
blogilo(20038)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 20 m_maxConnectionsPerHost: 5
blogilo(20038)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-srix/blogiloR20038.slave-socket"
blogilo(20038)/kio (Slave) KIO::Slave::createSlave: createSlave "https" for KUrl("https://www.google.com/accounts/ClientLogin?Email=codeporukki%40gmail.com&Passwd=shintoshilo&source=%28Blogilo%2F1.1%29%20KDE-KBlog%2F4.7.1%20%284.7.1%29&service=blogger")
blogilo(20038)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-srix/blogilon20038.slave-socket"
blogilo(20038)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("https://www.google.com/accounts/ClientLogin?Email=codeporukki%40gmail.com&Passwd=shintoshilo&source=%28Blogilo%2F1.1%29%20KDE-KBlog%2F4.7.1%20%284.7.1%29&service=blogger")
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0x2f90190) KIO::Slave(0x2ccd9e0)
blogilo(20038) KBlog::GDataPrivate::authenticate: RegExp got authentication string: "DQAAALQAAAAvkEhjmdVP8o9dvsqAqqzh2aGnvu3hpfJk2PMUU3OkicqjeJyEtWjzFYGIogzHSevij-4gxuBFY1DY2vG1vr3Q5I7JuhPkvlM9i31IX2FWeacrbNBu4gPg9nzPl_me6Jvu3CUd9Z2ua14HbiQ0uFvZe8Kcj9ytVbOLcELc1RfRNxxC3CApxuaTSIyD812pLMVrIFh_ME2qfGdoVrrvGm7CcQLDxjiohsyLhmpsFcaJQqHiy1yBrn0nji3qqUTcln0
"
blogilo(20038) KBlog::GData::fullName:
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x2bccab0)
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "http"
blogilo(20038)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 20 m_maxConnectionsPerHost: 5
blogilo(20038)/kio (Slave) KIO::Slave::createSlave: createSlave "http" for KUrl("http://www.blogger.com/feeds/29398556/posts/default")
blogilo(20038)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on "local:/tmp/ksocket-srix/blogiloL20038.slave-socket"
blogilo(20038)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("http://www.blogger.com/feeds/29398556/posts/default")
blogilo(20038)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StoredTransferJob(0x2bccab0) KIO::Slave(0x2bc3520)
blogilo(20038) KBlog::GDataPrivate::slotCreatePost:
blogilo(20038): Could not regexp the id out of the result: "The element type "br" must be terminated by the matching end-tag "</br>"."
blogilo(20038) Backend::error: Blog Id: 1
blogilo(20038) Backend::error: "Server (Atom) error: Could not regexp the id out of the result."
blogilo(20038) Backend::error: Emitting sigError
blogilo(20038) PostEntry::slotError:
blogilo(20038) MainWindow::postManipulationDone:
blogilo(20038)/kdeui (KNotification) KNotificationManager::notificationClosed: 2637
blogilo(20038) PostEntry::deleteProgressBar:
blogilo(20038) Backend::~Backend:
srix@srix-i7desktop:~/mybuilds/kdepim/blogilo/build$ "br&quotblogilo(20038) PostEntry::slotSyncEditors:
blogilo(20038) PostEntry::slotPostModified:
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: m_automaticInvocationAt: (0, 4344)
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: (0, 4344)
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: checking models
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: m_completionRanges contains model?: false
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: start= false
blogilo(20038)/Kate KateCompletionWidget::automaticInvocation: models found: false
blogilo(20038)/Kate (Commands) KateViewBar::addBarWidget: add barwidget KateSearchBar(0x2ff0b30)
blogilo(20038)/Kate (Commands) KateViewBar::hideCurrentBarWidget: hide barwidget
blogilo(20038)/kio (Slave) KIO::Slave::kill: killing slave pid 20042 ( "https://www.google.com" )
blogilo(20038)/kio (Slave) KIO::Slave::kill: killing slave pid 20044 ( "http://www.blogger.com" )

Expected Results:  
post should have been successfully posted.

The bug is only relted to blogspot.com posts. specifically the way the XML is parsed in the KBlog::GDataPrivate module. Looks like this was a known issue in the libgdata. see here . I tried updating the libgdata to the latest 0.10.1 , but that didnt have any effect. It appears that KDEpim has its own implementation of the gdata api or may be a wrapper as you can find here [http://api.kde.org/4.x-api/kdepimlibs-apidocs/kblog/html/gdata_8cpp_source.html] . And I believe it has to be fixed within kdepim.
Comment 1 srix 2011-12-09 12:07:12 UTC
There is a correction In the steps to reproduce . It is actually this 

Type the content within the quotes in the html tab of blogilo "
<div>hi</div><div><br></div>"
Comment 2 Rogelio 2012-02-20 23:49:18 UTC
Removing <div><br></div><div> from the HTML editing window on Blogilo allowed the post to go through, line breaks were not preserved and the post on blogger was mashed up into a single paragraph.

Replacing the line breaks with the <br/> tag allows the post to go through and line breaks are observed on the blogger post.

Any <p> tags in the html will not allow the post to go through.

Using KDE Development Platform 4.7.4 (4.7.4)
Ubuntu 11.10
Lenovo T60p
Comment 3 caballeroajeno 2013-05-21 16:27:27 UTC
In my case, the post went through and was published successfully when I removed the <br> tags and just included <p> tags. I also had an issue with a &nbsp;. After removing it, the post went live as it should.

While this bug is corrected, I suggest submitting posts with very clean HTML only: <p>, <br />, no escapes like &nbsp;
Comment 4 kiran 2013-07-24 15:56:23 UTC
This bug seems to a very disturbing one for users of blogger. Is manually replacing <br> with <br/> the only way ?
Comment 5 Christoph Feck 2013-08-11 09:12:20 UTC
*** Bug 322833 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Crouthamel 2018-11-11 04:34:36 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Rogelio 2018-11-12 19:54:40 UTC
Blogilo is no longer supported by KDE, could not find it on my latest system (Kubuntu 18.04), also it has been a while since I stopped using Blogger in fact closing the accounts there. Could never get to work Blogilo per the reported bug here - report which can be closed as far as I am concerned.