<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: File.applicationDirectory issue in Windows XP</title>
	<atom:link href="http://hangunsworld.com/blog/395/feed" rel="self" type="application/rss+xml" />
	<link>http://hangunsworld.com/blog/395</link>
	<description>about ActionScript, Flash, Web and more...</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:06:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Hangun's World</title>
		<link>http://hangunsworld.com/blog/395/comment-page-1#comment-28970</link>
		<dc:creator>Hangun's World</dc:creator>
		<pubDate>Sun, 09 Nov 2008 13:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=395#comment-28970</guid>
		<description>좋은 정보 감사합니다. 보안상 이유로 프로그램 폴더에 대한 쓰기 권한을 제한하는 것은 당연한 것이라고 생각은 드네요. 액트브X에서도 해당 폴더에 접근이 제한적으로 변경되었으니까요. 이런건 좀 누구나 알 수 있도록, 어도비에서 제대로 알려야 하는데, 그게 좀 아쉽네요.</description>
		<content:encoded><![CDATA[<p>좋은 정보 감사합니다. 보안상 이유로 프로그램 폴더에 대한 쓰기 권한을 제한하는 것은 당연한 것이라고 생각은 드네요. 액트브X에서도 해당 폴더에 접근이 제한적으로 변경되었으니까요. 이런건 좀 누구나 알 수 있도록, 어도비에서 제대로 알려야 하는데, 그게 좀 아쉽네요.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 에이레네</title>
		<link>http://hangunsworld.com/blog/395/comment-page-1#comment-28931</link>
		<dc:creator>에이레네</dc:creator>
		<pubDate>Sat, 08 Nov 2008 14:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=395#comment-28931</guid>
		<description>http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html 에 관련 내용이 있네요.. 요약하면 Program Files 폴더에는 되도록이면 파일을 생성하거나 데이터를 쓰지 않는 게 좋다.. 만일 그럴 경우, 해당 파일이 애플리케이션 권한을 갖게 돼서 보안상 위험할 수 있다. 그래서 비스타에서도 금한다... 그리고 이럴 경우 애플리케이션 시그너쳐가 망가져서 암호화된 보안 영역을 사용할 수 없다... 앞으로 어도비에서도 이 부분은 아예 막아놓을 수도 있다.. 등의 내용이네요 ㅇㅇ</description>
		<content:encoded><![CDATA[<p><a href="http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html" rel="nofollow">http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html</a> 에 관련 내용이 있네요.. 요약하면 Program Files 폴더에는 되도록이면 파일을 생성하거나 데이터를 쓰지 않는 게 좋다.. 만일 그럴 경우, 해당 파일이 애플리케이션 권한을 갖게 돼서 보안상 위험할 수 있다. 그래서 비스타에서도 금한다&#8230; 그리고 이럴 경우 애플리케이션 시그너쳐가 망가져서 암호화된 보안 영역을 사용할 수 없다&#8230; 앞으로 어도비에서도 이 부분은 아예 막아놓을 수도 있다.. 등의 내용이네요 ㅇㅇ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jin_u</title>
		<link>http://hangunsworld.com/blog/395/comment-page-1#comment-28907</link>
		<dc:creator>jin_u</dc:creator>
		<pubDate>Sat, 08 Nov 2008 01:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=395#comment-28907</guid>
		<description>위에 쓴 코드가 깨져보이길래 머지? 했는데 크롬 인코딩 문젠거군.</description>
		<content:encoded><![CDATA[<p>위에 쓴 코드가 깨져보이길래 머지? 했는데 크롬 인코딩 문젠거군.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hangun's World</title>
		<link>http://hangunsworld.com/blog/395/comment-page-1#comment-28427</link>
		<dc:creator>Hangun's World</dc:creator>
		<pubDate>Fri, 31 Oct 2008 00:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=395#comment-28427</guid>
		<description>&lt;pre lang=&quot;actionscript3&quot;&gt;var file:File = File.applicationDirectory.resolvePath(&quot;test.txt&quot;);&lt;/pre&gt;
이런식으로 접근하면, 아래와 같이 폴더 권한 체크하는 부분에서 에러가 발생하는 듯.
SecurityManager$/checkPrivilegeForCaller()

&lt;pre lang=&quot;actionscript3&quot;&gt;var file:File = File.documentsDirectory.resolvePath(&quot;test.txt&quot;);&lt;/pre&gt;
이런 식으로 resolvePath()를 사용해서 다른 시스템 폴더들에는 접근이 가능한데, 프로그램 파일 폴더는 윈도우에서 권한을 주지 않아서 접근하지 못하는 것 같은데... 그렇다면
&lt;pre lang=&quot;actionscript3&quot;&gt;var file1: File = new File( File.applicationDirectory.nativePath + File.separator + &quot;test.txt&quot; );&lt;/pre&gt;
이것도 안되어야 하는거 아닌가? 당췌 MS의 잘못인지, 어도비의 잘못인지?</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> file<span style="color: #000066; font-weight: bold;">:</span>File = File<span style="color: #000066; font-weight: bold;">.</span>applicationDirectory<span style="color: #000066; font-weight: bold;">.</span>resolvePath<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;test.txt&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>이런식으로 접근하면, 아래와 같이 폴더 권한 체크하는 부분에서 에러가 발생하는 듯.<br />
SecurityManager$/checkPrivilegeForCaller()</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> file<span style="color: #000066; font-weight: bold;">:</span>File = File<span style="color: #000066; font-weight: bold;">.</span>documentsDirectory<span style="color: #000066; font-weight: bold;">.</span>resolvePath<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;test.txt&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>이런 식으로 resolvePath()를 사용해서 다른 시스템 폴더들에는 접근이 가능한데, 프로그램 파일 폴더는 윈도우에서 권한을 주지 않아서 접근하지 못하는 것 같은데&#8230; 그렇다면</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> file1<span style="color: #000066; font-weight: bold;">:</span> File = <span style="color: #0033ff; font-weight: bold;">new</span> File<span style="color: #000000;">&#40;</span> File<span style="color: #000066; font-weight: bold;">.</span>applicationDirectory<span style="color: #000066; font-weight: bold;">.</span>nativePath <span style="color: #000066; font-weight: bold;">+</span> File<span style="color: #000066; font-weight: bold;">.</span>separator <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;test.txt&quot;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>이것도 안되어야 하는거 아닌가? 당췌 MS의 잘못인지, 어도비의 잘못인지?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hangun's World</title>
		<link>http://hangunsworld.com/blog/395/comment-page-1#comment-28386</link>
		<dc:creator>Hangun's World</dc:creator>
		<pubDate>Thu, 30 Oct 2008 14:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://hangunsworld.com/blog/?p=395#comment-28386</guid>
		<description>//woyaggo
어 그런가... trace 찍어보면 분명히 프로그램 파일의 어플리케이션 설치 폴더내의 파일 경로가 잡히긴 하는데, 실제로 파일이 생성되거나 수정되진 않던데. 나중에 시간날 때 다시 테스트 해 봐야겠네.
//지돌스타
다시 테스트해서 재현이 되는지 확실히 해봐야 겠네요.</description>
		<content:encoded><![CDATA[<p>//woyaggo<br />
어 그런가&#8230; trace 찍어보면 분명히 프로그램 파일의 어플리케이션 설치 폴더내의 파일 경로가 잡히긴 하는데, 실제로 파일이 생성되거나 수정되진 않던데. 나중에 시간날 때 다시 테스트 해 봐야겠네.<br />
//지돌스타<br />
다시 테스트해서 재현이 되는지 확실히 해봐야 겠네요.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

