Results 1 to 5 of 5

Thread: @PathVariable with dots is cut

  1. #1

    Default @PathVariable with dots is cut

    Hi,

    Is there any limitation of using URI that ends with dots?
    For example:
    www.mysite.com/id/10.10.3

    For some reason it seems like that the following controller cuts the last number:

    @RequestMapping(value ="/{uid}" , method=RequestMethod.GET)
    public ModelAndView getByUID(@PathVariable String uid)

    Meaning uid in this example will be "10.10"

    On the other end the following works ok:
    www.mysite.com/id/10.10.3/

    Thanks,
    Guy

  2. #2
    Join Date
    Apr 2008
    Posts
    151

    Default

    Just encountered the same thing

  3. #3
    Join Date
    Apr 2008
    Posts
    151

    Default

    I think this is caused by Spring automatically appending ".*" to the @RequestMapping based URI Templates, so the variable only evaluaes to the first .

    Is there a way to override this?

  4. #4
    Join Date
    Apr 2008
    Posts
    151

    Default

    Any ideas how this can be customized?

  5. #5

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •