On Sun, Apr 8, 2012 at 9:56 PM, Kasun Perera <[email protected]> wrote:
> @Denis > According to this > http://wso2.org/library/articles/2011/10/alfresco-wso2-stratos-application-server151 > , > I can disable the security manager and do the fileupload in my Local app > server. But when,when it runs on Live server the problem is still there. > Disabling Security Manger on Live Server is not possible. Is there any > setting that can be enables for temp file writing? > As AmilaJ explained there's no option of temp file writing at the moment for Stratos-Live. Writing a simple data service is something I would prefer. > > @Amila > Is there at least one directory that allows temp file writing on Stratos > live? So I can configure web app to use that directory for temp files > writing? > > > On Sun, Apr 8, 2012 at 6:26 PM, Amila Jayasekara <[email protected]> wrote: > >> Hi Kasun, >> >> It is not possible to do changes to file system through tenant code. >> So the only way to get rid of this is to, find a work around for temp >> file writing. One possibility is to write temp file data to a database >> through "Data Services" and later retrieve them. But as per now, >> tenant code is not allowed to do any file operations. >> >> Thanks >> AmilaJ >> >> 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. >> > >> > 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 >> > >> >> >> >> -- >> Mobile : +94773330538 >> > > > > > -- > 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
