<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17149</bug_id>
          
          <creation_ts>2012-05-22 14:22:49 +0000</creation_ts>
          <short_desc>Import of manifest file gives an array error</short_desc>
          <delta_ts>2012-05-24 01:38:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Testing</product>
          <component>Test Framework</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeanne Spellman">jeanne</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>mike</cc>
    
    <cc>public-test-infra</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68007</commentid>
    <comment_count>0</comment_count>
    <who name="Jeanne Spellman">jeanne</who>
    <bug_when>2012-05-22 14:22:49 +0000</bug_when>
    <thetext>I am attempting to import a manifest file using the webUI at: 
http://w3c-test.org/framework/add/testcases/ATAG20-LC-20120410

The 8-field manifest file is at:
http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt

The documentation wasn&apos;t clear as to the file format it expected. I just took my spreadsheet and exported it as tab limited, &quot; string, 8859-15 text. The filename defaulted to .csv, I manually changed it to .txt

When I entered the URI and hit submit, this is the first result:

*************************************************
WARNING: array_key_exists(): The first argument should be either a string or an integer File: /u/www.w3c-test.org/framework/util/TestCaseImport.php Line: 157 Context: Array ( [sectionId] =&gt; ) Args: #0 CmdLineWorker-&gt;errorHandler(2, array_key_exists(): The first argument should be either a string or an integer, /u/www.w3c-test.org/framework/util/TestCaseImport.php, 157, Array ([sectionId] =&gt; )) #1 array_key_exists(, Array ([1485] =&gt; 0,[1486] =&gt; 1485,[1487] =&gt; 1486,[1488] =&gt; 1487,[1489] =&gt; 1486,[1490] =&gt; 1489,[1491] =&gt; 1489,[1492] =&gt; 1485,[1493] =&gt; 1492,[1494] =&gt; 1493,[1495] =&gt; 1493,[1496] =&gt; 1492,[1497] =&gt; 1496,[1498] =&gt; 1496,[1499] =&gt; 1485,[1500] =&gt; 1499,[1501] =&gt; 1500,[1502] =&gt; 1500,[1503] =&gt; 1500,[1504] =&gt; 1500,[1505] =&gt; 1500,[1506] =&gt; 1500,[1507] =&gt; 1499,[1508] =&gt; 1507,[1509] =&gt; 1507,[1510] =&gt; 1507,[1511] =&gt; 1507,[1512] =&gt; 1499,[1513] =&gt; 1512,[1514] =&gt; 1499,[1515] =&gt; 1514,[1516] =&gt; 1514,[1517] =&gt; 1499,[1518] =&gt; 1517,[1519] =&gt; 1499,[1520] =&gt; 1519,[1521] =&gt; 1519,[1522] =&gt; 1519,[1523] =&gt; 1519,[1524] =&gt; 1499,[1525] =&gt; 1524,[1526] =&gt; 1524,[1527] =&gt; 1485,[1528] =&gt; 1527,[1529] =&gt; 1528,[1530] =&gt; 1528,[1531] =&gt; 1528,[1532] =&gt; 1527,[1533] =&gt; 1532,[1534] =&gt; 1532,[1535] =&gt; 0,[1536] =&gt; 1535,[1537] =&gt; 1536,[1538] =&gt; 1537,[1539] =&gt; 1537,[1540] =&gt; 1536,[1541] =&gt; 1540,[1542] =&gt; 1540,[1543] =&gt; 1540,[1544] =&gt; 1540,[1545] =&gt; 1535,[1546] =&gt; 1545,[1547] =&gt; 1546,[1548] =&gt; 1545,[1549] =&gt; 1548,[1550] =&gt; 1545,[1551] =&gt; 1550,[1552] =&gt; 1550,[1553] =&gt; 1550,[1554] =&gt; 1550,[1555] =&gt; 1545,[1556] =&gt; 1555,[1557] =&gt; 1555,[1558] =&gt; 1555,[1559] =&gt; 1555,[1560] =&gt; 1545,[1561] =&gt; 1560,[1562] =&gt; 1560,[1563] =&gt; 1535,[1564] =&gt; 1563,[1565] =&gt; 1564,[1566] =&gt; 1564,[1567] =&gt; 1564,[1568] =&gt; 1564,[1569] =&gt; 1564,[1570] =&gt; 1563,[1571] =&gt; 1570,[1572] =&gt; 1535,[1573] =&gt; 1572,[1574] =&gt; 1573,[1575] =&gt; 1573,[1576] =&gt; 1573,[1577] =&gt; 1573,[1578] =&gt; 1573,[1579] =&gt; 1572,[1580] =&gt; 1579,[1581] =&gt; 1579,[1582] =&gt; 1579,[1583] =&gt; 1579)) called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:157] #2 TestCaseImport-&gt;_getSectionParentId() called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:533] #3 TestCaseImport-&gt;import(http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt, ATAG20-LC-20120410, full) called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:1560] #4 AddChangePage-&gt;writeAddTestCases() called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:330] #5 AddChangePage-&gt;writeBodyContent() called at [/u/www.w3c-test.org/framework/core/Page.php:1558] #6 Page-&gt;writeHTMLBody() called at [/u/www.w3c-test.org/framework/core/Page.php:1438] #7 Page-&gt;writeHTML() called at [/u/www.w3c-test.org/framework/core/Page.php:1356] #8 Page-&gt;write() called at [/u/www.w3c-test.org/framework/core/Page.php:69] #9 Page::RunPage(AddChangePage) called at [/u/www.w3c-test.org/framework/addchange.php:23]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=

