On Sat, Apr 7, 2012 at 1:21 PM, Kasun Perera <[email protected]> wrote:

>
> Hi Supun
>
> I am  trying to upload a file to the database in the form of a blob during
> which the file upload program writes a temporary file to the disk.
>
> It seems though the Stratos app server is preventing such temp file to be
> written to the disk due to security reasons. I have attached the stack
> trace of the error.  Would you be able to help us in solving this problem?
>
> We however cannot avoid writing temp files, so that’s something we have to
> live with. There are other places in the our application where we require
> writing temporarily to disk.
>
> So the only way this could be solved is by adjusting i.e. modifying the
> security manager setting in Stratos ?.
> Is this possible (I guess this should be), if YES how?  It would nice if
> you could send us some links on how this problem could be circumvented as
> there aren’t that many posts on this particular problem.
>
Hope this link is useful.
http://wso2.org/library/articles/2011/10/alfresco-wso2-stratos-application-server151
and generally
http://docs.oracle.com/javase/tutorial/essential/environment/security.html

>
> this is the file-upload class http://paste.org/47685
> --
> Regards
>
> Kasun Perera
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
Software Engineer
Integration Technologies Team, WSO2 Inc.; http://wso2.com,
*email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/>*
*phone: +94117639629
*
*site: 
**https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
*blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>
*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: 
**http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to