You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Ed Slattery (JIRA)" <ji...@apache.org> on 2006/01/30 15:25:35 UTC

[jira] Created: (AXIS2C-46) guththila fails if white space at the beginning of the file

guththila fails if white space at the beginning of the file
-----------------------------------------------------------

         Key: AXIS2C-46
         URL: http://issues.apache.org/jira/browse/AXIS2C-46
     Project: Axis2-C
        Type: Bug
 Environment: windows
    Reporter: Ed Slattery
    Priority: Minor


I think the parser should allow whitespace before the first "<"...


int
guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
                                    guththila_xml_pull_parser_t * parser)
{
    do
    {
        int c;
        c = guththila_xml_pull_parser_next_char (environment, parser, -1);
        if (c == -1)
            return -1;

        switch (parser->status)
        {
        case S_1:
            /*+*/while (isspace(c))
            /*+*/{
            /*+*/   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
            /*+*/   if (c == -1)
            /*+*/       return -1;
            /*+*/}

            if ('<' == c)
                parser->status = S_2;
            else
                parser->status = S_0;
            break;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS2C-46) guththila fails if white space at the beginning of the file

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-46?page=all ]

Dinesh Premalal closed AXIS2C-46.
---------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

Ed has fixed this issue

> guththila fails if white space at the beginning of the file
> -----------------------------------------------------------
>
>                 Key: AXIS2C-46
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-46
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>         Environment: windows
>            Reporter: Ed Slattery
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> I think the parser should allow whitespace before the first "<"...
> int
> guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
>                                     guththila_xml_pull_parser_t * parser)
> {
>     do
>     {
>         int c;
>         c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>         if (c == -1)
>             return -1;
>         switch (parser->status)
>         {
>         case S_1:
>             /*+*/while (isspace(c))
>             /*+*/{
>             /*+*/   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>             /*+*/   if (c == -1)
>             /*+*/       return -1;
>             /*+*/}
>             if ('<' == c)
>                 parser->status = S_2;
>             else
>                 parser->status = S_0;
>             break;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-46) guththila fails if white space at the beginning of the file

Posted by "Ed Slattery (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-46?page=comments#action_12365541 ] 

Ed Slattery commented on AXIS2C-46:
-----------------------------------

Applied a fix for this

> guththila fails if white space at the beginning of the file
> -----------------------------------------------------------
>
>          Key: AXIS2C-46
>          URL: http://issues.apache.org/jira/browse/AXIS2C-46
>      Project: Axis2-C
>         Type: Bug
>  Environment: windows
>     Reporter: Ed Slattery
>     Priority: Minor

>
> I think the parser should allow whitespace before the first "<"...
> int
> guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
>                                     guththila_xml_pull_parser_t * parser)
> {
>     do
>     {
>         int c;
>         c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>         if (c == -1)
>             return -1;
>         switch (parser->status)
>         {
>         case S_1:
>             /*+*/while (isspace(c))
>             /*+*/{
>             /*+*/   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>             /*+*/   if (c == -1)
>             /*+*/       return -1;
>             /*+*/}
>             if ('<' == c)
>                 parser->status = S_2;
>             else
>                 parser->status = S_0;
>             break;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2C-46) guththila fails if white space at the beginning of the file

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-46?page=all ]

Samisa Abeysinghe updated AXIS2C-46:
------------------------------------

    Component/s: guththila
       Assignee: Dinesh Premalal

> guththila fails if white space at the beginning of the file
> -----------------------------------------------------------
>
>                 Key: AXIS2C-46
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-46
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>         Environment: windows
>            Reporter: Ed Slattery
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>
> I think the parser should allow whitespace before the first "<"...
> int
> guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
>                                     guththila_xml_pull_parser_t * parser)
> {
>     do
>     {
>         int c;
>         c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>         if (c == -1)
>             return -1;
>         switch (parser->status)
>         {
>         case S_1:
>             /*+*/while (isspace(c))
>             /*+*/{
>             /*+*/   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
>             /*+*/   if (c == -1)
>             /*+*/       return -1;
>             /*+*/}
>             if ('<' == c)
>                 parser->status = S_2;
>             else
>                 parser->status = S_0;
>             break;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org