472,782 Members | 1,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

Web.sitemap and Flash

JJ
Although this question involves Flash, I suspect the actual issue is an asp
one..

I am trying to open the web.sitemap file in an .swf file enbedded in an asp
page (I'm working in VS 2005).

I get an error in Flash when it trys to open this file using standard Flash
commands. However when I change the file name and command to 'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing what a
'.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf???? Would anyone advise changing the suffix of the web.sitemap
file?

JJ
Jul 8 '06 #1
5 1873
I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.
Usually you don't want user to see this file directly.
xml files by default are not protected so you can view it from client.

To change sitemap to xml or not is your decision. If it is OK if user just
enters your sitemap file in browser and views it then you can change it. If
it is not OK then you should decide if you want flash to use this file.
Good luck
Shimon.

"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Although this question involves Flash, I suspect the actual issue is an
asp one..

I am trying to open the web.sitemap file in an .swf file enbedded in an
asp page (I'm working in VS 2005).

I get an error in Flash when it trys to open this file using standard
Flash commands. However when I change the file name and command to
'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing what
a '.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf???? Would anyone advise changing the suffix of the
web.sitemap file?

JJ

Jul 9 '06 #2
JJ
When is it not ok for a user to see the sitemap file?

I managed to use a handler to allow the sitemap file to be viewed. However,
I am confused as to why Microsoft see this as a security issue. Most sites
seem to use a viewable XML sitemap??
JJ
"Shimon Sim" <sh**********@community.nospamwrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
>I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.
Usually you don't want user to see this file directly.
xml files by default are not protected so you can view it from client.

To change sitemap to xml or not is your decision. If it is OK if user just
enters your sitemap file in browser and views it then you can change it.
If it is not OK then you should decide if you want flash to use this file.
Good luck
Shimon.

"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Although this question involves Flash, I suspect the actual issue is an
asp one..

I am trying to open the web.sitemap file in an .swf file enbedded in an
asp page (I'm working in VS 2005).

I get an error in Flash when it trys to open this file using standard
Flash commands. However when I change the file name and command to
'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing what
a '.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf???? Would anyone advise changing the suffix of the
web.sitemap file?

JJ


Jul 9 '06 #3
re:
>I think that the reason is that ASP.NET protects some files from direct access and sitemap is one
of them.
That is correct.

re:
Would anyone advise changing the suffix of the web.sitemap file?
If the .sitemap is being used by an ASP.NET application,
renaming the sitemap file will make it unavailable to the app.

Would *copying* the web.sitemap file to "web.xml" work ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Shimon Sim" <sh**********@community.nospamwrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
>I think that the reason is that ASP.NET protects some files from direct access and sitemap is one
of them.
Usually you don't want user to see this file directly.
xml files by default are not protected so you can view it from client.

To change sitemap to xml or not is your decision. If it is OK if user just enters your sitemap
file in browser and views it then you can change it. If it is not OK then you should decide if you
want flash to use this file.
Good luck
Shimon.

"JJ" <ab*@xyz.comwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
>Although this question involves Flash, I suspect the actual issue is an asp one..

I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in
VS 2005).

I get an error in Flash when it trys to open this file using standard Flash commands. However
when I change the file name and command to 'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing what a '.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf???? Would anyone advise changing the suffix of the web.sitemap file?

JJ


Jul 9 '06 #4
JJ
I ended up using a handler to allow read access to the web.sitemap file.

When I then tell flash to use the handler in stead of the web.sitemap file
directly, it works.

I cannot think of how this could cause a security problem?? Neither can I
see how allowing read access to the web.sitemap file directly could cause a
security problem...???

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
re:
>>I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.

That is correct.

re:
>Would anyone advise changing the suffix of the web.sitemap file?

If the .sitemap is being used by an ASP.NET application,
renaming the sitemap file will make it unavailable to the app.

Would *copying* the web.sitemap file to "web.xml" work ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Shimon Sim" <sh**********@community.nospamwrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
>>I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.
Usually you don't want user to see this file directly.
xml files by default are not protected so you can view it from client.

To change sitemap to xml or not is your decision. If it is OK if user
just enters your sitemap file in browser and views it then you can change
it. If it is not OK then you should decide if you want flash to use this
file.
Good luck
Shimon.

"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Although this question involves Flash, I suspect the actual issue is an
asp one..

I am trying to open the web.sitemap file in an .swf file enbedded in an
asp page (I'm working in VS 2005).

I get an error in Flash when it trys to open this file using standard
Flash commands. However when I change the file name and command to
'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing
what a '.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf???? Would anyone advise changing the suffix of the
web.sitemap file?

JJ



Jul 9 '06 #5
JJ
I have realised now what the security problem is....
If I use roles to all/deny access to certain files/directories these will be
openly displayed in the web.sitemap file.

As I probably am going to do this, I see this as the only approach to get
Flash to diplay menu's based on the web.sitemap contents.:

i) Make the web.sitemap handler secure so that only the swf file can access
it (how..???)
ii) Program flash to read the handler output, and read a parameter that
indicates the current user role;
iii) Get flash to only display menu items that the current role is allowed
to see.

