<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>319252</bug_id>
          
          <creation_ts>2013-05-03 05:06:58 +0000</creation_ts>
          <short_desc>FaceBook export doesn&apos;t work any more due to bad url given back to register to before photo uploading</short_desc>
          <delta_ts>2023-05-10 05:46:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Plugin-WebService-Facebook</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tps</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>davidpjames</cc>
    
    <cc>didier.garde</cc>
    
    <cc>dreibh</cc>
    
    <cc>ed.shornock</cc>
    
    <cc>juan.baptiste</cc>
    
    <cc>kde</cc>
    
    <cc>malinkh</cc>
    
    <cc>nickbryda</cc>
    
    <cc>pbhj</cc>
    
    <cc>radiostermino</cc>
    
    <cc>rick</cc>
    
    <cc>shouryasgupta</cc>
    
    <cc>sylvainsjc</cc>
          
          <cf_commitlink>http://commits.kde.org/kipi-plugins/946a4ed104c954f532efc27061a740b9904e317d</cf_commitlink>
          <cf_versionfixedin>4.12.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>71</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1365895</commentid>
    <comment_count>0</comment_count>
    <who name="">tps</who>
    <bug_when>2013-05-03 05:06:58 +0000</bug_when>
    <thetext>kipiplugins for Facebook doesn&apos;t give back an usable URL for communication and access to facebook picture upload. The given URL is something like &quot;https://www.facebook.com/connect/blank.html#_=_&quot;.
Unclear if this is a problem on Facebook or one because kipi-plugins do not handle given data korrektly.

Reproducible: Always

Steps to Reproduce:
1. Change your password on Facebook
2. Register Digicam again for uploading (the old URL is invalidated by password change)
3. Notice not given a new, usable URL
Actual Results:  
URL handled not usable

Expected Results:  
Usable URL

Maybe a problem on Facebook, not Digicam</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369864</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Dreibholz">dreibh</who>
    <bug_when>2013-05-19 21:01:43 +0000</bug_when>
    <thetext>I can confirm the problem for the latest version of the kipi-plugins installed with Ubuntu 13.04:

$ apt-show-versions | grep kipi
kipi-plugins/raring uptodate 4:3.1.0-0ubuntu1
kipi-plugins-common/raring uptodate 4:3.1.0-0ubuntu1
libkipi-data/raring uptodate 4:4.10.2-0ubuntu1
libkipi10/raring uptodate 4:4.10.2-0ubuntu1

The URL returned is always https://www.facebook.com/connect/blank.html#_=_ (i.e. invalid for kipi plugins authentication).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1370499</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Dreibholz">dreibh</who>
    <bug_when>2013-05-22 20:15:58 +0000</bug_when>
    <thetext>When clicking on the KIPI Plugin in Facebook&apos;s App Center, it reports &quot;This application does not yet support secure browsing (HTTPS)&quot;. It seems that Facebook has changed its API to make HTTPS mandatory, and the kipi plugin do not support HTTPS yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1371959</commentid>
    <comment_count>3</comment_count>
    <who name="Rick">rick</who>
    <bug_when>2013-05-29 02:44:54 +0000</bug_when>
    <thetext>I can confirm it is just as Thomas says, Using Ubuntu 13.04 with Chrome as the browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376409</commentid>
    <comment_count>4</comment_count>
    <who name="">pbhj</who>
    <bug_when>2013-06-13 15:11:09 +0000</bug_when>
    <thetext>Same for me using 4:3.2.0-0ubuntu1~ubuntu13.04~ppa1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377455</commentid>
    <comment_count>5</comment_count>
    <who name="">pbhj</who>
    <bug_when>2013-06-17 16:25:46 +0000</bug_when>
    <thetext>Seems that it&apos;s going to the right page and then moving on to a generated page, perhaps a return from FB. You can get the correct URL - with the required token - by looking back in your history (just hitting back in the browser tab may work, not sure).

