Fixing a zip path vulnerability in android when reading files from asset folder but not copying it to any location - android-security

I have zipped few script files in my asset folder while building application. In run time I read those file content and convert them as String for internal usage but not copying to any location. when I upload the application in play store got Fixing a Zip Path Traversal Vulnerability security warning.
I think this issue is not relevant to my application, how can I communicate to play store ?
If I am wrong please help me in fixing this issue.
Thanks
Karthik

Related

Change the directory where the SQLite *.db-journal file is created

Good day,
I have a small application created in Lazarus / Free Pascal. If I run this application located in a folder on my computer, it will start and SQLite will create a temporary file .db-journal in the current directory. Since the application is portable, it will also run from a flash drive. And now comes the problem. Some computers (eg at work) do not allow writing to external media. Therefore, when I start the application, it does not start and an error is displayed that it is not possible to open the database (tested on a locked SD card). And so that the application does not always have to be copied to the computer, I would like to know if it is possible to redirect the creation of a temporary file .db-journal to another directory, for example the "C:\WINDOWS\USERS<user>" user directory. Is it usually possible to write there always?
Of course, I searched the net, but so far I have not found anything that would help me, so I am addressing you here. Thank you for your advice or guidance.
Jirka

Alfresco accepting only .txt files while uploading and giving 500 internal server error for other files

Today I found very wearied behavior of alfresco, When I upload any .txt file via share UI, its getting uploaded successfully, but if I upload any other type of file then it's giving 500 internal server error as shown in attached screen shot, also you can see in the image that .txt file got uploaded successfully.
The strange thing is there is no any error in the server logs.
Doe's anyone faced similar issue?
Also it is working for .txt, so is it a issue of Transformation?
Please suggest the possibilities of error.
Thanks in Advance.
Error while uploading through CMIS workbench:
It does sound like a transformation problem to me, but it is hard to be sure.
Because TXT files are working that means there isn't a problem with your repo being read-only or something like that. If these were office files, especially if they were large, you might be hitting a configurable transformer limit.
I would try uploading the problem files using something other than Share, such as:
Alfresco FTP
Alfresco WebDAV
Alfresco CIFS/SMB
Apache Chemistry Workbench
Using any (or all) of these will give you a clue as to whether the problem is in Share or lower in the stack.

Azure Web App file missing on existing file

We have two environments on Azure (Same site, same config etc...) All deployment was scripted over ARM Json files and deployment by VSTS.
When I hit the first environment, everything is ok.
But on the other environment, I caught exception. After investigation, it seems Azure does not see my unity config files (XML files in UTF-8). When I open all my files via (App Service Editor (Preview)) Note: I only set a space on the file for update only. After that my web app run well.
At each deployment, I need to go via Azure Portal to edit my Unity.config files to fix my WebApp.
Anyone have an idea about it? And why my first site with the same file, config, deployment working well, but not the second one?
it seems Azure does not see my unity config files (XML files in UTF-8).
Please double check whether the encoding of your config file is UTF-8 before deploying it. You could take following steps to check it.
Open your config file using Notepad.
After clicked File->Save As..., you will see the current encoding of your config file. If the current encoding is not UTF-8, please change the encoding to UTF-8 and save the file.

i created a project that can upload and download file, files that has been uploaded will be store in my hard disk.

My question is ,if i deploy my project in the web , will all the files that will be uploaded still will be store in my hard disk? i'm new in mvc ,i don't know much it yet.sorry very new in mvc
Of course will not be on your hard disk cuz you set relative patch to upload/download file ("if i deploy my project in the web" - I guess it means deploy to external server, so i if you set static then propably program cause a error). Everything will be stored on device where program is running

How can I create and download a zip file using Actionscript

I'm developing an application using Adobe Flex 4.5 SDK, in which the user would be able to export multiple files bundled in one zip file. I was thinking that I must need to take the following steps in order for performing this task:
Create a temporary folder on the server for the user who requested the download. Since it is an anonymous type of user, I have to read Sate/Session information to identify the user.
Copy all the requested files into the temporary folder on the server
Zip the copied file
Download the zip file from the server to the client machine
I was wondering if anybody knows any best-practice/sample-code for the task
Thanks
The ByteArray class has some methods for compressing, but this is more for data transport, not for packaging up multiple files.
I don't like saying things are impossible, but I will say that this should be done on the server-side. Depending on your server architecture I would suggest sending the binary files to a server script which could package the files for you.
A quick google search for your preferred server-side language and zipping files should give you some sample scripts to get you started.

Resources