Feed logo image displays a broken image

Bug #1497411 reported by Robin Leung
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Robert Lyon
15.04
Fix Released
Low
Robert Lyon
15.10
Fix Released
Undecided
Unassigned

Bug Description

If you add a new external RSS feed, it displays the feed but the "feedlogoimage" displays a broken image.

Using:
- Mahara 15.04.1
- Windows and OSX
- MYSQL
- Firefox (latest version)

Revision history for this message
Robin Leung (robin-leung) wrote :
Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 15.04.4
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "15.04_STABLE" branch: https://reviews.mahara.org/5317

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/5318

Revision history for this message
Robert Lyon (robertl-9) wrote :

The patches for master and 15.04 are slightly different

Changed in mahara:
milestone: 15.04.4 → 15.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "15.04_STABLE" branch: https://reviews.mahara.org/5343

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Test procedure:

1. Create a page
2. On the page, create an external feed block with this URL (which is a feed without a logo image): http://blogs.kwantlen.ca/sites/learntech/feed/
3. Also on the page, create an external feed block with this URL (which is a feed *with* a logo image): http://rss.earwolf.com/comedy-bang-bang
4. View the page

Expected result: The Kwantlen feed should display without a logo or a broken image. The Comedy Bang Bang feed should display with its logo image

One thing to note, is that the RSS feed logo will not display if the logo's URL is http and your site is https. That is a separate issue: https://bugs.launchpad.net/mahara/+bug/1234582

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/5344

Revision history for this message
Robin Leung (robin-leung) wrote :

Thanks for the quick fix! It works.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5344
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/2389c72b9bdf7e1e893de2192edf67bdbb0e8924
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 2389c72b9bdf7e1e893de2192edf67bdbb0e8924
Author: Aaron Wells <email address hidden>
Date: Wed Sep 23 17:54:21 2015 +1200

sanitize_url() should return false, when given a null URL (Bug 1497411)

It turns out that if you pass NULL to parse_url(), it returns:
array('path'=>''). Since we were checking isset($parsedurl['path']), this
returns true, even though the url was bad.

behatnotneeded: Already covered by existing tests

Change-Id: I5f4a6074981e6853988225858c22d9dcb0c43feb

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/5318
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/4308b06b3a97065c69a41ceaa310fda5c75c40c3
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 4308b06b3a97065c69a41ceaa310fda5c75c40c3
Author: Robert Lyon <email address hidden>
Date: Mon Sep 21 12:11:25 2015 +1200

Bug 1497411: Display RSS feed's image

behatnotneeded: Can't be checked by behat

Change-Id: Ia0de29f581e515ad5410139f6f0a8ce616ecf71f
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/5317
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/c6e09db153e38da7bc6f1766e6419c3051d15ef9
Submitter: Aaron Wells (<email address hidden>)
Branch: 15.04_STABLE

commit c6e09db153e38da7bc6f1766e6419c3051d15ef9
Author: Aaron Wells <email address hidden>
Date: Wed Sep 23 17:54:21 2015 +1200

sanitize_url() should return false, when given a null URL (Bug 1497411)

It turns out that if you pass NULL to parse_url(), it returns:
array('path'=>''). Since we were checking isset($parsedurl['path']), this
returns true, even though the url was bad.

behatnotneeded: Already covered by existing tests

Change-Id: I6ecb2468537b4754a35c76e3a4ee4a6ef6078229

Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → 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.