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.

View | Details | Raw Unified | Return to bug 64012
Collapse All | Expand All

(-)httpserver/src/org/netbeans/modules/httpserver/HttpServerURLMapper.java (-4 lines)
Lines 106-115 Link Here
106
        // fileObject must not be null
106
        // fileObject must not be null
107
        if (fileObject == null)
107
        if (fileObject == null)
108
            return null;
108
            return null;
109
        
110
        // if the file is on the localhost, don't return URL with HTTP
111
        if (FileUtil.toFile(fileObject) != null)
112
            return null;
113
109
114
        // It should be OK to call URLMapper here because we call
110
        // It should be OK to call URLMapper here because we call
115
        // it with different then NETWORK type.
111
        // it with different then NETWORK type.
(-)openide/masterfs/src/org/netbeans/modules/masterfs/MasterURLMapper.java (-1 / +1 lines)
Lines 56-62 Link Here
56
    }
56
    }
57
57
58
    public URL getURL(final FileObject fo, final int type) {
58
    public URL getURL(final FileObject fo, final int type) {
59
        if (!(fo instanceof MasterFileObject)) return null;
59
        if (type == URLMapper.NETWORK || !(fo instanceof MasterFileObject)) return null;
60
        MasterFileObject hfo = (MasterFileObject) fo;
60
        MasterFileObject hfo = (MasterFileObject) fo;
61
        File f = (hfo != null) ? hfo.getResource().getFile() : null;
61
        File f = (hfo != null) ? hfo.getResource().getFile() : null;
62
62

Return to bug 64012