Last modified: 2011-03-13 18:06:10 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 T29058, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27058 - User allowed to insert a table with 0 rows.
User allowed to insert a table with 0 rows.
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-31 10:06 UTC by Nadeesha
Modified: 2011-03-13 18:06 UTC (History)
2 users (show)

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


Attachments

Description Nadeesha 2011-01-31 10:06:54 UTC
Steps to reproduce:
1. Navigate to wikimedia main page.
2. Open a page in edit mode.
3. Click on the 'Table' button on the 'Advanced' toolbar.
4. Enter '0' for 'Rows' field and click on the 'Insert' button.
 
Actual results:
User allows to insert a table of '0' rows.

Expected results:
System should be display 'You cannot insert a table with zero rows or columns' message.
Note: User cannot insert a table with '0' columns.

URL : http://prototype.wikimedia.org/rc-en/index.php/Main_Page
Version : 1.17alpha (r80667)
Comment 1 Krinkle 2011-01-31 15:53:24 UTC
The error is in fact shown if columns is 1 and rows is 0.

However if the "Add header row" checkbox is ticked then 0 rows is allowed.

We can't decide and should not 'disallow' a user from creating a table header without rows. This could be useful for demonstration purpuses if no content is available yet.

The following renders just fine, no problems:

{| class="wikitable"
|-
! Header 
! text
|}


- Moving issue from MediaWiki/pag editing to Extensions/WikiEditor as this toolbar is not part of the MediaWiki core.
- Marking WONTFIX.
Comment 2 Mark A. Hershberger 2011-01-31 17:16:23 UTC
Toggling the FCK editor on and off repeatedly (when this extension is installed into 1.17) show will add one row so that there is 1 instead of 0.
Comment 3 Mark A. Hershberger 2011-01-31 19:03:35 UTC
Opening a new bug with my comment

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


Navigation
Links