This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import org.netbeans.modules.masterfs.providers.ProvidedExtensions;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileSystem;
import org.openide.filesystems.FileUtil;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.Utilities;
} else {
name = (name.startsWith("/")) ? name : ("/"+name);
}
if (name.contains("..")) {
name = FileUtil.normalizePath(name);
File f = new File(name);
try {
f = f.getCanonicalFile();
} catch (IOException ex) {
LOG.log(Level.WARNING, "Cannot canonicalize " + f, ex);
return getFileObject(f);
import org.openide.filesystems.FileChangeListener;
import org.openide.filesystems.FileLock;
import org.openide.util.Mutex;
File file = new File(getFileName().getFile(), relativePath);
if (relativePath.contains("..")) {
file = FileUtil.normalizeFile(file);
file = file.getCanonicalFile();
LOG.log(Level.WARNING, "Cannot canonicalize " + file, ex);
FileObjectFactory factory = getFactory();