473,411 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 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 1926
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.