FileDialog to restrict directory
Hi,
I want to allow my users to select a filename to write to, but force
them to use a specific directory.
I am using FileDialog and setting initial directory to the desired
directory, but obviously they can change directory.
Is there something other than FileDialog I can use, or a way to
restrict the directory change ?
Or is the only way to write my own dialog ?
Thanks
Sue
Hi, thanks for reply.
I tried the Filename filter, but couldn't get it to work.
I added a trace to the accept method and that didn't come out, so I'm
a bit confused.
Does my code look ok ?
public class MyFilenameFilter implements FilenameFilter {
public MyFilenameFilter() {
public boolean accept(File dir, String name) {
System.out.println("Accept " + dir.getAbsolutePath() + " " + name);
if (dir.getAbsolutePath().compareToIgnoreCase("c:/myDir") != 0)
return false;
else
return true;
Then to use it I have :-
FileDialog fd = new FileDialog((Frame)parent, "Test", FileDialog.SAVE);
fd.setFilenameFilter(new MyFilenameFilter());
fd.show();
Thanks
Sue
Similar Messages
-
Restrict directory to certain IPs - Server Admin problem
hey guys,
I am sure this is a simple one.
I have a directory setup that I manually restricted the allowed IPs for in /etc/httpd/sites
This was the code used:
<Directory /web/domain.com/directory123/>
Order allow,deny
Allow from 10.0.1.
Allow from 80.X77.XXX.190
Allow from 83.X05.XXX.219
Allow from 80.X77.XXX.153
</Directory>
(note X used to hide user IPs)
All has been working fine. Then yesterday I was editing another site in Server Admin (10.4.7) and soon after saving changes Server Admin edited my <directory> tags in the other site making it:
<Directory /web/domain.com/directory123/>
Order allow,deny
Allow from 10.0.1.
</Directory>
How can I keep multiple IPs in there?
Thanks in advance,
Tommy.Thanks for your feedback Camelot a bit frustrating... and definitely good to bear in mind. All those things I changed could be lost in one go, I am gonna make a copy before I make any changes!
I feel like I won on this one though,
It seems to work by putting the IPs on the same line with spaces, just like when you are defining users for a directory.
<Directory /web/domain.com/directory123/>
Order allow,deny
Allow from 10.0.1. 80.X77.XXX.190 83.X05.XXX.219 80.X77.XXX.153
</Directory>
(note X used to hide user IPs)
Have tried this and then tried saving something in Server Admin. Still don't trust that sneaky app anymore!
Thanks again!
Tommy -
FileDialog : FilenameFilter and directory settings
I wrote a small program that needs to save and load files, and I wrote a GUI to make it more pleasing to possible users. I am having two distinct problems with the java.awt.FileDialog class. The first also concerns the java.io.FilenameFilter interface.
FileDialog fd = new FileDialog(this, "Open File", FileDialog.LOAD);
fd.setFilenameFilter(new FilenameFilter (){
public boolean accept(File dir, String name) {
return name.endsWith(".rd");
} // accept(File, String)
});This seems like it should work, but does absolutely nothing. All files show up in the FileDialog, regardless of endings. I added a System.out.println() statement, and indeed it wasn't even being called. This, however, does work:
fd.setFile("*.rd");No, I don't have both pieces of code active at once, although when I do, it works the same as when I just have the second working. Granted, it's nice this works, but it doesn't seem like it should. And the user can't override the .rd ending requirement, so if they save a file without the .rd ending, they have to change it manually to get it to work.
The second is the FileDialog always opens to the Desktop. If I manually hardcode a file, like say using
FileOutputStream fos = new FileOutputStream(ident + ".rd") ;it gets saved to the same folder where the code is, which would be my preference. I know that I can use the setDirectory() method, but how do I get the name of the directory? (Obviously I could hardcode a different directory, but that wouldn't be system or installation independent.) So how do I get Java to tell me the name of the folder that the code is in?
Any replies would be appreciated.
Paul Scheiblich
[email protected]Thank you. Switching to JFileChooser resolved the file filtering problem, and even made the behavior better than I'd hoped. (The user can choose to turn off the filter and look for files without the proper ending.) Of course, it now looks like a Java File Dialog, not a Windows dialog, but you can't have everything. Correctness trumps look.
I found a way to get the behavior I wanted out of the starting location.I had a field in my class that saves the directory, so you automatically look in the last place you opened or saved a file. I found an initial value that seems to work well (currDir is a File).
In the constructor:
currDir = new File("saved");
currDir.mkdir();Now in the method:
JFileChooser jfc = new JFileChooser();
FileNameExtensionFilter filter = new FileNameExtensionFilter(
"Random Deals Files", "rd");
jfc.setFileFilter(filter);
if (currDir != null) jfc.setCurrentDirectory(currDir);
int returnVal = jfc.showOpenDialog(this);
if (!(returnVal == JFileChooser.APPROVE_OPTION)) return;
currDir = jfc.getCurrentDirectory();
try {
fis = new FileInputStream(jfc.getSelectedFile());
// etc -
User through scp to restricted directory
Hi,
I have configured some zones. Now, for one zone, I want to have a user webadmin which can do nothing but adding/deleting/modifying files/dirs under /var/opt/SUNWappserver/domains/domain1/docroot.
I created the user. Can someone explain me what to do next in order to make this happen?
My zones are under /export/zones
Thanks,
timThx,
I don't understand completely but will dig in it if necessary (don't understand I would then even add a privilege to the user, since the user has 'too much' access already)
I was thinking about something like chroot. I tried running this script (http://www.fuschlberger.net/programs/ssh-scp-chroot-jail/) which I understand, but I get a lot of errors running the script on a Solaris zone:
-bash-3.00# ./make_chroot_jail.sh webman /var/opt/SUNWappserver/domains/domain1/docroot
-n Checking for chroot...
OK
-n Checking for sudo.....
OK
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: !: not found
Creating /bin/chroot-shell
Creating /home/jail
Creating /home/jail/dev
Creating /home/jail/etc
Creating /home/jail/etc/pam.d
Creating /home/jail/bin
Creating /home/jail/home
Creating /home/jail/sbin
Creating /home/jail/usr
Creating /home/jail/usr/bin
mknod: Not owner
mknod: Not owner
mknod: Not owner
mknod: Not owner
Modifying /etc/sudoers
Adding User "webman" to system
64 blocks
New Password:
Re-enter new Password:
passwd: password successfully changed for webman
grep: can't open -e
grep: can't open ^root
grep: can't open -e
grep: can't open ^root
grep: can't open -e
grep: can't open ^users
Adding User webman to jail
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
Copying necessary library-files to jail (may take some time)
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: !: not found
cp: cannot create ./usr/lib/ssh/sftp-server: No such file or directory
./make_chroot_jail.sh: /root/ldlist: cannot create
./make_chroot_jail.sh: test: argument expected
If there is no script like the link has available for Solaris, I'll try to dig in your approach. -
Not able to move/rename folders despite ACL settings
I'm having a maddening issue with a Mini server running 10.6.8 (all updates installed, configuration imported from a 10.5 XServe, recently did a full reinstall of the OS due to some odd behavior and Server Admin errors/slowness).
It is sharing a few volumes on an external drive via AFP and SMB, with relatively simple permissions configured via ACLs. For practical purposes, users are in two groups: Staff and Bookkeepers (I'm simplifying names, but they're not the stock system groups). All employees are in the Staff group, a few are also in the Bookkeepers one.
A couple of folders on one share have "deny : full control" set for the Staff group, and "allow : full control" set for the Bookkeepers group above that. The intent is to allow bookkeepers access to the folder, and not general staff.
This has worked as expected for years.
Then, for no readily apparent reason, a few days ago some users lost the ability to delete folders they created within the restricted folders (other folders on the share were fine). I spent a while going around as to why this was, eventually deciding that something was wrong with either the ACLs or the groups themselves.
My final solution was to completely remove the ACL from the restricted folder via the command line, then delete both groups, create two new groups, NewStaff and NewBookkeepers (with new GIDs and shortnames), then re-add the correct ACL to the restricted folder, and propagate permissions down (done with Server Admin and Workgroup Manager, latest versions, running on a 10.6.8 workstation). I also rebooted the server and cycled AFP.
Now the problem is only slighgtly different:
Within those restricted folders, users can create new folders, but cannot rename or move any existing or newly-created folders, although now they CAN delete either. The "Effective Permissions" browser in Server Admin shows my user as having full permissions for the folder in question to do everything, I've logged out and back on to make sure it's not a cache issue, and I've run out of ideas short of an OS reinstall.
The command line says the Bookkeepers group has the following permissions for one of the folders within a restricted directory, which I cannot rename or move:
inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_inherit
versus this for a folder I CAN edit, outside one of the restricted folders:
inherited allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_i nherit
...the notable difference in there being lack of "delete" permissions on the problem directories. Which is bizarre, because that group is set to "full control", and I CAN delete it--just not move or rename. (Perhaps that's the "delete_child" of the parent directory allowing me to do that?)
(Unix permission is: rwxrwx--- admin admin Others)
Notably, when directly accessing the server, the Finder also suffers from this problem--if I try to move a folder, I'm prompted to enter an admin password before I'm allowed to, so the issue isn't restricted to just AFP. I just can't figure out where the weird permission is propagating from, or how to get rid of it.
What the heck is going on here? Any suggestions on how I might try to fix it? I'm about to upgrade to 10.8 Server, and if that doesn't work reformat the external RAID array, which will be a huge pain.This is really an OS problem as it sets permission levels for operations. What OS?
If using Win OS and an external drive, you can start Bridge by right clicking and choosing "run as administrator". -
Backup to remote stage failed due to RFC error
Hello!
Recently I have problem to execute a successful online Backup to the external source.
If I start backup from DB13 and analyse the work processes (Tcode SM50) I found the following:
The responsible BGD-WP:
status: On hold , reason: RFC, report: SAPLSSXP
The dev_w8 trace retrieves the following error:
Source RSCROSS10 Line 112.
Error Code <b>DBIF_RSQL_SQL_ERROR</b>.
Module $Id: //bas/700_REL/src/krn/runt/absapsql.c#6 $ SAP.
Function HandleRsqlErrors Line 761.
The DB13-protocol retrieves the following information:
BR0278E Command output of 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkhbgq.ftp -b -c put E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 /sap/DEVB/bdwkhbgq/SR3.DATA3':
Connected to 192.168.200.3 Port 21.
220-FTP server ready. 220 This is a private system - No anonymous login 331 User sapbackup OK. Password required 230-User sapbackup has group access to: administrator 230-This server supports FXP transfers 230-OK. Current restricted directory is / 230-************************************************ 230-* Use SITE command to change client codepage: * 230-* ie, site codepage [client codepage] * 230 ************************************************ 200 TYPE is now 8-bit binary 200 PORT command successful 150 Connecting to port 2734 NiWrite error: -6, bytes to send: 32767 bytes written: 0
BR0280I BRBACKUP time stamp: 2007-10-20 03.08.23
BR0279E Return code from 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkhbgq.ftp -b -c put E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 /sap/DEVB/bdwkhbgq/SR3.DATA3': 1
BR0222E Copying E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 to/from /sap/DEVB/bdwkhbgq/SR3.DATA3 failed due to previous errors.
Can some one help me with this issue?
Thank you very much!
regards
ThomHello Eric,
unfortunately it is not possible to do it, because I have only remote access to the SAP system.
Is it possible to analyse the problem with the log files?
If yes --> which logs should I post here?
I went through the monitors in RZ20 and found a lot of errors/warning:
<b>Database:</b>
DBIF_SETG_SQL_ERROR
ORA-03106: fatal two-task communication protocol error
DB error 24909 in FET
SQL error 3106: WP in reconnect status
<b>Background:</b>
Job SAP_COLLECT_FOR_PERMONITOR terminated
Utilisation:
100% > 95% Background work process load exceeds threshold
BackgroundService: SystemWideFree BPWP: 1 WPs > 2 WPs Current value over threshold value.
Abap ErrorInUpdate
<b>Syslog</b> : BasisSystem
Operating system call recv failed (error no. & >E5)
The log file dev_cp retrieves the following information after execution of DB Check:
Trace file of control program (trace level 3)
< Function: BtcTrcInit> Function: main SAPXPG 700
2007-10-23--14-42-27 : Before BtcXpgDetach
> Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
2007-10-23--14-42-27 : Before RfcAccept
2007-10-23--14-42-27 : RfcAccept returned OK
security check switched OFF
Install RFC call SAPXPG_START_XPG
Install RFC call SAPXPG_START_XPG_LONG
Install RFC call SAPXPG_END_XPG
Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
2007-10-23--14-42-27 : Before first call of RFCDispatch
> Function: BtcXpgStartXpgLong
2007-10-23--14-42-27 : Beginning of BtcXpgStartXpgLong
> Function: BtcXpgStartXpgImportLong > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam
Line Text
<No StdOut/StdErr output reported>
Target log table is not identical to source
ItGetLine terminated with NULL
<Function: BtcXpgItTransfer > Function: BtcTrcReset < Function: BtcTrcReset Call mode: VIA RF
Input arguments of BtcXpgStartXpg:
My WP settings are:
rdsip/wp_no_dia = 6
rdsip/wp_no_btc = 3
rdsip/wp_no_vb = 1
rdsip/wp_no_vb2 = 1
rdsip/wp_no_spo = 1
Thank you!
Thom -
GoDaddy's webformmailer.php on my site is not working
I am stuck. I created a site for a client and uploaded it to the GoDaddy server so they could also do updates on their HTML editor. I used the GoDaddy webformmailer.php code they provide and it did work initally. We tested it several times a few months ago and the test emails were coming through. We did an update on the site, not touching the webformmailer.php code, and now it is not working. She even had about 15-20 people say on Facebook that they used the contact page to send messages.
I reached out to GoDaddy twice so far, both times with run-around answers:
Maybe the form was blank that was submitted...
Add a captcha to it so it verify's that it is indeed a human...
Can someone help me out here? Has anyone else had this issue? I am not .php or SQL savy, just breaking ground with it, but, obviously it worked before, something happened on GoDaddy's end to make it not work now. Here is the code (what is italicized and in red is GoDaddy's code I copied and pasted):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Anthony's Bar & Grill</title>
<link href="contact.css" rel="stylesheet" type="text/css" />
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2187524" binding="#mapCanvas" />
</oa:widgets>
-->
</script>
</head>
<body>
<div class="container">
<div class="header"><a href="home.html" target="_parent"><img src="myicons/images/anthonysHeader.png" alt="header" width="500" height="150" hspace="250" /></a>
<!-- end .header --></div>
<div class="nav"><a href="home.html" target="_parent"><img src="myicons/images/home.png" alt="home" width="125" height="75" hspace="10" /></a><a href="menu.html" target="_parent"><img src="myicons/images/menu.png" alt="menu" width="125" height="75" hspace="40" /></a></a> <a href="specials.html" target="_parent"><img src="myicons/images/specials.png" alt="specials" width="130" height="75" hspace="30" /></a> <a href="livemusic.html" target="_parent"><img src="myicons/images/liveMusic.png" alt="liveMusic" width="160" height="75" hspace="20" /></a> <a href="photos.html" target="_parent"><img src="myicons/images/photos.png" alt="photos" width="125" height="75" hspace="30" /></a><!-- end of .nav --></div>
<div class="content">
<div class="form">
<form action="/webformmailer.php" method="post">
<input type="hidden" name="subject" value="Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
First Name:
<input type="text" name="FirstName" /><br />
Last Name: <input type="text" name="LastName" /><br />
Email: <input type="text" name="email" /><br />
We'd love to hear from you! Leave us your comments: <br />
<textarea name="comments" cols="50" rows="10"></textarea><br />
<input type="submit" name="submit" value="submit"/>
<input type="hidden" name="form_order" value="alpha"/> <input type="hidden" name="form_delivery" value="hourly_digest"/> <input type="hidden" name="form_format" value="html"/>
</form>
</div>
<h3>10371 Southern Maryland Blvd.
<br />
Dunkirk, MD, 20754<br />
301-327 5219 and/or 301-327-5520<br />
</h3>
<div id="mapCanvas" style="width:530px; height:300px; min-width:530px; min-height:300px"></div>
<script type="text/javascript">
// BeginOAWidget_Instance_2187524: #mapCanvas
// initialize the google Maps
function initializeGoogleMap() {
// set latitude and longitude to center the map around
var latlng = new google.maps.LatLng(38.72055,
-76.65971);
// set up the default options
var myOptions = {
zoom: 17,
center: latlng,
navigationControl: true,
navigationControlOptions:
{style: google.maps.NavigationControlStyle.DEFAULT,
position: google.maps.ControlPosition.TOP_LEFT },
mapTypeControl: true,
mapTypeControlOptions:
{style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: google.maps.ControlPosition.TOP_RIGHT },
scaleControl: true,
scaleControlOptions: {
position: google.maps.ControlPosition.BOTTOM_LEFT
mapTypeId: google.maps.MapTypeId.ROADMAP,
draggable: true,
disableDoubleClickZoom: false,
keyboardShortcuts: true
var map = new google.maps.Map(document.getElementById("mapCanvas"), myOptions);
if (false) {
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
if (false) {
var bikeLayer = new google.maps.BicyclingLayer();
bikeLayer.setMap(map);
if (true) {
addMarker(map,37.7715,-122.4,"We are here");
window.onload = initializeGoogleMap();
// Add a marker to the map at specified latitude and longitude with tooltip
function addMarker(map,lat,long,titleText) {
var markerLatlng = new google.maps.LatLng(lat,long);
var marker = new google.maps.Marker({
position: markerLatlng,
map: map,
title:"We are here",
icon: "http://code.google.com/apis/maps/documentation/javascript/examples/images/beachflag.png"});
// EndOAWidget_Instance_2187524
</script> <a href="https://www.facebook.com/pages/Anthonys-Bar-and-Grill/53652420587?fref=ts" target="_new"><img src="myicons/images/facebook.png" alt="facebook" width="99" height="99" vspace="50" /></a> <a href="https://twitter.com/CharleneWard10" target="_new"><img src="myicons/images/twitter.png" alt="twitter" width="100" height="100" vspace="50" /></a><!-- end .content --></div>
<div class="footer">
<p><a href="home.html" target="_parent">Home</a> • <a href="menu.html" target="_parent">Menu</a> • <a href="specials.html" target="_parent">Specials</a> • <a href="livemusic.html" target="_parent">Live Music</a> • <a href="photos.html" target="_parent">Photos</a> • <a href="contact.html" target="_parent">Contact</a> • <a href="platters.html" target="_parent">Platters</a></p>
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>I've tested your core code (the php that's in red) on a GoDaddy account that includes the PHP script, and the script works. I simply pasted it within the <body> tags of a rudimentary HTML file (empty <head> and no other code).
However, I agree with those who have said there are better form-handling options, and because form-handling is such a fundamental website feature, I am beginning also to agree with MurraySummers that GD is not a service I'd recommend. For more than a decade, I've enjoyed using a CGI program called CGIEmail (which I think was originally published by MIT), but GoDaddy has nothing like it. The form data arrives in a text email, not an awkward attachment, and can be arranged in any order, accompanied by any text you want (e.g., instructions, verbose field names, HTML tags and text, CSV record line, whatever, including more than on of these formats in a single email), and can send to any email address(s) you specify. Different forms can send to different addresses, which are specified in the a forms' formatting file, which is a txt file, stored in a restricted directory. (GoDaddy has said a script would not be able to access a restricted directory without displaying the password ... I suppose also bumblebees cannot fly? In any case, GoDaddy could support that in another way if they really cared to.). I was hoping to adapt one of their PHP scripts to create a PHP equivalent, but they provide no documentation (except the install instructions) and it's not a promising use of my time.
Since this thread is 9 months old, I assume you've resolved your problem by now, but for the record, I'd try running just the PHP in a simple .php file as I did, and be sure the webformmailer.php program is in your root directory. In case it might be corrupted, you might contact GoDaddy support to learn how to reinstall it. The install instructions include a link to that process, but I can't say whether or not the reinstallation might have unwanted side effects. If it still doesn't work, then the problem must (have been) elsewhere on your page, or (the most likely cause) you haven't specified the target address correctly. All three of GoDaddy's email scripts send only to one address, which you specify on a separate page for your account.
If you've resolved this problem, please consider explaining how. It might be of help to others. -
Why doesn't FTP work in Boot Camp
I've tried a Windows 8 installation and a Windows 7 installation. I cannot use FTP to remote servers. I've tried multiple clients. The client will connect to server, start to upload a file, but then nothing. This is booting into Windows, not using parallels or anything. I've tried disabling firewall, but nothing.
FTP clients work fine in Mac OS ( 10.7.5 ) and on laptops running both Windows 7 and Windows 8.
HELP!!
Thanks,
QTurn off your Windows firewall completely. The passive mode is trying to use a port that may be blocked. It is not enough to just open port 21 with passive mode.
If that does not work, try using active mode rather than passive mode to see if it makes a difference.
Here is a filezilla log from Windows in Bootcamp:
Status:
Resolving address of xxx.xxx
Status:
Connecting to xxx.xxx.xxx.xxxx...
Status:
Connection established, waiting for welcome message...
Response:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:
220-You are user number 4 of 50 allowed.
Response:
220-Local time is now 16:55. Server port: 21.
Response:
220-IPv6 connections are also welcome on this server.
Response:
220 You will be disconnected after 15 minutes of inactivity.
Command:
USER xxx
Response:
331 User xxx OK. Password required
Command:
PASS ************
Response:
230 OK. Current restricted directory is /
Command:
SYST
Response:
215 UNIX Type: L8
Command:
FEAT
Response:
211-Extensions supported:
Response:
EPRT
Response:
IDLE
Response:
MDTM
Response:
SIZE
Response:
MFMT
Response:
REST STREAM
Response:
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:
MLSD
Response:
AUTH TLS
Response:
PBSZ
Response:
PROT
Response:
ESTA
Response:
PASV
Response:
EPSV
Response:
SPSV
Response:
ESTP
Response:
211 End.
Status:
Server does not support non-ASCII characters.
Status:
Connected
Status:
Retrieving directory listing...
Command:
PWD
Response:
257 "/" is your current location
Command:
TYPE I
Response:
200 TYPE is now 8-bit binary
Command:
PASV
Response:
227 Entering Passive Mode (xxx)
Command:
MLSD
Response:
150 Accepted data connection
Response:
226-Options: -a -l
Response:
226 30 matches total
Status:
Directory listing successful -
Help, how to make a program type in a command in command prompt?
I've got a small code that only works if you type in something like this (assume that the .java file is smallcode.java):
c:\>java smallcode filename.dcm
on the other hand, in my main program I have a if else ladder that I want to fit in this code, when my file chooser choose the file type .dcm, I want it to execute the command above, how can I do it?1. Not sure if your file is an absolute path name,
like "c:\files\file.dcm". If it's not, then it has to
be in the same directory as where your running
picviewer from. I always use the absolute path just
to be safe.you know what, you just point out how stupid I am, the path is relative, it depends on where the user surf into, I get the directory like this:
FileDialog fd = new FileDialog(this, "Select Directory", 0);
String directory = fd.getDirectory();
String fileName = fd.getfileName();
>
2. Your command string is wrong, try:
String cmd = ("cmd /c d:\\java
project\\picviewer\\test\\java DicomViewer " +
"\""+file+"\"");You are missing a space between DicomViewer and the
file name. Also, to make sure that it doesn't parse
the file name, put it in quotes (like I have done
above).I see, I'll modify the code and come back in couple minutes.
thanks -
Hi There,
I have just switched from MX to 8 and am having trouble
puting files to the server. When I go to Window, File, the file
panel comes up with out the buttons to up load the files. When I
click on the box to expand file, the butons show up but are not
working. I've been through the preference box, and can't find
anything to adjust the preferences. Any suggestions?Thanks for the information. I have been through the trouble
shooting papers...several times. There is a lot of information with
a lot of things I don't understand. Is there a troubleshooting
tree? That way I don't have to sift through information that does
not apply. (It is overwhelming and confusing)
I did not mention that 1.) I switched from a PC to a Mac the
same time I upgraded to DW8. And 2.) I downloaded the trial version
of DW8, so I could use it until I got the DW8 cd. I am pretty sure
I did not have this problem with the trial version.
The following is a copy of my current log:
< 220---------- Welcome to Pure-FTPd [TLS] ----------
< 220-Local time is now 11:32. Server port: 21.
< 220-This is a private system - No anonymous login
< 220-IPv6 connections are also welcome on this server.
< 220 You will be disconnected after 15 minutes of
inactivity.
> USER hus185K
< 331 User hus185K OK. Password required
> PASS
< 230-User hus185K has group access to: webpage_
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
> PWD
< 257 "/" is your current location
> CWD /
< 250 OK. Current directory is /
> MKD MM_CASETEST4291
< 257 "MM_CASETEST4291" : The directory was successfully
created
> CWD /
< 250 OK. Current directory is /
> RMD mm_casetest4291
< 250 The directory was successfully removed
> CWD /public_html
< 250 OK. Current directory is /public_html
> PWD
< 257 "/public_html" is your current location
> CWD /
< 250 OK. Current directory is /
> PWD
< 257 "/" is your current location
> CWD /public_html
< 250 OK. Current directory is /public_html
> MKD xyiznwsk
< 257 "xyiznwsk" : The directory was successfully created
> CWD /public_html
< 250 OK. Current directory is /public_html
> PWD
< 257 "/public_html" is your current location
> CWD /public_html
< 250 OK. Current directory is /public_html
> PASV
< 227 Entering Passive Mode (216,183,98,26,208,67)
> TYPE A
< 200 TYPE is now ASCII
> LIST
< 150 Accepted data connection
< -rw-r--r-- 1 hus185K webpage_ 14261 Jul 25 15:43
TSHIRTS.htm
< -rw-r--r-- 1 hus185K webpage_ 2725 Jul 25 15:43
contactus.htm
< drwxr-xr-x 3 hus185K webpage_ 102 Jul 25 15:43 css
< -rw-r--r-- 1 hus185K webpage_ 4235 Jul 25 15:43
goal.htm
< -rw-r--r-- 1 hus185K webpage_ 4668 Jul 25 15:43
goals.htm
< drwxr-xr-x 37 hus185K webpage_ 1258 Jul 25 15:43 images
< -rw-r--r-- 1 hus185K webpage_ 3362 Aug 5 01:01
index.htm
< -rw-r--r-- 1 hus185K webpage_ 1885 Jul 25 15:43
inner_template.htm
< -rw-r--r-- 1 hus185K webpage_ 12579 Jul 25 15:43
learn.htm
< -rw-r--r-- 1 hus185K webpage_ 3987 Jul 25 15:43
links.htm
< -rw-r--r-- 1 hus185K webpage_ 4505 Oct 10 16:01
sendmail.php
< -rw-r--r-- 1 hus185K webpage_ 3677 Jul 25 15:43 us.htm
< drwxr-xr-x 2 hus185K webpage_ 68 Dec 4 11:32 xyiznwsk
< 226-Options: -l
< 226 13 matches total
> CWD /
< 250 OK. Current directory is /
> PWD
< 257 "/" is your current location
> CWD /public_html
< 250 OK. Current directory is /public_html
> RMD xyiznwsk
< 250 The directory was successfully removed
> CWD /public_html
< 250 OK. Current directory is /public_html
> PWD
< 257 "/public_html" is your current location -
Whole online backup from DB13 failed due to processing error
Hello!
I have difficulty by execution of Whole database online backup from DB13 via FTP on the remote target. The backup goes very slow and breaks after a while.
The BRBACKUP action log looks as follows:
backup_mode ALL
backup_type online
backup_dev_type stage
stage_root_dir /sap/DEVB
compress no
stage_copy_cmd ftp
remote_host 192.168.200.3
remote_user sapbackup
#FILE..... E:\ORACLE\DEV\SAPDATA2\SR3_10\SR3.DATA10
#SAVED.... /sap/DEVB/bdwkuudu/SR3.DATA10 #1/6
BR0280I BRBACKUP time stamp: 2007-10-23 01.44.35
BR0063I 6 of 41 files processed - 12000.047 MB of 93092.766 MB done
BR0204I Percentage done: 12.89%, estimated end time: 23:06
BR0001I ******____________________________________________
BR0202I Saving E:\ORACLE\DEV\SAPDATA2\SR3_6\SR3.DATA6
BR0203I to /sap/DEVB/bdwkuudu/SR3.DATA6 ...
#FILE..... E:\ORACLE\DEV\SAPDATA2\SR3_6\SR3.DATA6
#SAVED.... /sap/DEVB/bdwkuudu/SR3.DATA6 #1/7
BR0280I BRBACKUP time stamp: 2007-10-23 02.38.05
BR0063I 7 of 41 files processed - 14000.055 MB of 93092.766 MB done
BR0204I Percentage done: 15.04%, estimated end time: 21:36
BR0001I ********__________________________________________
BR0202I Saving E:\ORACLE\DEV\SAPDATA2\SR3_7\SR3.DATA7
BR0203I to /sap/DEVB/bdwkuudu/SR3.DATA7 ...
<b>BR0278E Command output of 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkuudu.ftp -b -c put E:\ORACLE\DEV\SAPDATA2\SR3_7\SR3.DATA7 /sap/DEVB/bdwkuudu/SR3.DATA7':
Connected to 192.168.200.3 Port 21.
220-FTP server ready.
220 This is a private system - No anonymous login
331 User sapbackup OK. Password required
230-User sapbackup has group access to: administrator
230-This server supports FXP transfers
230-OK. Current restricted directory is /
230-************************************************
230-* Use SITE command to change client codepage: *
230-* ie, site codepage [client codepage] *
230 ************************************************
200 TYPE is now 8-bit binary
200 PORT command successful
150 Connecting to port 4977
NiWrite error: -6, bytes to send: 32767 bytes written: 0
BR0280I BRBACKUP time stamp: 2007-10-23 03.08.37
BR0279E Return code from 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkuudu.ftp -b -c put E:\ORACLE\DEV\SAPDATA2\SR3_7\SR3.DATA7 /sap/DEVB/bdwkuudu/SR3.DATA7': 1
BR0222E Copying E:\ORACLE\DEV\SAPDATA2\SR3_7\SR3.DATA7 to/from /sap/DEVB/bdwkuudu/SR3.DATA7 failed due to previous errors </b>
BR0280I BRBACKUP time stamp: 2007-10-23 03.08.43
BR0317I 'Alter tablespace PSAPSR3 end backup' successful
BR0056I End of database backup: bdwkuudu.ans 2007-10-23 03.08.37
BR0280I BRBACKUP time stamp: 2007-10-23 03.08.43
BR0054I BRBACUP terminated with errors
Any helpful information will be appreciated.
regards!
Thomthis post is duplicated at Re: Backup to remote stage failed due to RFC error
please only post your question once and only in 1 forum.
thanks. -
Security Evaluation of Oracle Application Server
Are there any published documents on security evaluation of Oracle Application Server?
Is it secure as a tool against some attacks, for example, are following vulnerabilities when applicable to the server dealt with or should be handled by application? :
failure to restrict url access,
broken authentication and session management
insecure cryptographic storage,
injection flaws
failure to restrict directory browsing
Are there available document that we can refer to on these issues?
Regards
FarbodThank you again.
Can you advise on this part of my message also?
"Also I see in oracle recommended architectures that there is a firewall between each http server and application server. Does the built in OHS in OAS provide the firewall? or I need to install another firewall?"
I am going to explain it but I think it is completely inconsistent with the thread title which I got some of my answers in, so let me start a new thread here:
Application Server Recommended Deployment Architectures, How to?
Thanks for your useful inputs.
Best Regards,
Farbod -
Internet Explorer 9 crashes with webutil
Hi, i installed webutil kit on windows vista 32 bits business editions. The installation was successful. Jacob sign was ok too.
I have forms 10g 10.1.2.3.0
Installed pacth 7384879 and was ok
Forms and Reports 10g work nice on internet explorer 9 and until now have a problem with webutil
RegardsForms 10 is not supported for use with IE9. That said, generally when a browser crashes while running a plug-in (Java plugin in this case), the issue is a problem with the plugin and not the application running within it. Also, to use WebUtil with Forms in Vista or newer, the user will need to have Administrator permissions (Windows). If not, an error or crash will occur. This is because WebUtil will attempt to write into the Program Files directory which is not permitted unless you are an Admin. This restriction can be overcome if you install a newer version of the Forms Bundle patch then change the configuration so that writing to the restricted directory no longer occurs (redirect writing to a permitted directory).
Refer to Patch ID 9593176 (requires Jacob 1.10.1) and the follow MyOracleSupport note:
<li> How To Change The Default Download Directory For Forms WebUtil Client Files (Doc ID 783937.1)
Also refer to: "Oracle Forms 10.1.2.3 Bundle Patch Frequently Asked Questions (FAQ) (Doc ID 1188127.1)" -
Can't FTP since I installed theWRT54GSV7
I'm trying to access a server via FTP with FileZilla. Before I installed the router the FTPing of files to and from my computer to the other server worked just fine. Now that I have this router FTP no longer works.
I don't want to install an ftp server on my machine, but access files on a remote machine via FTP.
Here is a log of my FTP client
Status: Resolving IP-Address for www.failfastandsucceed.com
Trace: ControlSocket.cpp(948): CRealControlSocket::ContinueConnect(01305D90) m_pEngine=00B195C8 caller=01306160
Status: Connecting to 65.254.41.202:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket:nReceive()
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 1 of 50 allowed.
Response: 220-Local time is now 18:40. Server port: 21.
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER failfas
Trace: CFtpControlSocket:nReceive()
Response: 331 User failfas OK. Password required
Command: PASS *******
Trace: CFtpControlSocket:nReceive()
Response: 230-User failfas has group access to: failfas
Response: 230 OK. Current restricted directory is /
Command: SYST
Trace: CFtpControlSocket:nReceive()
Response: 215 UNIX Type: L8
Command: FEAT
Trace: CFtpControlSocket:nReceive()
Response: 502 Command not implemented.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CFtpControlSocket:endNextCommand(0)
Command: PWD
Trace: CFtpControlSocket:nReceive()
Response: 257 "/" is your current location
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket:endNextCommand(0)
Trace: CFtpControlSocket::ListSend(0)
Trace: state = 1
Trace: CFtpControlSocket:endNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Trace: state = 1
Command: TYPE I
Trace: CFtpControlSocket:nReceive()
Response: 200 Command okay.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 1
Trace: CFtpControlSocket::TransferSend(0)
Trace: state = 2
Command: PASV
Trace: CRealControlSocket:nClose()
Error: Disconnected from server
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Error: Failed to retrieve directory listing
I've spent over an hour with my ISP tech support and then with linksts tech support and I'm just about to throw this thing away.
Any ideas?
Thanks a lot
RichardAccess routers setup page using http://192.168.1.1, you will get username & password screen, leave username blank & password should be admin.
Open ports 20 & 21 on routers set up page under Application & gaming tab using the IP
Address for server.....save settings. -
Can't get camera to send Pics to FTP on EX2
I have a Avacom camera on my network. I am trying to get it to send pics to the EX2. The test says Device(WIFICAM) <script src="/t5/forums/postpage/board-id/test_ftp.cgi"></script> <script src="/t5/forums/postpage/board-id/get_status.cgi"></script> <script>// document.title = opener.str_device+'('+alias+')'; // </script>Test ... SucceedI have a share in the EX2 that has full read wite User access to the share folder. I have enabled both FTP Access and WebDAV Service under Network Services and the share folder.I have rebooted and shut down. I have a Wire shark capture that shows the login and the picture file it's trying to upload to the EX2. I get a "553 Users may not upload files" The EX2 seems to not set the share folder for the user. Is there a way to set what folder will be used by the login? Thanks for any help 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 10 allowed. 220-Local time is now 23:11. Server port: 21. 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 10 minutes of inactivity. SYST 215 UNIX Type: L8 USER cambd 331 User cambd OK. Password required PASS mypassword 230 OK. Current restricted directory is / TYPE I 200 TYPE is now 8-bit binary PORT 192,168,1,231,136,249 200 PORT command successful STOR HSL-086176-CFZRY_0_20150727231121_5.jpg 553 Users may not upload files 553 Logout.
AdrianP15 wrote:
I have a Avacom camera on my network. I am trying to get it to send pics to the EX2. The test says Device(WIFICAM) <script src="/t5/forums/postpage/board-id/test_ftp.cgi"></script> <script src="/t5/forums/postpage/board-id/get_status.cgi"></script> <script>// document.title = opener.str_device+'('+alias+')'; // </script>Test ... SucceedI have a share in the EX2 that has full read wite User access to the share foulder. I have enabled both FTP Access and WebDAV Service under Network Services and the share foulder.I have rebooted and shut down. I have a Wire shark capture that shows the login and the picture file it's trying to upload to the EX2. I get a "553 Users may not upload files" The EX2 seems to not set the share foulder for the user. Is there a way to set what foulder will be used by the login? Thanks for any help 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 10 allowed. 220-Local time is now 23:11. Server port: 21. 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 10 minutes of inactivity. SYST 215 UNIX Type: L8 USER cambd 331 User cambd OK. Password required PASS mypassword 230 OK. Current restricted directory is / TYPE I 200 TYPE is now 8-bit binary PORT 192,168,1,231,136,249 200 PORT command successful STOR HSL-086176-CFZRY_0_20150727231121_5.jpg 553 Users may not upload files 553 Logout. Go to NAS webpage --> Share tab and enable FTP access for folder you would like to give FTP access to. I believed you only turn on the FTP from the setting but have not enable with share folder to allow FTP access to.
Maybe you are looking for
-
Use of a Session Variable in another session variable in OBIEE
Hi, I want to use a session variable say A to calculate value of another session variable B. I am using valueof(NQ_SESSION.A) in the initialization block of variable B. But the result is coming blank. I know that the value exists. I have also set the
-
Intercompany direct shipment to customer
Hi, I am not an SD person (am learning FI) but have a question regarding intercompany sales/shipments. I understand IC sales are between two company codes but I want to be sure I am getting the concept. Company A (US) has sales org A which receives t
-
hai to all, I tried to create one structure for function module ZBAPISTAT for this structure i tried to add one field like OBJNR DATAELEMENT J_OBJNR but its gave error like Field name OBJNR does not agree with proposed name OBJECT_NO for BAPI table M
-
How can I copy the PDF files (not purchased) in iBook on my iPad to my Mac? And how can I acess the photos ect. on my iPad? iTunes is not doing a good job on this.
-
ITunes 9 64-bit for Windows, but not Snow Leopard?
So I installed iTunes 9 on my MBP running Snow Leopard, and when I go into Activity Monitor, under the CPU tab, in the "kind" column it clearly singles out iTunes as the ONLY app not running in 64-bit. Now doing a brief search the only discussion of