[Orca-users] Orca filenames - backslashes being changed to forward slashes !!
Paul Porcelli
Paul.Porcelli at scottishwater.co.uk
Mon Nov 21 08:38:46 PST 2005
Hi Setfan,
Thanks a lot for that the fix worked perfectly.
Cheers
Paul
-----Original Message-----
From: Stefan.Schuster at dzi.lu [mailto:Stefan.Schuster at dzi.lu]
Sent: 21 November 2005 11:53
To: Paul Porcelli
Subject: AW: [Orca-users] Orca filenames - backslashes being changed to forward slashes !!
Hi Paul,
see the text above, this should work.
Greetings from Luxembourg,
Stefan
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On 02/09/05, Blair Zajac <blair at orcaware.com> wrote:
> Alex Kiernan wrote:
> > On 22/08/05, Alex Kiernan <alex.kiernan at gmail.com> wrote:
> >
> >>On 21/08/05, Blair Zajac <blair at orcaware.com> wrote:
> >>
> >>>>If you're using IE, it doesn't like those `\'s (it turns them
> >>>>around into `/'s), this is the patch I'm using:
> >>>>
> >>>>Index: lib/Orca/Utils.pm
> >>>>==================================================================
> >>>>=
> >>>>RCS file: /cvsroot/upstream/orca/lib/Orca/Utils.pm,v
> >>>>retrieving revision 1.1.1.6
> >>>>retrieving revision 1.5
> >>>>diff -u -r1.1.1.6 -r1.5
> >>>>--- lib/Orca/Utils.pm 11 Jul 2005 05:21:08 -0000 1.1.1.6
> >>>>+++ lib/Orca/Utils.pm 22 Jul 2005 07:55:03 -0000 1.5
> >>>>@@ -110,6 +110,7 @@
> >>>> my ($name, $postfix_length) = @_;
> >>>>
> >>>> $name =~ s/:/_/g;
> >>>>+ $name =~ s/\\/\//g;
> >>>> $name =~ s:/:_per_:g;
> >>>> $name =~ s:\s+:_:g;
> >>>> $name =~ s:%:_pct_:g;
> >>>
> >>>This will work, but in the end, a \ becomes a / which is replaced
> >>>with a _per_, which changes the meaning of the URL (for those who
> >>>read the URLs
> >>>:) ). We should change the \ into something else.
> >>>
> >>>Does IE change the %xx equivalent of the \?
> >>>
> >>
> >>I don't think so, but I can't check just at the moment.
> >>
> >
> >
> > Just checked... if you change the substitution to %5C, you get
> > filenames on disk which are ...%5C..., but IE then evaluates the %5C
> > and requests the file as ...\... So it still doesn't work, but it
> > does fail differently!
> >
>
> Alex,
>
> Can you try changing the line
>
> + $name =~ s/\\/\//g;
>
> to
>
> + $name =~ s/\\/|/g;
>
> and let me know if that works.
Looks like it works fine.
--
Alex Kiernan
_______________________________________________
Orca-users mailing list
Orca-users at orcaware.com http://www.orcaware.com/mailman/listinfo/orca-users
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----Ursprüngliche Nachricht-----
Von: orca-users-bounces+stefan.schuster=dzi.lu at orcaware.com [mailto:orca-users-bounces+stefan.schuster=dzi.lu at orcaware.com] Im Auftrag von Paul Porcelli
Gesendet: Montag, 21. November 2005 11:39
An: Normandin, Mike; orca-users at orcaware.com
Betreff: RE: [Orca-users] Orca filenames - backslashes being changed to forward slashes !!
Looks like I've alerady got the same version of Storable that works for you. N.B. I am producing all the plots on a Solaris host. If I run a local version of netscape on the Solaris host, I don't see the problem. It's only visible via Internet Explorer from my PC.
I run Orca on Solaris using
Orca 0.28.0 (dev 473)
Perl 5.8.5
Storable 2.13
Any other ideas/suggestions.
Thanks
Paul
-----Original Message-----
From: Normandin, Mike [mailto:mike.normandin at csfb.com]
Sent: 18 November 2005 20:51
To: Paul Porcelli; orca-users at orcaware.com
Subject: RE: [Orca-users] Orca filenames - backslashes being changed to fo rward slashes !!
Which orca build version are you using ?
Also what version of perl and Storable.pm ?
I saw a similiar issue with the regular expression expansion with r492
Activestate perl 586 distribution and Storable.pm 2.15. I changed to
the Storable.pm which came with the Activestate perl586 distributions -
2.13 and the problem went away.
Mike
-----Original Message-----
From: orca-users-bounces+mike.normandin=csfb.com at orcaware.com
[mailto:orca-users-bounces+mike.normandin=csfb.com at orcaware.com]On
Behalf Of Paul Porcelli
Sent: Friday, November 18, 2005 11:37 AM
To: orca-users at orcaware.com
Subject: [Orca-users] Orca filenames - backslashes being changed to forward slashes !!
Hi folks,
Having problems displaying the disk service time and disk run percent. After I have run orca on my orcallator data I then go to my index.html and click on the Daily Disk Service Time link.
Disk Service Time
Daily <o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-daily.html>
Weekly <o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-weekly.html>
Monthly <o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-monthly.html>
Quarterly <o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-quarterly.html>
Yearly <o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-yearly.html> All
<o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d
+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-all.html>
I then get an error from the browser(IE on my PC) saying "Page Cannot be Found" When I look at the Apache error logs(Solaris host) I am seeing a discrepancy in the file name. i.e. File not found is reported as:
o_gauge_volatile_disk_svct_((_Q_c/d+t/d+d/d+)|(_Q_c/d+d/d+)|(_Q_[ms]d/d+
)|(_Q_c/d+t([A-Z0-9]{32})d/d+))_per_1000-daily.html
The file in the index.html(see above) is actually called: o_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d+
)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000-daily.html
The difference is that the backslashes in the index.html have been changed to forward slashes in the error log. Any ideas what is causing this and how to fix ?
Thanks.
Paul
Privileged/Confidential information may be contained in this Email and any files transmitted
with it. If you are not the intended recipient you should not retain, copy or use this Email
for any purpose or disclose all or part of its contents to any person. If you have received
this Email in error please notify the postmaster and sender immediately and delete this
Email from your system.
Opinions, conclusions and other information in this message that do not relate to the
official business of Scottish Water ("SW") and / or Scottish Water Solutions Ltd ("SWS")
shall be understood as neither given nor endorsed by them. The contents of Emails sent and
received by SW and SWS are monitored.
WARNING: Although SW and SWS have taken reasonable precautions to ensure no viruses or other
malicious software are present, SW and SWS cannot accept responsibility for any loss or
damage arising from the use of this Email or attachments however caused. The recipient
should therefore check this Email and any attachments for the presence of viruses or other
malicious software.
Scottish Water
www.scottishwater.co.uk
www.scottishwatersolutions.co.uk
postmaster at scottishwater.co.uk
_______________________________________________
Orca-users mailing list
Orca-users at orcaware.com http://www.orcaware.com/mailman/listinfo/orca-users
========================================================================
======
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
========================================================================
======
_______________________________________________
Orca-users mailing list
Orca-users at orcaware.com http://www.orcaware.com/mailman/listinfo/orca-users
**********************************************************************
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure.
If you are not the intended recipient, please call or e-mail the sender
and delete the message and any attachment from your system.
If you are not the intended recipient, you must not copy this message
or attachment or disclose the contents to any other person.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
later or incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or
omissions in the contents of this message which arises as a result of
e-mail transmission.
If verification is required please request a hard-copy version.This
message is provided for informational purposes only and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
**********************************************************************
More information about the Orca-users
mailing list