Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PowerDynamo on Solaris & filenames

4 posts in General Discussion (old) Last posting was on 2000-02-15 00:07:59.0Z
Daniel Montero Posted on 2000-02-11 18:19:02.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 11 Feb 2000 12:19:02 -0600
From: Daniel Montero <danim@gruposoin.com.mx>
Organization: Grupo SOIN, S.A. de C.V.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: PowerDynamo on Solaris & filenames
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
NNTP-Posting-Host: na-28-221.na.avantel.net.mx 148.245.28.221
Message-ID: <347_38A45296.EE7ED4E0@gruposoin.com.mx>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28883
Article PK: 161256

Hi.
I installed PD3.5 in a solaris 2.7 box, and when trying to access
http://server/myapp/moduleOne/loginFrame.html
through a dynamo mapping (/myapp), it fails, saying that the file
doesn't exist.
If i access http://server/myapp/moduleone/loginframe.html (note the
lower case), and rename my directories and filenames to be all
lower-case, all works ok. But all my pages have references inside with
mixed-case URLs, so I would need to edit all my pages to haver all
lower-case references.
The same thing happened to me with PD3.0 some months ago, and we had to
change it to lower case.

My question is:
Is it possible to have working PD sites with mixed case filenames, or
must I modify my site to be lower-case?


Note: in both 3.0 & 3.5 versions it worked well in nt, but not in
solaris.

TIA

danim


Scott McReynolds [Sybase] Posted on 2000-02-11 18:35:42.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: PowerDynamo on Solaris & filenames
Date: Fri, 11 Feb 2000 11:35:42 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: scottmc-pc.sybase.com 157.133.56.75
Message-ID: <347_ZngCH9Ld$GA.180@forums.sybase.com>
References: <347_38A45296.EE7ED4E0@gruposoin.com.mx>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28881
Article PK: 161257

Daniel,

What are the real file names. Are they mixed or not. I would think that
PowerDynamo would look them up with the file name as they exists within the
database on Solaris.

Scott

Daniel Montero <danim@gruposoin.com.mx> wrote in message
news:38A45296.EE7ED4E0@gruposoin.com.mx...
> Hi.
> I installed PD3.5 in a solaris 2.7 box, and when trying to access
> http://server/myapp/moduleOne/loginFrame.html
> through a dynamo mapping (/myapp), it fails, saying that the file
> doesn't exist.
> If i access http://server/myapp/moduleone/loginframe.html (note the
> lower case), and rename my directories and filenames to be all
> lower-case, all works ok. But all my pages have references inside with
> mixed-case URLs, so I would need to edit all my pages to haver all
> lower-case references.
> The same thing happened to me with PD3.0 some months ago, and we had to
> change it to lower case.
>
> My question is:
> Is it possible to have working PD sites with mixed case filenames, or
> must I modify my site to be lower-case?
>
>
> Note: in both 3.0 & 3.5 versions it worked well in nt, but not in
> solaris.
>
> TIA
>
> danim
>


Daniel Montero Posted on 2000-02-11 18:44:50.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 11 Feb 2000 12:44:50 -0600
From: Daniel Montero <danim@gruposoin.com.mx>
Organization: Grupo SOIN, S.A. de C.V.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: PowerDynamo on Solaris & filenames
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: na-28-221.na.avantel.net.mx 148.245.28.221
Message-ID: <347_38A458A2.1C3FE46E@gruposoin.com.mx>
References: <347_38A45296.EE7ED4E0@gruposoin.com.mx> <347_ZngCH9Ld$GA.180@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28878
Article PK: 161254

Scott,
The real filenames (as shown in an ls command) are mixed case. But when I
try to access them through both a mixed case URL and a lower case URL, I get an
error. I had to do a "mv loginFrame.html loginframe.html" to gain http access
to the file.
BTW, this is not a database site. Is a dynamic file site.

Any ideas?

TIA,
danim

"Scott McReynolds [Sybase]" wrote:

> Daniel,
>
> What are the real file names. Are they mixed or not. I would think that
> PowerDynamo would look them up with the file name as they exists within the
> database on Solaris.
>
> Scott
>
> Daniel Montero <danim@gruposoin.com.mx> wrote in message
> news:38A45296.EE7ED4E0@gruposoin.com.mx...
> > Hi.
> > I installed PD3.5 in a solaris 2.7 box, and when trying to access
> > http://server/myapp/moduleOne/loginFrame.html
> > through a dynamo mapping (/myapp), it fails, saying that the file
> > doesn't exist.
> > If i access http://server/myapp/moduleone/loginframe.html (note the
> > lower case), and rename my directories and filenames to be all
> > lower-case, all works ok. But all my pages have references inside with
> > mixed-case URLs, so I would need to edit all my pages to haver all
> > lower-case references.
> > The same thing happened to me with PD3.0 some months ago, and we had to
> > change it to lower case.
> >
> > My question is:
> > Is it possible to have working PD sites with mixed case filenames, or
> > must I modify my site to be lower-case?
> >
> >
> > Note: in both 3.0 & 3.5 versions it worked well in nt, but not in
> > solaris.
> >
> > TIA
> >
> > danim
> >