I tried it again in case I had messed up the settings:

2nd attempt error message:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: array_key_exists(): The first argument should be either a string or an integer File: /u/www.w3c-test.org/framework/util/TestCaseImport.php Line: 157 Context: Array ( [sectionId] =&gt; ) Args: #0 CmdLineWorker-&gt;errorHandler(2, array_key_exists(): The first argument should be either a string or an integer, /u/www.w3c-test.org/framework/util/TestCaseImport.php, 157, Array ([sectionId] =&gt; )) #1 array_key_exists(, Array ([1485] =&gt; 0,[1486] =&gt; 1485,[1487] =&gt; 1486,[1488] =&gt; 1487,[1489] =&gt; 1486,[1490] =&gt; 1489,[1491] =&gt; 1489,[1492] =&gt; 1485,[1493] =&gt; 1492,[1494] =&gt; 1493,[1495] =&gt; 1493,[1496] =&gt; 1492,[1497] =&gt; 1496,[1498] =&gt; 1496,[1499] =&gt; 1485,[1500] =&gt; 1499,[1501] =&gt; 1500,[1502] =&gt; 1500,[1503] =&gt; 1500,[1504] =&gt; 1500,[1505] =&gt; 1500,[1506] =&gt; 1500,[1507] =&gt; 1499,[1508] =&gt; 1507,[1509] =&gt; 1507,[1510] =&gt; 1507,[1511] =&gt; 1507,[1512] =&gt; 1499,[1513] =&gt; 1512,[1514] =&gt; 1499,[1515] =&gt; 1514,[1516] =&gt; 1514,[1517] =&gt; 1499,[1518] =&gt; 1517,[1519] =&gt; 1499,[1520] =&gt; 1519,[1521] =&gt; 1519,[1522] =&gt; 1519,[1523] =&gt; 1519,[1524] =&gt; 1499,[1525] =&gt; 1524,[1526] =&gt; 1524,[1527] =&gt; 1485,[1528] =&gt; 1527,[1529] =&gt; 1528,[1530] =&gt; 1528,[1531] =&gt; 1528,[1532] =&gt; 1527,[1533] =&gt; 1532,[1534] =&gt; 1532,[1535] =&gt; 0,[1536] =&gt; 1535,[1537] =&gt; 1536,[1538] =&gt; 1537,[1539] =&gt; 1537,[1540] =&gt; 1536,[1541] =&gt; 1540,[1542] =&gt; 1540,[1543] =&gt; 1540,[1544] =&gt; 1540,[1545] =&gt; 1535,[1546] =&gt; 1545,[1547] =&gt; 1546,[1548] =&gt; 1545,[1549] =&gt; 1548,[1550] =&gt; 1545,[1551] =&gt; 1550,[1552] =&gt; 1550,[1553] =&gt; 1550,[1554] =&gt; 1550,[1555] =&gt; 1545,[1556] =&gt; 1555,[1557] =&gt; 1555,[1558] =&gt; 1555,[1559] =&gt; 1555,[1560] =&gt; 1545,[1561] =&gt; 1560,[1562] =&gt; 1560,[1563] =&gt; 1535,[1564] =&gt; 1563,[1565] =&gt; 1564,[1566] =&gt; 1564,[1567] =&gt; 1564,[1568] =&gt; 1564,[1569] =&gt; 1564,[1570] =&gt; 1563,[1571] =&gt; 1570,[1572] =&gt; 1535,[1573] =&gt; 1572,[1574] =&gt; 1573,[1575] =&gt; 1573,[1576] =&gt; 1573,[1577] =&gt; 1573,[1578] =&gt; 1573,[1579] =&gt; 1572,[1580] =&gt; 1579,[1581] =&gt; 1579,[1582] =&gt; 1579,[1583] =&gt; 1579,[1584] =&gt; 0,[1585] =&gt; 0)) called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:157] #2 TestCaseImport-&gt;_getSectionParentId() called at [/u/www.w3c-test.org/framework/util/TestCaseImport.php:533] #3 TestCaseImport-&gt;import(http://www.w3.org/WAI/AU/2012/ATAG20tests/ATAGmanifest20120522.txt, ATAG20-LC-20120410, full) called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:1560] #4 AddChangePage-&gt;writeAddTestCases() called at [/u/www.w3c-test.org/framework/pages/AddChangePage.php:330] #5 AddChangePage-&gt;writeBodyContent() called at [/u/www.w3c-test.org/framework/core/Page.php:1558] #6 Page-&gt;writeHTMLBody() called at [/u/www.w3c-test.org/framework/core/Page.php:1438] #7 Page-&gt;writeHTML() called at [/u/www.w3c-test.org/framework/core/Page.php:1356] #8 Page-&gt;write() called at [/u/www.w3c-test.org/framework/core/Page.php:69] #9 Page::RunPage(AddChangePage) called at [/u/www.w3c-test.org/framework/addchange.php:23]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68067</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-05-24 01:38:24 +0000</bug_when>
    <thetext>I&apos;m not sure what was causing the problem, but I think it could have been caused by the quotation marks around the field names. Because when I removed those from the manifest, I was able to do the import successfully:

  http://w3c-test.org/framework/suite/ATAG20-LC-20120410/

The manifest I used is here: http://people.w3.org/mike/tests/ATAGmanifest20120522.txt

If you find further problems, feel free to re-open this or just ping me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>