You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Matthias Bläsing <mb...@doppel-helix.eu> on 2019/12/21 09:11:15 UTC

macOS user(s) needed to verify potential issue fix

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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: macOS user(s) needed to verify potential issue fix

Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Hi Geertjan,

Am Samstag, den 21.12.2019, 11:23 +0100 schrieb Geertjan Wielenga:
> 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

yeah - I know, that triggered my investigation. I looked at the
implementation and I like to know why something needs to be replaced
and in this case I did not understand it.

> 
> 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 - yes that confirms my suspicion - I tried to reproduce it on
linux and even with symlinks Chrome openes the right file and shows the
symlink directory in the URL.

However, this is my suggestion for the fix:

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

Could you please see if this fixes the issue on macOS?

Thank you

Matthias


On Sat, Dec 21, 2019 at 10:11 AM Matthias Bläsing <mb...@doppel-helix.eu> wrote:
> [/var is symlink to /private/var]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: macOS user(s) needed to verify potential issue fix

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <mb...@doppel-helix.eu>
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: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>