4 Replies Latest reply on Jun 2, 2006 6:55 AM by RxM

    Strange behavior - added spaces to links

    RxM

      I recently built another server to add to my webfarm. The servers in my farm are Microsoft 2000 Server and 2003 Web Server edition. I currently have 10 servers working flawlessly. This new installation however seems to have a problem when it reads the cfm code - it adds forty (40) spaces to my img src links.

      Example of code (view page source option in IE) of a webserver that has no issues:
      ___________________
      <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="3" id="List_Row_BG3"><img src="/sw/themes/5/images/blank.gif" height="1" width="10" hspace="0" vspace="0"></td></tr><tr><td width="1" id="List_Row_BG3"><img src="/sw/themes/5/images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td><td valign="top"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="/sw/themes/5/images/window/jewel.gif"></td><td background="/sw/themes/5/images/window/bg.gif" width="100%"><span class="normal_bold_text">User Options</span></td><td><img src="/sw/themes/5/images/window/end.gif"></td></tr></table></td><td width="1" id="List_Row_BG3"><img src="/sw/themes/5/images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td></tr><tr><td colspan="3" id="List_Row_BG3"><img src="/sw/themes/5/images/blank.gif" height="1" width="10" hspace="0" vspace="0"></td></tr><tr><td width="1" id="List_Row_BG3"><img src="/sw/themes/5/images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td><td valign="top">
      ___________________
      Example from the server with the problem
      ___________________
      <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td colspan="3" id="List_Row_BG3"><img src="/sw/themes/5 /images/blank.gif" height="1" width="10" hspace="0" vspace="0"></td></tr><tr><td width="1" id="List_Row_BG3"><img src="/sw/themes/5 /images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td><td valign="top"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><img src="/sw/themes/5 /images/window/jewel.gif"></td><td background="/sw/themes/5 /images/window/bg.gif" width="100%"><span class="normal_bold_text">User Options</span></td><td><img src="/sw/themes/5 /images/window/end.gif"></td></tr></table></td><td width="1" id="List_Row_BG3"><img src="/sw/themes/5 /images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td></tr><tr><td colspan="3" id="List_Row_BG3"><img src="/sw/themes/5 /images/blank.gif" height="1" width="10" hspace="0" vspace="0"></td></tr><tr><td width="1" id="List_Row_BG3"><img src="/sw/themes/5 /images/blank.gif" height="10" width="1" hspace="0" vspace="0"></td><td valign="top">
      ___________________
      It doesn't translate exactly when copy pasting to here, but the link to a picture that doesn't work (from properties on the failed image in IE):
      http://64.14.55.136/sw/themes/5%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2 0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20/images/window/jewel.gif

      Obviously that makes the page not display images correctly. Both servers are reading the same exact file from the same network location. I am at my wits end trying to fix this, instead all I can think of next is to reinstall the Operating System, and try this again sans any Microsoft patches in case something there caused this.

      Has anyone seen anything like this before?
        • 1. Re: Strange behavior - added spaces to links
          Level 7
          I ssupect you have whitespace management enabled on all the other servers,
          but not the new one?

          --
          Adam
          • 2. Re: Strange behavior - added spaces to links
            RxM Level 1
            Adam, I double checked and the 'suppress whitespace by default' option is checked on for this server. I also went through and compared the administration options to make sure they are identical between this server and another that works.
            Thanks for the input however, it could have been it.

            -Roy
            • 3. Re: Strange behavior - added spaces to links
              MikerRoo Level 1
              Are the spaces always added in the same place (directory "5")?

              Is the locale set differently for the odd server?

              Are you pulling the spaced-out data from a database? (ansi) padding settings and locale settings of same?

              Attach the code that generates the offending spaces.
              • 4. Re: Strange behavior - added spaces to links
                RxM Level 1
                Sure thing, below are snippits from the application.cfm

                application.cfm
                ==============================
                <cfstoredproc
                procedure="procs.GeProperties"
                DATASOURCE="#Application.NativeDataSource#"
                returncode="no"
                blockfactor="100"
                username="xxxxxx"
                password="#Application.DataPassword#">
                <cfprocparam
                type="IN"
                cfsqltype="cf_sql_integer"
                value=#InternalSessionID#
                variable="SessionINID">
                <.... more variables...>
                <cfprocparam
                type="OUT"
                cfsqltype="cf_sql_integer"
                variable="iThemeID">
                ......

                <link REL='stylesheet' HREF='/#aThemeDir#/#iThemeID#/theme#iThemeID#.css' TYPE='text/css'>

                At this point iThemeID is already padded with spaces, when I view the source in IE, I get:
                <link REL='stylesheet' HREF='/sw/themes/5%20%20%20%20%20%20%20%20%20%20%20%20%20%20 %20%20%20%20%20%20%20%20/theme5%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20 %20.css' TYPE='text/css'>

                I filled out the spaces from my copy paste with %20 to illustrate it since they get truncated when I post.

                Thanks for your replies guys.

                -Roy