|
Need to be very careful when fixing this as there have been a lot of problems including/exclusing characters from a URL.
I'm fine with changing oscore to fix this.
From investigation - it looks like this hasn't been changed since Hani added it in 2003: 1.1 (hani 11-Jul-03): //If the last chars of urlStr is a '.', ':', '-', '/' or '~' then we exclude those chars. I can't see any test in TextUtilsTest.java that specifically tests this. If you can raise an issue in OSCORE, I'll fix it, and release a new version: Just assign it to me. Cheers, Created new bug at http://jira.opensymphony.com/browse/CORE-76
Mate,
Thought that I'd have time for this, but as usual I bit off more than I can chew. If you create a patch, and attach it to the issue (also create a unit test that verifies the required functionality), I'll commit it to oscore. Cheers, Patch has been prepared. Waiting to see if we can get OSCore revved so we can depend on an official release.
OSCore 2.2.6 has been released:
https://oscore.dev.java.net/servlets/ProjectDocumentList?folderID=8248 Not sure if it is in a maven repo yet. In this maven repo:
http://maven.opensymphony.com/opensymphony/jars/oscore-2.2.6.jar We may want to copy to Atlassian's maven repo. updated dep to oscore 2.2.6 and put it in repository.atlassian.com
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
That is, the HTML source produced is:
This behaviour is only happening in the Text Renderer, not in the Wiki Renderer. The Wiki Renderer correctly includes the minus in the display and in the URL itself.