<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Pascal,</p>
<p>Maybe when your URLConnection.getInputStream() is called for an
URL to a non existing resource you could throw a "
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<span class="strong">FileNotFoundException</span>" which extends
IOException.</p>
<p>About your remark:</p>
<p>
<blockquote type="cite">For the moment we return a new
File(tothenonexistingpath) in getCanonicalFileFromFileUrl</blockquote>
where in the code is that? In your custom url connection handler?
Can you give me more details?<br>
</p>
<p>Regards,</p>
<p>Radu<br>
</p>
<br>
<div class="moz-cite-prefix">On 2/6/18 5:01 PM, Pascal Beutels
wrote:<br>
</div>
<blockquote
cite="mid:DB6PR06MB3094DD96473B2118744CBEC7C2FD0@DB6PR06MB3094.eurprd06.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When handling conrefs to objects that no
longer exist in our CMS, we would like to handle this the same
way as regular dita files with the same issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">E.g <o:p></o:p></p>
<p class="MsoNormal"
style="background:white;text-autospace:none"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#000096;background:white;mso-highlight:white"><note</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#F5844C;background:white;mso-highlight:white">
id</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#993300;background:white;mso-highlight:white">"GUID-364D534C-E105-4CA7-81B5-FA910387D630"</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#F5844C;background:white;mso-highlight:white">
conref</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#993300;background:white;mso-highlight:white">"./Jenkins/nonexistingfile.dita"</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:#000096;background:white;mso-highlight:white">></span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Results in a ‘[Target file not found]’
error with more details when you hover over.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For the moment we return a new
File(tothenonexistingpath) in getCanonicalFileFromFileUrl,
which results in the erro:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">xxx\GUID-C2F39B76-FDC6-4E7C-80E1-36E7BC635FBA
(The system cannot find the file specified)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way we can raise the same error
from our custom code?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Pascal<o:p></o:p></p>
</div>
<div
style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:nowrap;">
<table style="width:100%;font-size:0;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;" align="left">
<table style="font-size:0;" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td style="padding:0 0 15px;vertical-align:top;"
align="left">
<table style="font-size:0;line-height:normal;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;"
align="left"><img moz-do-not-send="true"
src="https://www.sdl.com/static/corporate/SDL25y_emailLogo.png" alt=""
style="font-size:0;" border="0"></td>
</tr>
<tr>
<td style="vertical-align:top;"
align="left">
<table
style="color:#000001;font-size:14.67px;font-family:Arial;font-weight:400;font-style:normal;text-align:justify;"
border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td style="font-family:Calibri;"><a
moz-do-not-send="true"
href="http://www.sdl.com/"
target="_blank"
id="LPlnk689713"
style="text-decoration:none;color:#000001;"><strong
style="font-weight:400;">www.sdl.com</strong></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="white-space:normal;">
<td style="padding:0;vertical-align:top;"
align="left">
<table
style="color:#A1A1A1;font-size:10.67px;font-family:Arial;font-weight:400;font-style:normal;text-align:justify;width:100%;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font-family:Calibri;">SDL PLC
confidential, all rights reserved. If
you are not the intended recipient of
this mail SDL requests and requires that
you delete it without acting upon or
copying any of its contents, and we
further request that you advise us.<br>
SDL PLC is a public limited company
registered in England and Wales.
Registered number: 02675207. <br>
Registered address: <span
style="background-color:transparent;">SDL
PLC, </span>New Globe House, Vanwall
Business Park, Vanwall
Road, Maidenhead, SL6 4UB, U.K.<br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<span style="font-family:remialcxesans;"> </span>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">https://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Radu Coravu
Oxygen XML Editor</pre>
</body>
</html>