Daniel Montero Posted on 2000-02-15 00:07:59.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 14 Feb 2000 18:07:59 -0600
From: Daniel Montero <danim@gruposoin.com.mx>
Organization: Grupo SOIN, S.A. de C.V.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Workaround
Content-Type: multipart/alternative; boundary="------------228966C63FC5A4A393F948D7"
Lines: 228
NNTP-Posting-Host: na-28-221.na.avantel.net.mx 148.245.28.221
Message-ID: <347_38A898DF.8129D1A7@gruposoin.com.mx>
References: <347_38A45296.EE7ED4E0@gruposoin.com.mx> <347_ZngCH9Ld$GA.180@forums.sybase.com> <347_38A458A2.1C3FE46E@gruposoin.com.mx>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28686
Article PK: 160814

Hi,
    I am not sure if it is the correct way to do this, but I have created a script that converts
the current directory and subdirectories to lowercase filenames.  It does a sed(1) on all the document
files to replace the upper/mixed case filenames to lowercase, and create a subdirectory with the "lowercased" site
Hope somebody find it useful.

#!/bin/sh

OUTPUT_DIR=lowercase_dir

# init temp files
if [ -f mv.sed ]; then
 rm mv.sed
fi
if [ -f mv.sed.tmp ]; then
 rm mv.sed.tmp
fi
if [ -d $OUTPUT_DIR ]; then
 rm -fr $OUTPUT_DIR
fi
filelist=$(find * -type f -name "*txt" -o -name "*html" -o  -name "*htm" -o -name "*stm" -o -name "*ssc")
dirlist=$(find * -type d)

# prepare sed commands

echo ===== SEARCHING UPPER/MIXED CASE FILENAMES =====

for filename in $dirlist $filelist
do
 lowercase=$(echo $filename | tr 'A-Z' 'a-z' | strings)
 basefilename=$(basename $filename)
 baselowercase=$(basename $lowercase)
 if [ "$basefilename" != "$baselowercase" ]; then
  echo $filename
  echo 1,\$s/$basefilename/$baselowercase/g >> mv.sed.tmp
 fi
done

echo ===== THE SED COMMANDS HAVE BEEN CREATED =====

# ordenarlos para abajo, para evitar que un string incluya otro

sort -r < mv.sed.tmp > mv.sed
rm mv.sed.tmp

# borrar y crear de nuevo el directorio destino
rm -fr $OUTPUT_DIR
mkdir $OUTPUT_DIR
for filename in $dirlist
do
 destfile=$OUTPUT_DIR/$(echo $filename | tr 'A-Z' 'a-z' | strings)
 echo Creando directorio $destfile
 mkdir $destfile
done

# pasar los archivos originales por un sed(1) y dejarlos en ./$OUTPUT_DIR/
for filename in $filelist
do
 destfile=$OUTPUT_DIR/$(echo $filename | tr 'A-Z' 'a-z' | strings)
 if [ -f $destfile ]; then
  rm -f $destfile
 fi
 echo Archivo $destfile
 sed -f mv.sed $filename > $destfile
done

echo ===== DONE =====
echo Press ENTER \(\\ \\br\)
read


danim
 
 

Daniel Montero wrote:

Scott,
    The real filenames (as shown in an ls command) are mixed case.  But when I
try to access them through both a mixed case URL and a lower case URL, I get an
error. I had to do a "mv loginFrame.html loginframe.html" to gain http access
to the file.
BTW, this is not a database site.  Is a dynamic file site.

Any ideas?

TIA,
danim

"Scott McReynolds [Sybase]" wrote:

> Daniel,
>
> What are the real file names.  Are they mixed or not.  I would think that
> PowerDynamo would look them up with the file name as they exists within the
> database on Solaris.
>
> Scott
>
> Daniel Montero <danim@gruposoin.com.mx> wrote in message
> news:38A45296.EE7ED4E0@gruposoin.com.mx...
> > Hi.
> >     I installed PD3.5 in a solaris 2.7 box, and when trying to access
> > http://server/myapp/moduleOne/loginFrame.html
> > through a dynamo mapping (/myapp), it fails, saying that the file
> > doesn't exist.
> > If i access http://server/myapp/moduleone/loginframe.html (note the
> > lower case), and rename my directories and filenames to be all
> > lower-case, all works ok.  But all my pages have references inside with
> > mixed-case URLs, so I would need to edit all my pages to haver all
> > lower-case references.
> > The same thing happened to me with PD3.0 some months ago, and we had to
> > change it to lower case.
> >
> > My question is:
> > Is it possible to have working PD sites with mixed case filenames, or
> > must I modify my site to be lower-case?
> >
> >
> > Note: in both 3.0 & 3.5 versions it worked well in nt, but not in
> > solaris.
> >
> > TIA
> >
> > danim
> >