<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AN3928 bug, lwip http server with dynamic data in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916539#M13783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The source code (AN3928SW.zip) of AN3928 ("Web Server Using the MCF51CN Family and FreeRTOS") has a bug.&lt;/P&gt;&lt;P&gt;The problem is in function HTTP_SendDynamicData&amp;nbsp;in http_server.c&lt;/P&gt;&lt;P&gt;If a WEB page with dynamic content inside (.SHTML or .FSL extension) is stored in SD card then the SSI parsing can produce wrong results.&lt;/P&gt;&lt;P&gt;Data from a&amp;nbsp;file in SD is readed by blocks, the function HTTP_SendDynamicData&lt;SPAN&gt;&amp;nbsp;searches the string&amp;nbsp;"&amp;lt;!--#echo var=\"" in one block at a time, but if the block&amp;nbsp;doesn't contain that string&amp;nbsp;ENTIRELY this search will fail&amp;nbsp;and the block is&amp;nbsp;sent via ethernet without its dynamic variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BLOCK 0 ends with "&amp;lt;!--#ech"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BLOCK 1 starts with "o var=\"CHANNEL0"&amp;nbsp; etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In function&amp;nbsp;HTTP_SendDynamicData,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;row #554 in http_server.c, when it searches in BLOCK 0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"if(( index_a = (uint8 *)strstr(dynamic_start,SSI_START) ) != NULL)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Variable "index_a" will be NULL, so&amp;nbsp;the SSI parsing never happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So it's not safe to have SSI&amp;nbsp;web pages stored in SD card.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No problem if they are statically stored as const array in&amp;nbsp;static_web_pages.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2019 01:15:12 GMT</pubDate>
    <dc:creator>jarnisan_1979</dc:creator>
    <dc:date>2019-05-29T01:15:12Z</dc:date>
    <item>
      <title>AN3928 bug, lwip http server with dynamic data</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916539#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The source code (AN3928SW.zip) of AN3928 ("Web Server Using the MCF51CN Family and FreeRTOS") has a bug.&lt;/P&gt;&lt;P&gt;The problem is in function HTTP_SendDynamicData&amp;nbsp;in http_server.c&lt;/P&gt;&lt;P&gt;If a WEB page with dynamic content inside (.SHTML or .FSL extension) is stored in SD card then the SSI parsing can produce wrong results.&lt;/P&gt;&lt;P&gt;Data from a&amp;nbsp;file in SD is readed by blocks, the function HTTP_SendDynamicData&lt;SPAN&gt;&amp;nbsp;searches the string&amp;nbsp;"&amp;lt;!--#echo var=\"" in one block at a time, but if the block&amp;nbsp;doesn't contain that string&amp;nbsp;ENTIRELY this search will fail&amp;nbsp;and the block is&amp;nbsp;sent via ethernet without its dynamic variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BLOCK 0 ends with "&amp;lt;!--#ech"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BLOCK 1 starts with "o var=\"CHANNEL0"&amp;nbsp; etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In function&amp;nbsp;HTTP_SendDynamicData,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;row #554 in http_server.c, when it searches in BLOCK 0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"if(( index_a = (uint8 *)strstr(dynamic_start,SSI_START) ) != NULL)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Variable "index_a" will be NULL, so&amp;nbsp;the SSI parsing never happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So it's not safe to have SSI&amp;nbsp;web pages stored in SD card.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No problem if they are statically stored as const array in&amp;nbsp;static_web_pages.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 01:15:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916539#M13783</guid>
      <dc:creator>jarnisan_1979</dc:creator>
      <dc:date>2019-05-29T01:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: AN3928 bug, lwip http server with dynamic data</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916540#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend customer to check &lt;A href="https://www.freertos.org/MCF51CN128-Coldfire-V1.html"&gt;here &lt;/A&gt;about latest FreeRTOS uIP Embedded web server example for MCF51CN128 tower board.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 06:41:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916540#M13784</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-03T06:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: AN3928 bug, lwip http server with dynamic data</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916541#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;That has nothing to do with the problem I found.&lt;/P&gt;&lt;P&gt;I'm talking about a bug in a specific Freescale application note. Period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2019 22:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916541#M13785</guid>
      <dc:creator>jarnisan_1979</dc:creator>
      <dc:date>2019-06-16T22:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: AN3928 bug, lwip http server with dynamic data</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916542#M13786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the AN3928 author Paolo had left NXP( legacy Freescale) for many year, nobody maintain this application note so far.&lt;/P&gt;&lt;P&gt;Sorry for that may bring any inconvenience to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AN3928-bug-lwip-http-server-with-dynamic-data/m-p/916542#M13786</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-19T08:51:06Z</dc:date>
    </item>
  </channel>
</rss>

