Bug 226114

Summary: Facebook Call Failed: Incorrect Signature
Product: [Applications] digikam Reporter: Mark Purcell <msp>
Component: Plugin-WebService-FacebookAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: caulier.gilles, dirk.kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0
Attachments: Error diaglog screen shot

Description Mark Purcell 2010-02-10 08:45:05 UTC
Version:           1.1.0 (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (ppc) release 2.6.32-trunk-powerpc

On powerpc I am unable to use the facebook plugin.  See attached screen shot..

Mark
Comment 1 Mark Purcell 2010-02-10 08:46:57 UTC
Created attachment 40633 [details]
Error diaglog screen shot

perhaps an endian issue?
Comment 2 caulier.gilles 2010-02-10 08:49:43 UTC
And with a PC computer, it work ?

Gilles Caulier
Comment 3 Mark Purcell 2010-02-10 08:52:04 UTC
Yes it works fine on i386.

Here is kdebugdialog output:

digikam(4462)/KIPI (loading) KIPIPlugins::KPAboutData::KPAboutData: 0x113d8152
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbWindow::FbWindow: Calling Login method
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbWindow::authenticate: Calling Login method
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbTalker::getCallString: CALL:  "api_key=bf430ad869b88aba5c0c17ea6707022b&method=facebook.auth.createToken&sig=a4bc392aaec0bd3809f6653ca4ce47c2&v=1.0"
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbTalker::parseResponseCreateToken: Parse CreateToken response:
"<?xml version="1.0" encoding="UTF-8"?>
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
  <error_code>104</error_code>
  <error_msg>Incorrect signature</error_msg>
  <request_args list="true">
    <arg>
      <key>api_key</key>
      <value>bf430ad869b88aba5c0c17ea6707022b</value>
    </arg>
    <arg>
      <key>method</key>
      <value>facebook.auth.createToken</value>
    </arg>
    <arg>
      <key>sig</key>
      <value>a4bc392aaec0bd3809f6653ca4ce47c2</value>
    </arg>
    <arg>
      <key>v</key>
      <value>1.0</value>
    </arg>
  </request_args>
</error_response>
"
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbTalker::parseErrorResponse: Error Code: 104
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbTalker::parseErrorResponse: Error Text: "Incorrect signature"
digikam(4462)/KIPI (general) KIPIFacebookPlugin::FbTalker::errorToText: errorToText:  104 :  "Incorrect signature"
Comment 4 caulier.gilles 2010-02-10 08:56:36 UTC
Mark,

Look like we have this compilation warning (no side effect under i386):

[gilles@localhost facebook]$ make
Generating plugin_facebook.moc
Generating fbwidget.moc
Generating fbtalker.moc
Generating fbwindow.moc
Generating facebookjob.moc
Generating fbalbum.moc
[  0%] Built target kipiplugin_facebook_automoc
[  0%] Built target kipiplugins_automoc
[100%] Built target kipiplugins
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/kipiplugin_facebook_automoc.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/plugin_facebook.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/fbwindow.o
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/facebook/fbwindow.cpp: In member function ‘void KIPIFacebookPlugin::FbWindow::setProfileAID(long long int)’:
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/facebook/fbwindow.cpp:603: attention : débordement dans la conversion implicte de la constante
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/fbwidget.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/fbalbum.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/fbtalker.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/mpform.o
[100%] Building CXX object kipi-plugins/facebook/CMakeFiles/kipiplugin_facebook.dir/facebookjob.o
Linking CXX shared module ../../lib/kipiplugin_facebook.so
[100%] Built target kipiplugin_facebook

Line of code relevant is there :

http://lxr.kde.org/source/extragear/graphics/kipi-plugins/facebook/fbwindow.cpp#603

Perhaps it's the problem...

Gilles Caulier
Comment 5 Dirk Tilger 2011-06-23 09:20:48 UTC
This bug has been obsoleted by switching to OAuth2 authentication.
Comment 6 caulier.gilles 2011-06-23 09:42:15 UTC
Dirk,

I changed your bugzilla rights. You can edit file properties now, and close report as you want from web interface.

Gilles Caulier
Comment 7 Dirk Tilger 2011-06-25 09:45:55 UTC
The method where this error occurred has been removed by the resolution to bug 252437.