[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] <AWT Dev> java.awt.ICC_profile - getStandardProfileFile and getProfileFile brea
From:       Phil Race <philip.race () oracle ! com>
Date:       2015-10-22 19:43:34
Message-ID: 56293C66.8040007 () oracle ! com
[Download RAW message or body]

This should be asked on the 2d-dev list.

But no, its not a bug. This was done for a good reason and that is all I 
can say ..

-phil.

On 10/22/2015 08:56 AM, Spoffy wrote:
> Hey there,
>
> When using the Nix package manager, almost all files and folders are 
> installed as symlinks (for various reasons).
>
> I was attempting to use OpenIMAJ, which calls into 
> java.awt.color.ICC_Profile.getStandardProfile. However, this throws an 
> exception when used. This is due to line 1836 in getProfileFile() 
> calling "isChildOf(File f, String dir)".
>
> This involves expanding the file and its parent to their canonical 
> paths. However, on a symlinked system, they have different canonical 
> paths and this returns false.
>
> I was wondering if this was a bug, or exists for a reason?
>
> Many thanks,
> -- 
> Callum


[Attachment #3 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">This should be asked on the 2d-dev
      list.<br>
      <br>
      But no, its not a bug. This was done for a good reason and that is
      all I can say ..<br>
      <br>
      -phil.<br>
      <br>
      On 10/22/2015 08:56 AM, Spoffy wrote:<br>
    </div>
    <blockquote
cite="mid:CAEqA=iNKp8VkKZDPX6g6wC-=kj9goe6ejrBLZsjh4sAwr6SpYA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hey there,<br>
                  <br>
                </div>
                When using the Nix package manager, almost all files and
                folders are installed as symlinks (for various reasons).
                <br>
                <br>
              </div>
              I was attempting to use OpenIMAJ, which calls into
              java.awt.color.ICC_Profile.getStandardProfile. However,
              this throws an exception when used. This is due to line
              1836 in getProfileFile() calling "isChildOf(File f, String
              dir)".<br>
              <br>
            </div>
            This involves expanding the file and its parent to their
            canonical paths. However, on a symlinked system, they have
            different canonical paths and this returns false.<br>
            <br>
          </div>
          I was wondering if this was a bug, or exists for a reason?<br>
          <br>
        </div>
        Many thanks,<br>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>-- <br>
                        <div class="gmail_signature">
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div><span
                                        style="color:rgb(68,68,68)">Callum</span></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic