After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729193 - cannot add Podcasts without http:// in the url
cannot add Podcasts without http:// in the url
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Podcasting
2.6.2
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-29 14:03 UTC by Thomas Pointhuber
Modified: 2014-12-15 09:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixed by auto-prefixing http:// to the input URL accordingly (1.30 KB, patch)
2014-12-14 19:38 UTC, Ankit
committed Details | Review

Description Thomas Pointhuber 2014-04-29 14:03:16 UTC
If I would add a podcast like mikrowelle.me/opus.xml, without the http:// at beginning of the url, the following error occour:

Podcast Adress is invalid
Comment 1 Nilamdyuti Goswami 2014-06-10 10:10:04 UTC
Can I work on this bug?
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2014-06-16 21:10:49 UTC
(In reply to comment #1)
> Can I work on this bug?

Of course! Don't hesitate to ask any questions you have.
Comment 3 Ankit 2014-12-14 19:38:53 UTC
Created attachment 292704 [details] [review]
Fixed by auto-prefixing http:// to the input URL accordingly

In the current version the URLs which are not of the form protocol://address
are considered as invalid. So in my patch I prefixed http:// before entered URL
and checked for the validity of URL.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2014-12-14 20:06:29 UTC
Hi Ankit, thanks for the patch! It looks good to me.

One question before committing to the repository: normally we add the full name of our contributors when we push patches on behalf of them, can you give me your surname then? (It's not mandatory, if you don't want to, just tell me to use the name or nickname instead.)

Thanks
Comment 5 Ankit 2014-12-14 20:20:06 UTC
Actually my official name is "Ankit" 

No surname.
Comment 6 Andrés G. Aragoneses (IRC: knocte) 2014-12-15 01:18:12 UTC
Comment on attachment 292704 [details] [review]
Fixed by auto-prefixing http:// to the input URL accordingly

(In reply to comment #5)
> Actually my official name is "Ankit" 
> 
> No surname.

That's interesting, I thought there were no countries without surnames :)

Ankit, I committed your fix, but after I had backported it, I realised that it's not entirely correct, so I'm added a second patch to improve it.

The problem with it was this: let's say the user tries to add the URL for a podcast like this: ftp://mikrowelle.me/opus.xml . As you can see, this URL already has a protocol, and what happens is that, the FTP access for that site is closed, so then banshee considers it as not parseable, then with your patch, banshee would test the URL "http://ftp://mikrowelle.me/opus.xml", and then it would tell the user that the URL is wrong.

The way to fix this was to not overwrite the feedUri variable in the second call to TryParseUrl().
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2014-12-15 01:24:40 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 8 Ankit 2014-12-15 09:03:57 UTC
Even in India most of the people have surnames.

But you can choose to not to have one.
Comment 9 Ankit 2014-12-15 09:05:55 UTC
(In reply to comment #6)
> (From update of attachment 292704 [details] [review])
> (In reply to comment #5)
> > Actually my official name is "Ankit" 
> > 
> > No surname.
> 
> That's interesting, I thought there were no countries without surnames :)
> 
> Ankit, I committed your fix, but after I had backported it, I realised that
> it's not entirely correct, so I'm added a second patch to improve it.
> 
> The problem with it was this: let's say the user tries to add the URL for a
> podcast like this: ftp://mikrowelle.me/opus.xml . As you can see, this URL
> already has a protocol, and what happens is that, the FTP access for that site
> is closed, so then banshee considers it as not parseable, then with your patch,
> banshee would test the URL "http://ftp://mikrowelle.me/opus.xml", and then it
> would tell the user that the URL is wrong.
> 
> The way to fix this was to not overwrite the feedUri variable in the second
> call to TryParseUrl().

FYI Facebook Thailand lets them enter their names without surname.