Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » URI mapping not including last (empty) segment
URI mapping not including last (empty) segment [message #897036] Fri, 20 July 2012 21:28 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Hi Ed,

I have the following URI mapping:


URI taskDomainsLogicalURI = URI.createURI("http://localhost:8080/nitro/taskDomains/");
URI taskDomainsPhysicalURI = URI.createURI("mongodb://localhost/nitro/task_domains/");
uriConverter.getURIMap().put(taskDomainsLogicalURI, taskDomainsPhysicalURI);


When I attempt to load a resource using the URI: http://localhost:8080/nitro/taskDomains/? it gets normalized to mongodb://localhost/nitro/task_domains?

Is there some magic to get the missing last segment?

[Edited to fix cut/paste oops]

Bryan

[Updated on: Fri, 20 July 2012 21:55]

Report message to a moderator

Re: URI mapping not including last (empty) segment [message #897053 is a reply to message #897036] Sat, 21 July 2012 08:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Bryan,

Yes, this looks like an oversight in the
ExternalURIConverterImpl.normalize method.

On 20/07/2012 11:28 PM, Bryan Hunt wrote:
> Hi Ed,
>
> I have the following URI mapping:
>
>
>
> URI taskDomainsLogicalURI =
> URI.createURI("http://localhost:8080/nitro/taskDomains/");
> URI taskDomainsPhysicalURI =
> URI.createURI("mongodb://localhost/nitro/task_domains/");
> uriConverter.getURIMap().put(taskDomainsLogicalURI,
> taskDomainsPhysicalURI);
>
>
> When I attempt to load a resource using the URI:
> http://localhost:8080/nitro/taskDomains/?* it gets normalized to
> http://localhost:8080/nitro/taskDomains?
>
> Is there some magic to get the missing last segment?
>
> Bryan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: URI mapping not including last (empty) segment [message #897596 is a reply to message #897053] Tue, 24 July 2012 16:21 Go to previous messageGo to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Ed, would you like a bugzilla for this?

Bryan

Ed Merks wrote on Sat, 21 July 2012 03:38

Yes, this looks like an oversight in the
ExternalURIConverterImpl.normalize method.

Re: URI mapping not including last (empty) segment [message #897605 is a reply to message #897596] Tue, 24 July 2012 17:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Bryan,

Yes, I already have the simple fix for it in my workspace.


On 24/07/2012 6:21 PM, Bryan Hunt wrote:
> Ed, would you like a bugzilla for this?
>
> Bryan
>
> Ed Merks wrote on Sat, 21 July 2012 03:38
>> Yes, this looks like an oversight in the
>> ExternalURIConverterImpl.normalize method.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: URI mapping not including last (empty) segment [message #897648 is a reply to message #897605] Tue, 24 July 2012 21:46 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Done. https://bugs.eclipse.org/bugs/show_bug.cgi?id=385897

Ed Merks wrote on Tue, 24 July 2012 12:02
Bryan,

Yes, I already have the simple fix for it in my workspace.


Previous Topic:EMF Validation on EAttributes
Next Topic:Different Drag and Drop prepare methods
Goto Forum:
  


Current Time: Fri Apr 19 15:26:11 GMT 2024

Powered by FUDForum. Page generated in 0.02196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top