DreamWeaver MX Bug

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41094
interpreted = N
texte = **IMPORTANT WARNING: If you write code for dynamic web sites and use templates, you'll want to carefully read this bug report and see if it affects you** I've discovered a 100% reproducible bug in the template function with MX release on Windows 2000 and XP. This will only affect you if you are using URLs to pass parameters. Basically, any relative URL that is outside of an editable area in the template that has special characters will get those characters encoded when the page related to a template is updated. I know that's a lot to digest, but here's the example:Suppose you place the following URL into a template:../actionpage.html?VARIABLE=[VALUE]In the case here, we're working with an application server and so when the page related to the template is displayed in the user's browser, the [VALUE] will be replaced by something out of a database. For example:../actionpage.html?VARIABLE=12345What happens in MX is when the page is updated after a change to its template, the URL is written out as../actionpage.html?VARIABLE=%5BVALUE%5DAnd so when the application server is passed this code, it doesn't see the right delimiters for the code so it doesn't get processed and the site breaks - big time.The example above is for code with Webcatalog. I haven't tested with PHP, CFM or ASP, but I suspect a similar problem will exist.There was no problem in DW 4 or UltraDev 4 with this. URLs in editable areas are not affected, nor are ablsolute URL (e.g., http://www.test.com)Finally, I have changed the Rewrite Code preferences and added .dwt, .html to the never rewrite attributes as well as turned off Encode URLs with Special Characters function. Basically, I've tried to disable code rewriting for all conditions.I've reported this through the Macromedia bug form and heard nothing back.Richard Kirsner ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: DreamWeaver MX Bug (Gary Krockover 2002)
  2. DreamWeaver MX Bug (kirsner.net 2002)
**IMPORTANT WARNING: If you write code for dynamic web sites and use templates, you'll want to carefully read this bug report and see if it affects you** I've discovered a 100% reproducible bug in the template function with MX release on Windows 2000 and XP. This will only affect you if you are using URLs to pass parameters. Basically, any relative URL that is outside of an editable area in the template that has special characters will get those characters encoded when the page related to a template is updated. I know that's a lot to digest, but here's the example:Suppose you place the following URL into a template:../actionpage.html?VARIABLE=[VALUE]In the case here, we're working with an application server and so when the page related to the template is displayed in the user's browser, the [VALUE] will be replaced by something out of a database. For example:../actionpage.html?VARIABLE=12345What happens in MX is when the page is updated after a change to its template, the URL is written out as../actionpage.html?VARIABLE=%5BVALUE%5DAnd so when the application server is passed this code, it doesn't see the right delimiters for the code so it doesn't get processed and the site breaks - big time.The example above is for code with Webcatalog. I haven't tested with PHP, CFM or ASP, but I suspect a similar problem will exist.There was no problem in DW 4 or UltraDev 4 with this. URLs in editable areas are not affected, nor are ablsolute URL (e.g., http://www.test.com)Finally, I have changed the Rewrite Code preferences and added .dwt, .html to the never rewrite attributes as well as turned off Encode URLs with Special Characters function. Basically, I've tried to disable code rewriting for all conditions.I've reported this through the Macromedia bug form and heard nothing back.Richard Kirsner ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ kirsner.net

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog can't find database (1997) SKU lookup (1997) BW in a search (2007) Date Range Sorting (1997) [include] affect on filepaths for links? (1997) Beta version-Mac? (was Emailer update for Mac?) (1998) Associative lookup style? + bit more (1997) Multiple Items (1998) Database Advice (1996) database freeze (1997) [/application] error? (1997) Webcatalog/NT dbserver crashing. (2000) hideifs using [date] (1999) Creating a back button (1999) Re:WebDNA Writer Needed (1997) emailer w/F2 (1997) [WebDNA] [showif] problem (2009) Server Freeze (1998) WebCat2 - Getting to the browser's username/password data (1997) Why does setheader provide a db= parameter? (2005)