Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#5119 closed Bug (fixed)

Error when displaying tracker list

Reported by: livings124 Owned by: jordan
Priority: Normal Milestone: 2.74
Component: Web Client Version: 2.73
Severity: Normal Keywords:


When displaying the tracker list, the error appears in the console:

TypeError?: 'undefined' is not an object (evaluating 'text.replace') common.js:101

Change History (5)

comment:1 Changed 10 years ago by jordan

  • Owner set to jordan
  • Status changed from new to assigned

looks like we're passing an undefined into sanitizeText(). I can't test this right now, but my guess is it's in inspector.js:729 in the calls to sanitizeText(tracker.announce) and sanitizeText(

At a minimum, we ought to make sanitizeText null-safe.

But also, assuming inspector.js:729 is where the call is coming from, I'm wondering how we manage to have a tracker whose .announce and/or .host field is undefined. livings, is this consistent behavior for you no matter which torrent is being shown in the inspector?

comment:2 Changed 10 years ago by jordan

  • Milestone changed from None Set to 2.80

comment:3 Changed 10 years ago by livings124

I'm able to replicate this for multiple torrents.

comment:4 Changed 10 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r13618.

comment:5 Changed 9 years ago by jordan

  • Milestone changed from 2.80 to 2.74
Note: See TracTickets for help on using tickets.