Issue with custom protocol handler and href with dots

Hi I noticed that when a reference has dots in it oXygen never asks my Custom Protocol Handler to resolve it. I have an image tag that looks as followed: <image href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"/> When I put a breakpoint on the openConnection(URL url) method I don't see any request coming in to resolve this reference. If I put ".jpg" at the end of this reference for example I can see a request coming in. Cheers Jan Bevers | Developer | SDL | Content Management Technologies Division | +32 (0)15 400 970 | jbevers@sdl.com [image001] </pre><font face="arial" size="2" color="#736F6E"> <a href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature"> <img src="http://www.sdl.com/Content/themes/common/images/SDL_logo_strapline_GCEM_Emai..." border=0><br><br>www.sdl.com </a><br><br> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> 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: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> This message has been scanned for malware by Websense. www.websense.com

Hi Jan, So in this particular case Oxygen displays a missing image place-holder, right? I created a simple JPEG image and renamed it to "GUID.7A23068F.1C34.46A2.849F.91FF00B9D586", then in a DITA topic opened via a very simple custom protocol implementation I referred to it:
<image href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"/>
It works for me, Oxygen calls the custom protocol and the image is resolved in it and displayed by Oxygen. Could you test this issue on the local disk drive having an image file named "GUID.7A23068F.1C34.46A2.849F.91FF00B9D586" and referring to it from a local DITA topic? Maybe your other API implementations interfere with this. Did you add a RelativeReferenceResolver customizer via the API? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/9/2014 6:28 PM, Jan Bevers wrote:
Hi
I noticed that when a reference has dots in it oXygen never asks my Custom Protocol Handler to resolve it.
I have an image tag that looks as followed:
<imagehref="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"/>
When I put a breakpoint on the openConnection(URL url) method I don’t see any request coming in to resolve this reference. If I put “.jpg” at the end of this reference for example I can see a request coming in.
Cheers
*Jan Bevers |* Developer *|*SDL *| *Content Management Technologies Division *| *+32 (0)15 400 970*|* jbevers@sdl.com image001
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature>
*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. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk

Hi Radu Sorry my mistake. The issue was in my code. I'm using a RelativeReferenceResolver in my implementation which was interfering. I was relying on the FilenameUtils.getExtension method to check if the reference was resolved. This was not the best option off course as our identifiers can have dots in it. I've replaced this part to be more smart and know it works fine. Thx for pointing me out. Cheers Jan -----Original Message----- From: oxygen-sdk-bounces@oxygenxml.com [mailto:oxygen-sdk-bounces@oxygenxml.com] On Behalf Of Oxygen XML Editor Support Sent: vrijdag 10 januari 2014 9:03 To: oxygen-sdk@oxygenxml.com Subject: Re: [oXygen-sdk] Issue with custom protocol handler and href with dots Hi Jan, So in this particular case Oxygen displays a missing image place-holder, right? I created a simple JPEG image and renamed it to "GUID.7A23068F.1C34.46A2.849F.91FF00B9D586", then in a DITA topic opened via a very simple custom protocol implementation I referred to it:
<image href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"/>
It works for me, Oxygen calls the custom protocol and the image is resolved in it and displayed by Oxygen. Could you test this issue on the local disk drive having an image file named "GUID.7A23068F.1C34.46A2.849F.91FF00B9D586" and referring to it from a local DITA topic? Maybe your other API implementations interfere with this. Did you add a RelativeReferenceResolver customizer via the API? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/9/2014 6:28 PM, Jan Bevers wrote:
Hi
I noticed that when a reference has dots in it oXygen never asks my Custom Protocol Handler to resolve it.
I have an image tag that looks as followed:
<imagehref="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"/>
When I put a breakpoint on the openConnection(URL url) method I don't see any request coming in to resolve this reference. If I put ".jpg" at the end of this reference for example I can see a request coming in.
Cheers
*Jan Bevers |* Developer *|*SDL *| *Content Management Technologies Division *| *+32 (0)15 400 970*|* jbevers@sdl.com image001
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm _campaign=SDL%2BStandard%2BEmail%2BSignature>
*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. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
participants (2)
-
Jan Bevers
-
Oxygen XML Editor Support