•  
      request #42261 RSS widget crashes when a feed entry do not have an associated link
    Infos
    #42261
    Thomas Gerbet (tgerbet)
    2025-03-25 17:03
    2025-03-25 10:44
    43937
    Details
    RSS widget crashes when a feed entry do not have an associated link

    Trace:

    Fatal error: Uncaught TypeError: Tuleap\Sanitizer\URISanitizer::sanitizeForHTMLAttribute(): Argument #1 ($uri) must be of type string, null given, called in /usr/share/tuleap/src/common/Widget/Widget_Rss.php on line 73 and defined in /usr/share/tuleap/src/common/Sanitizer/URISanitizer.php:40
    Stack trace:
    #0 /usr/share/tuleap/src/common/Widget/Widget_Rss.php(73): Tuleap\Sanitizer\URISanitizer->sanitizeForHTMLAttribute()
    #1 /usr/share/tuleap/src/common/Dashboard/Widget/Router.php(90): Widget_Rss->getContent()
    #2 /usr/share/tuleap/src/www/widgets/index.php(59): Tuleap\Dashboard\Widget\Router->route()
    #3 {main} thrown in /usr/share/tuleap/src/common/Sanitizer/URISanitizer.php on line 40
    

    Introduced by request #42243.

    Dashboard & Widgets
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2025-03-25
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2025-03-25 10:53

    • Summary
      -RSS widget crashes a feed entry do not have an associated link 
      +RSS widget crashes when a feed entry do not have an associated link 
    • Status changed from Under implementation to Under review