Item (i) is the real tricky one here....any ideas....??

"JJ" <ab*@xyz.comwrote in message
news:ua**************@TK2MSFTNGP03.phx.gbl...
>I ended up using a handler to allow read access to the web.sitemap file.

When I then tell flash to use the handler in stead of the web.sitemap file
directly, it works.

I cannot think of how this could cause a security problem?? Neither can I
see how allowing read access to the web.sitemap file directly could cause
a security problem...???

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>re:
>>>I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.

That is correct.

re:
>>Would anyone advise changing the suffix of the web.sitemap file?

If the .sitemap is being used by an ASP.NET application,
renaming the sitemap file will make it unavailable to the app.

Would *copying* the web.sitemap file to "web.xml" work ?


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Shimon Sim" <sh**********@community.nospamwrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
>>>I think that the reason is that ASP.NET protects some files from direct
access and sitemap is one of them.
Usually you don't want user to see this file directly.
xml files by default are not protected so you can view it from client.

To change sitemap to xml or not is your decision. If it is OK if user
just enters your sitemap file in browser and views it then you can
change it. If it is not OK then you should decide if you want flash to
use this file.
Good luck
Shimon.

"JJ" <ab*@xyz.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
Although this question involves Flash, I suspect the actual issue is an
asp one..

I am trying to open the web.sitemap file in an .swf file enbedded in an
asp page (I'm working in VS 2005).

I get an error in Flash when it trys to open this file using standard
Flash commands. However when I change the file name and command to
'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)
I suspect therefore that this is a result of the browser not knowing
what a '.sitemap' file is???

So, how do I open an xml file called 'Web.sitemap' in a web page with
an
embedded .swf???? Would anyone advise changing the suffix of the
web.sitemap file?

JJ



Jul 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mcv | last post by:
I'm currently learning to use Cocoon, and although I really like it, there are a couple of things that don't seem to be explained very well. I've seen lots of articles explaining really complicated...
1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
1
by: mike | last post by:
I have 2 sites in my company. My .NET site uses a master page and a Menu control connected to a sitemap. In my sitemap file I would like to be able to do something like this: <sitemap>...
4
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
4
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file. I am posting the formats of both files. 1. How can I do the conversion? 2. And can I use an...
5
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
0
by: Chris | last post by:
Hi, i have a problem with the visibility of my sitemap. There is one role defined: "manager" There are two users: 'user1' (member of role manager) and 'user2' (not member). The login.aspx...
6
by: Olagato | last post by:
I need to transform this: <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <url> <loc>http://localhost/index.php/index./Paths-for-the-extreme-player</ loc> </url> <url>...
0
by: Andy B | last post by:
I am using the default XML provider for the sitemap. I need the sitemap to display in different lists seperated based on node. Here is an example sitemap that I have. in web.sitemap (the list of...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.