Last modified: 2013-12-28 13:25:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61043, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59043 - REPORTS-30 Multi-line %wikis fails
REPORTS-30 Multi-line %wikis fails
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
tsreports (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-28 13:25 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2013-12-28 13:25 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bugzilla Bug Importer (valhallasw) 2013-12-28 13:25:45 UTC
This issue was converted from https://jira.toolserver.org/browse/REPORTS-30.
Summary: Multi-line %wikis fails
Issue type: Bug - A problem which impairs or prevents the functions of the product.
Priority: Major
Status: Resolved
Assignee: River Tarnell <river.tarnell@wikimedia.de>

-------------------------------------------------------------------------------
From: River Tarnell <river.tarnell@wikimedia.de>
Date: Wed, 17 Sep 2008 22:10:47
-------------------------------------------------------------------------------

When a multi-line %wikis ... %end is used, nightly fails because of incorrect splitting:
    
    river@hemlock:~/tsreports>./nightly
    mostrevisions
    Traceback (most recent call last):
      File "./nightly", line 45, in <module>
        w = repdb.find_wiki_domain(context, wiki)
      File "/home/river/ts-reports/python/repdb.py", line 58, in find_wiki_domain
        raise ValueError('no such wiki')
    ValueError: no such wiki
    

The problem is an empty string ends up in the wiki list, from the split at Reports.py:82.
Comment 1 Bugzilla Bug Importer (valhallasw) 2013-12-28 13:25:47 UTC
-------------------------------------------------------------------------------
From: River Tarnell <river.tarnell@wikimedia.de>
Date: Wed, 17 Sep 2008 22:48:14
-------------------------------------------------------------------------------

Fixed by using a list comprehension to remove zero-length values.
Comment 2 Bugzilla Bug Importer (valhallasw) 2013-12-28 13:25:48 UTC
This bug was imported as RESOLVED. The original assignee has therefore not been
set, and the original reporters/responders have not been added as CC, to
prevent bugspam.

If you re-open this bug, please consider adding these people to the CC list:
Original assignee: river@TCX.ORG.UK
CC list: river@TCX.ORG.UK

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links