See http://alicious.com/export-to-facebook-digikam-workaround/ for details of the workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377506</commentid>
    <comment_count>6</comment_count>
    <who name="">tps</who>
    <bug_when>2013-06-17 19:21:52 +0000</bug_when>
    <thetext>Yes, this is the workaround. But: it does not work with all browsers. I&apos;ve tested. It works for
- Firefox (sometimes the intermediate URL finds its way into the history list)
- Opera (old stable - sometimes the redirect doesn&apos;t work as expected)

It does not work for
- Firefox (nightly - the intermediate URL is never entered into the history list)
- Chromium, Chrome (same as with FF-Nightly)
- Opera (actual stable - same as with FF-Nightly)

I even tried lynx and others: they never get that far, because of java-script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377511</commentid>
    <comment_count>7</comment_count>
    <who name="">tps</who>
    <bug_when>2013-06-17 19:38:16 +0000</bug_when>
    <thetext>I tested again this moment: the latest nightly of chromium browser enters the intermediate URL into the history list! Means: the workaround works with this version too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381373</commentid>
    <comment_count>8</comment_count>
    <who name="Thomas Dreibholz">dreibh</who>
    <bug_when>2013-07-04 18:34:53 +0000</bug_when>
    <thetext>The workaround also works with Firefox 22.0 (Ubuntu, 64 bit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381469</commentid>
    <comment_count>9</comment_count>
    <who name="">tps</who>
    <bug_when>2013-07-05 04:18:19 +0000</bug_when>
    <thetext>Works for all browsers keeping a detailed history:
- Chrome
- Chromium
- Firefox (all supported versions)
- Opera
- Konqueror</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1385003</commentid>
    <comment_count>10</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-07-21 12:05:14 +0000</bug_when>
    <thetext>*** Bug 319573 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388802</commentid>
    <comment_count>11</comment_count>
    <who name="David P James">davidpjames</who>
    <bug_when>2013-08-09 21:07:56 +0000</bug_when>
    <thetext>The workaround (which I discovered independently of this bug) also works in rekonq - you have to open up the History page (Ctrl+H) and then Right-click -&gt; Copy Link over the &quot;login_success.html&quot; entry.

(I had about a dozen in the list, which I promptly deleted, due to futile attempts to stop the redirect).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389861</commentid>
    <comment_count>12</comment_count>
    <who name="">pbhj</who>
    <bug_when>2013-08-15 02:42:44 +0000</bug_when>
    <thetext>https://bugs.kde.org/show_bug.cgi?id=318967 may be a dupe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389918</commentid>
    <comment_count>13</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2013-08-15 08:42:09 +0000</bug_when>
    <thetext>*** Bug 318967 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389979</commentid>
    <comment_count>14</comment_count>
    <who name="">ed.shornock</who>
    <bug_when>2013-08-15 14:05:11 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; https://bugs.kde.org/show_bug.cgi?id=318967 may be a dupe.

Yes...though that other bug was older. :P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404932</commentid>
    <comment_count>15</comment_count>
    <who name="Jay Armstrong">jay</who>
    <bug_when>2013-10-21 07:55:23 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520137</commentid>
    <comment_count>16</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2015-05-19 10:56:52 +0000</bug_when>
    <thetext>This file still valid using last kipi-plugins 4.10.0 ?

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520163</commentid>
    <comment_count>17</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2015-05-19 11:24:24 +0000</bug_when>
    <thetext>*** Bug 320935 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520204</commentid>
    <comment_count>18</comment_count>
    <who name="">tps</who>
    <bug_when>2015-05-19 12:56:46 +0000</bug_when>
    <thetext>Yes, this is still valid. At least with browsers:
- Chrome (waterfall, unstable, testing, stable) -&gt; war: use url stored in history to reload page, then url to use with digikam is in history
- Chromium (waterfall, unstable, stable) -&gt; war: use url stored in history to reload page, then url to use with digikam is in history
- firefox (nightly, alpha, beta, stable, esr) -&gt; war: use url stored in history
- Opera (testing, release) -&gt; war: switch Opera to debug mode. Redirecting URL is the one to copy to digikam.
- konqueror (release) -&gt; did not find a way to get the URL to use with digiKam.

The crude problem is Facebook: after login they send the URL to copy to digiKam, together with a page redirecting to an unusable URL. The time before redirecting is set to an incredible low value -- no time to copy the URL. Some browsers put these redirects into history (firefox), some do not (Chrome, Chromium, Opera, konqueror). But all put the URL called after entering User/Password into history -&gt; calling this URL again enters the redirected URL into history for all browsers except konqueror.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529994</commentid>
    <comment_count>19</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2015-07-03 21:46:07 +0000</bug_when>
    <thetext>To comment #2 :

No. plugin use HTTPS in source code since a while. The problem is in another place...

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1529995</commentid>
    <comment_count>20</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2015-07-03 21:48:37 +0000</bug_when>
    <thetext>Following comment #18, what&apos;s will be the solution here. It&apos;s sounds like a problem from FaceBook authentification service. No ?

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1530147</commentid>
    <comment_count>21</comment_count>
    <who name="">tps</who>
    <bug_when>2015-07-04 12:28:27 +0000</bug_when>
    <thetext>The page facebook answers with is something like: &quot;https://www.facebook.com/connect/login_success.html#access_token=CAA....&quot;

Facebook has a redirect within his header directing to &quot;https://www.facebook.com/connect/blank.html#_=_&quot;. The redirect timeout is set to the minimum possible.
The page tries to copy the URL handled back to your clipboard, but most browsers nowadays do not allow this action -- or replace the copied URL by the redirected URL. The only way to find the correct URL to copy is to look into your browsers complete history. Since some browsers do not hold such a history your lost with them.
If your browser has a history keeping redirects also, you may copy the URL there. It is the right one to use with facebook export.

Using this URL now gives the error: &quot;User must specify a valid extended permission or data permission (100)&quot;. Meaning: connected OK, but didn&apos;t have permission to do what it wanted to do. Since there is AFAIK no way to specify the extended permission or data permission facebook export is asking for you are lost (if there was, it would be nice to have a link on some description on how to change and allow what is needed to make facebook export run!).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1530150</commentid>
    <comment_count>22</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2015-07-04 12:32:05 +0000</bug_when>
    <thetext>Tps,

yes the error message from Facebook is fully reproducible here...

Note : FB sounds like more and more unsuitable in time... This is why i don&apos;t use it since a while (Thanks G+)

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1532634</commentid>
    <comment_count>23</comment_count>
    <who name="Shourya Singh Gupta">shouryasgupta</who>
    <bug_when>2015-07-21 10:38:07 +0000</bug_when>
    <thetext>Git commit 946a4ed104c954f532efc27061a740b9904e317d by Shourya Singh Gupta.
Committed on 21/07/2015 at 10:37.
Pushed by shouryasinghgupta into branch &apos;master&apos;.

Facebook up and running now
Related: bug 240254, bug 289256, bug 347194
FIXED-IN: 4.12.0

A  +638  -0    0001-Testing-Youtube-integration.patch
M  +4    -1    facebook/fbwindow.cpp

http://commits.kde.org/kipi-plugins/946a4ed104c954f532efc27061a740b9904e317d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1532639</commentid>
    <comment_count>24</comment_count>
    <who name="Shourya Singh Gupta">shouryasgupta</who>
    <bug_when>2015-07-21 10:42:50 +0000</bug_when>
    <thetext>Unwanted file 0001-Testing-Youtube-integration.patch that got added in this commit was removed in the next commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2229181</commentid>
    <comment_count>25</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2023-05-10 05:46:01 +0000</bug_when>
    <thetext>*** Bug 319573 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>