Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,I tried other FileUtils.cd ,FileUtils.chdir - directory

Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,
Dir::chdir(dir_name) in my ruby script code but i am getting file access issue in brakeman scan ,I tried other ways like FileUtils.cd ,FileUtils.chdir , still its showing file access issue in brakemanscan
I Tried system("cd dir_name") ,even this is also not working
Please help me to fix brakeman file access issue while changing directory

Related

Error: XML content doesn't seem XML

I have an .XML file in the same working directory with all the other files and I have correctly set the working directly where I want it to be.
When I try and run the R code, it returns the following error:
Error: XML content doesn't seem XML
I did go through other topics on here for similar issue, but they were all related to a URL. But I have an .XML file in the working directory. I know the file works perfectly fine, because it worked smoothly for my colleague. But it is returning this error for me.
I run this code on a terminal server and the file is located in a local shared drive.
Can someone provide any insight as to what might be causing it?

Insert css files to localhost

For some reason, I could not get my files to load in my localhost. Trying different path solution but my error is still same. You can see from pictures my file-tree, where is index.file and css.folder with files. Any sugestions what to type in to get my css files load. Thanks

FTP server mysterious behavior - can anyone explain why this happens?

We have an SFTP i.e secure FTP server which is perfectly like and able to login.
Using filezilla i tried to create the following file directly.
Employee_Details_Export_2014-11-03 03:12:11.csv
the FileZilla doesn't create a file and prompt an error message saying -
Filename may not contain any of the following characters:/:*?" <>|
Whereas, the following works fine..
Create a test file
Renamed it as Employee_Details_Export_2014-11-03 03:12:11.csv
Not sure what is happening and what is the issue here?
Please let me know in detail.
Thanks in advance.
As has been suggested, don't use colons. From messing around, however, I'm guessing that you've found an unavoidable bug in Filezilla. The restricted character list are the characters restricted on Windows.
There is not mkfile command, so when you create a new file named "ABC.txt" you'll get something along the lines of:
Command: put "[PATH]\empty_file_yq744zm" "ABC.txt"
Status: local:[PATH]\empty_file_yq744zm => remote:[PATH]/ABC.txt
So what happens is Filezilla creates a file on your local machine, and then uploads it. However, Windows won't let it create a file with a colon, so it fails. However, there is a rename command, and that has nothing to do with the Windows environment. You can also create a directory with a colon without any issues since there is a mkdir command.
Remove the colons in the filename and it should work. You're using invalid characters in your file naming convention.
Employee_Details_Export_2014-11-03_03_12_11.csv
I think this is not related to stackoverflow, but...
this is a conditional on filezilla, not on your server, they added that to the create file
If you would like to fix this you could edit and recompile filezilla,
this is on filezilla code on the file file_utils.cpp

Symphony CMS File Upload Fatal Error

I am simply trying to create a section that allows me to upload a file, specifically an image. I am able to create the section without any problems. The issue is when I make a new entry and choose the file. When I click save, to save the entry, I receive a very strange error:
Fatal error: Call to undefined function finfo_open() in
/home/jonlev19/jonathanlevis.dreamhosters.com/symphony/lib/toolkit/class.general.php
on line 934
I've searched around but have been unsuccessful in finding a solution to the problem. Does anyone have any ideas? Thank you in advance.
You need to enable the Fileinfo PHP extension.
Dreamhost instructions here. ;-)

Drupal's JS and CSS optimization error

I started getting errors after I turned on Drupal's performance improvements which pack all the CSS and JS files into single files. The error looks like this:
The selected file /tmp/fileO4fjBF
could not be uploaded, because the
destination
js/js_8a69e612be02242c2866a4a19223bd12.js
is not properly configured.
I'm not sure how I should configure my server for this to work correctly. There is nothing in the documentation about this.
Check you ' Site Configuration > Files' settings or the report. If it is a file permission issue (or maybe a missing folder) it should be apparent from one of those two places.
Often the report or files-settings also supply information on how to remedy the problem.

Resources