Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we trust security  RSS feed

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is inside of my servlet.



This prints true (File had been deleted).

What happens if i open any site and their servlet starts a Thread that will delete my folders (Known structure like Documents and Settings , Program Files)

Will the browser stops this from doing??

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My last post in JR
Thanks .
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My last post in JR

Does this mean you're no longer interested in answers to the question you posted?

As to the question, you have a fundamental misconception on how web apps work. They have no access to the client computer. The only reason that code deleted a file of yours is because you're running the server on your desktop machine (in which case server file system and client file system are identical).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had pointed you to an article that explained all this in another post, but you chose not to read it. Should you become interested let me know and I will post it again.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I had pointed you to an article that explained all this in another post, but you chose not to read it. Should you become interested let me know and I will post it again.



Hey Bear Thanks for the concern , After reading the explanation from Ulf , i had refered to the similar thread posted by me earlier.I got the concept thanks once again.

sorry for late reply , I was busy reading Spring Framework today.



Also thanks to Ulf .

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!