• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Strange behavior - added spaces to links

New Here ,
Jun 01, 2006 Jun 01, 2006

Copy link to clipboard

Copied


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%20%20%20%20...

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?
TOPICS
Advanced techniques

Views

314

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2006 Jun 01, 2006

Copy link to clipboard

Copied

I ssupect you have whitespace management enabled on all the other servers,
but not the new one?

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 01, 2006 Jun 01, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 01, 2006 Jun 01, 2006

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 02, 2006 Jun 02, 2006

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation