<div dir="ltr">Hey,<br> I was trying to figure out the problem behind flickr' upload failing on KDE4 port for quite a lot of time. I could figure out the root cause but the solution probably needs some suggestions from someone with more QT knowledge.<br>
<br>The problem is in the POST request that is being sent to the flickr server for photo upload. With some ethereal log analysis I cud see that the server is responding saying the package size is too large. This is happening because of the HTTP post request data not being properly packed up.<br>
<br>The code for packing uses QTextStream which probably changed its behaviour from QT3 to 4 or such is my first guess. I tried running this test code to undestand if QTextStream should be used to append some data in to a QByteArray (Not sure why we need to do this instead of resizing and updating the QByteArray, but that aside)<br>
<br>QByteArray qba("test");<br>QTextStream qts(qba, QIODevice::Append);<br>qts << "ABCD";<br>kdDebug() << qba <<"#"<< qts.string() << endl;<br>qts << endl;<br>
kdDebug << qba << "#" << qts.string() << endl;<br><br>I get <br>test#<br>test#<br><br>Is this expected behaviour or am I doing something wrong. Also is TextStream supposed to resize bytearray automatically in this case ? (The code related to these lines is in graphics/kipi-plugins/flickrexport/mpform.cpp)<br>
<br>regards<br>Vardhman<br><br><div class="gmail_quote">On Wed, Aug 6, 2008 at 8:15 PM, Vardhman Jain <span dir="ltr"><<a href="mailto:vardhman@gmail.com">vardhman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div class="Ih2E3d">On Wed, Aug 6, 2008 at 7:57 PM, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jain,<br>
<br>
Please, take a look into flickr tool for KDE4. the tool can log into<br>
account but cannot upload photo. i don't know why ? Perhaps it's my<br>
KDE4 port, but i can't find where exactly...<br>
</blockquote></div><div>Hey Caulier,<br> I will check that up as soon as possible, mostly by next weekend.<br><font color="#888888"><br>Vardhman<br></font></div><div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks in advance<br>
<br>
Gilles Caulier<br>
<br>
2008/8/6 Vardhman Jain <<a href="mailto:vardhman@gmail.com" target="_blank">vardhman@gmail.com</a>>:<br>
<div><div></div><div>>><br>
>><br>
>> YES! i've found my mail :D<br>
>> <a href="http://article.gmane.org/gmane.comp.kde.devel.imaging/5350/match=picasaweb" target="_blank">http://article.gmane.org/gmane.comp.kde.devel.imaging/5350/match=picasaweb</a><br>
>><br>
>> And if i understood correctly it crash here:<br>
>> if(!m_interface->hasFeature(KIPI::HostSupportsTags))<br>
>> m_exportApplicationTags->setEnabled(false); // <======Here<br>
>><br>
>> I can see it seems a host application issue, but should the flag disable<br>
>> by default<br>
>> and enabled by applications that have the asked host support?<br>
><br>
> This is strange and if these two lines caused the segfault its definitely a<br>
> bug. I will look at the code to see why such a safe condition could lead to<br>
> a segfault.<br>
><br>
><br>
> Vardhman<br>
>><br>
>> _______________________________________________<br>
>> Kde-imaging mailing list<br>
>> <a href="mailto:Kde-imaging@kde.org" target="_blank">Kde-imaging@kde.org</a><br>
>> <a href="https://mail.kde.org/mailman/listinfo/kde-imaging" target="_blank">https://mail.kde.org/mailman/listinfo/kde-imaging</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Blogs: <a href="http://vardhman.blogspot.com" target="_blank">http://vardhman.blogspot.com</a><br>
><br>
><br>
> _______________________________________________<br>
> Kde-imaging mailing list<br>
> <a href="mailto:Kde-imaging@kde.org" target="_blank">Kde-imaging@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/kde-imaging" target="_blank">https://mail.kde.org/mailman/listinfo/kde-imaging</a><br>
><br>
><br>
_______________________________________________<br>
Kde-imaging mailing list<br>
<a href="mailto:Kde-imaging@kde.org" target="_blank">Kde-imaging@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-imaging" target="_blank">https://mail.kde.org/mailman/listinfo/kde-imaging</a><br>
</div></div></blockquote></div></div></div><br><br clear="all"><br>-- <br><div class="Ih2E3d">Blogs: <a href="http://vardhman.blogspot.com" target="_blank">http://vardhman.blogspot.com</a><br><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Blogs: <a href="http://vardhman.blogspot.com">http://vardhman.blogspot.com</a><br><br>
</div>