pasted URL always shortened even when turned off

Bug #896639 reported by Captain Chaos
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Gwibber
Fix Released
Low
Unassigned
gwibber (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Gwibber always shortens pasted URL's, even when "automatically shorten pasted URLs is turned off".

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gwibber 3.2.1-0ubuntu1.3
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Nov 26 18:49:26 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
SourcePackage: gwibber
UpgradeStatus: Upgraded to oneiric on 2011-11-23 (3 days ago)

Revision history for this message
Captain Chaos (launchpad-chaos) wrote :
Revision history for this message
Matt Fischer (mfisch) wrote :

I can confirm this behavior. Also, the URL shortening service used is not even one of the options given in gwibber. gwibber used t.co for the URL I posted.

I will note that twitter.com, in a browser, shows my URL as "ubuntu.com". I do not know if twitter is auto-expanding that URL or whether gwibber didn't really post it with a shortened URL.

Changed in gwibber (Ubuntu):
status: New → Confirmed
Revision history for this message
Captain Chaos (launchpad-chaos) wrote :

Matt, it's highly unlikely that Gwibber would be using t.co. As far as I know that is a private service created and exclusively used by Twitter.

Gwibber shows your tweets as downloaded from Twitter, not as you posted them, and Twitter unfortunately shortens every link using their own link shortener, whether you want it to or not, and whether it actually becomes shorter or not.

The behaviour I am seeing is that as soon as I paste a link into Gwibber, it gets shortened (using is.gd, in my case), so before it is even posted.

Revision history for this message
Bilal Shahid (s9iper1) wrote :

ken can you please see this one i have also checked it with 3.3.3 and i am able to reproduce it. if we close the URL shorten option than there may be a possible that it displays that URL as it is and don't change
 as we see the bug so if the URL shorten is off or on it doesn't matter it displays the shorten URL

Changed in gwibber (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Changed in gwibber:
importance: Undecided → Low
assignee: nobody → Ken VanDine (ken-vandine)
Revision history for this message
Luiz Gregorio (lggregorio) wrote :

Hi all,
I am also facing the same problem on Gwibber running on my machine. I use URL shortener option, however, sometimes I prefer to paste the URL without having it shortened, something like <www.uol.com.br>, which is simpler for others to understand.
Here the problem starts, even if I uncheck the option for automatically shortening and paste any URL there, it will be shortened by tinyurl or any service it is highlighted.
I also checked the config file where it reads:
<entry name="shorten_urls" mtime="1326835342" type="bool" value="false"/>

I am facing this problem on Ubuntu and also on Mint

Bilal Shahid (s9iper1)
Changed in gwibber:
status: New → Confirmed
Revision history for this message
Martin T. (mart-e) wrote :

I had a look at the code and I may have a lead. The url is automatically shortened with a copy-paste when the function URLShorten.Shorten is called without checking the settings "shorten-urls".

Strangely I couldn't find where it was called from, at least not from client.py or gwui.py (the only place I found where this function is called and anyway the setting is checked there).

The not-so-beautiful solution I found was to recheck the setting again in the function URLShorten.Shorten (cf my patch)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "shorten-url.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in gwibber:
assignee: Ken VanDine (ken-vandine) → nobody
milestone: none → 3.4
status: Confirmed → Fix Committed
Changed in gwibber:
status: Fix Committed → Fix Released
Changed in gwibber (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.