It's fantastic that you're looking into this, one of the truly big issues,
many complaining about over a long time.

I made an attempt here:

https://github.com/apache/netbeans/pull/1577

And also watch this, which describes the status and workaround:

https://www.youtube.com/watch?v=J6lOQS2rWK0

Also, I ran your commands:

$ ls -lh /var
lrwxr-xr-x@ 1 root  wheel    11B Apr 10  2018 /var -> private/var

$ jrunscript -e 'var f = new File("/var"); java.lang.System.out.println(f);
java.lang.System.out.println(f.toPath().toRealPath().toFile())'
Warning: Nashorn engine is planned to be removed from a future JDK release
/var
/private/var

Thanks and happy to test and try anything to get this further.

Gj

On Sat, Dec 21, 2019 at 10:11 AM Matthias Bläsing <[email protected]>
wrote:

> Hello all,
>
> please have look at this issue:
>
>
> https://issues.apache.org/jira/browse/NETBEANS-3249?focusedCommentId=16998515&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16998515
>
> TL;DR: NetBeans asks Chrome to open a file:///, Chrome does this, but
> it seems, that it is not the same file, as NetBeans send. Instead of
> /var, /var/private is returned as base directory.
>
> From my reading this is most probably NetBeans having a symlink in the
> url and Chrome using the resolved path.
>
> It would be helpful to see the output of
>
> ls -lh /var
>
> I suspect, that /var is a symlink to /var/private - this this the case?
>
> Please also run:
>
> jrunscript -e 'var f = new File("/var"); java.lang.System.out.println(f);
> java.lang.System.out.println(f.toPath().toRealPath().toFile())'
>
> This tries to resolve the symlink and outputs the path before and after
> normalization.
>
> Thank you for your help.
>
> Matthias
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to