Reply to topic
Webservices - Note to self...
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
When writing an app that uses webservices - make sure that you designate the webservice URL in your project setup as 'dynamic' so that if the service moves you don't have to recompile the app...


when will I learn..... Crying or Very sad
andystops


Joined: 18 Mar 2005
Posts: 34
Location: Deleware Newark
Reply with quote
This goes for virtually any type of programming. If you can use relative paths then use them.

Remember when using a Windows 2003 Server by default "Parent Paths" is disabled so some ASP Coding can cause certain errors. But in general there are ways around this such as using a constant reference to your root and coding from there. Least there is only one change if any that you need to make.

Bobum - I cannot count the number of hours that I have spent "correcting" my paths in code... Buy hey, keeps us busy Wink
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
This is OH SO TRUE! Speaking of the parent directories being off by default in 2K3 - I bet I spent he better part of a day fighting with that only to figure it out and then kick myself for the rest of the day...any idea why such a standard web practice is off by default in 2K3? I don't understand the logic in that one.
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
Scott...

it opens up the possibility of a user being able to navigate themselves outside of their web directory. This falls on user permissions, but why only have one failsafe if you can have more? Personally I don't use the "../" parent directory stuff... i find it easier just to get out of that in the first place.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Do you just do everything root relative then instead of walking back up the directory tree?
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
Mostly... i'll either use the "/path/to/here" or "path/to/here" to get where im going... if I can't do it that way then I don't do it Wink
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
gotcha - that's cool
andystops


Joined: 18 Mar 2005
Posts: 34
Location: Deleware Newark
Reply with quote
Josh is spot on.

We do have security permissions implimented but there is always room for extra security. I agree with the prospect of getting out of using the parent path referencing as it makes for better coding and most importantly secure coding.

Smile
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Does anyone know of a whitepaper or documentation for the security issue with THIS specific feature? We are migrating to 2k3 and currently we are allowing parent directories - but I'm all for added security and in order to get this considered for lockdown I need some documentation on it. Anyone help me on that?
Webservices - Note to self...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic