Page 1 of 1

FIXED - FastTrack not compatible with Windows authentication

Posted: Thu Mar 08, 2007 2:01 pm
by awilkins
If you use FastTrack with a repository running on Apache/Windows, using mod_sspi for authentication, you can succesfully share the tracker project into the respository, but you cannot subsequently create a WorkItem as it produces the exception below.

This is due to the presence of the backslash character in the NTLM username required for authentication on the server. You cannot use Windows authentication without it, alas, which is a shame because we are using it for all our other repositories.

The subterra package is attempting to construct a java.net.URI instance using a string containing this raw backslash without escaping it. I tried the most obvious workaround of escaping the backslash in the .svnRepositories file in my eclipse .metadata, but this just caused the plugin to trash the file.

There's a reasonably nice example in org.tmatesoft.svn.core.internal.util.SVNEncodingUtil of a table of permissible characters for the URI class.

Code: Select all

Product: FastTrack

Version: 1.0.0, build:20061008-1657
 , Subversive:1.0.3

From: Adrian Wilkins (NHS Connecting for Health) <Adrian Wilkins>

User comment:
[empty]

Plug-in ID: org.eclipse.core.runtime

java.lang.RuntimeException: INTERNAL ERROR
java.lang.RuntimeException: INTERNAL ERROR
   at com.polarion.subterra.base.SubterraURI.createURI(SubterraURI.java:154)
   at com.polarion.subterra.base.SubterraURI.<init>(SubterraURI.java:71)
   at com.polarion.subterra.base.SubterraURI.getSubterraURI(SubterraURI.java:101)
   at com.polarion.subterra.base.data.identification.a.a(a.java:156)
   at com.polarion.tracker.core.impl.api.services.a.b(a.java:64)
   at com.polarion.tracker.core.helper.e.a(e.java:115)
   at com.polarion.tracker.core.helper.e.a(e.java:62)
   at com.polarion.tracker.ui.wizards.c.a(c.java:137)
   at com.polarion.tracker.ui.wizards.c.a(c.java:30)
   at com.polarion.tracker.ui.wizards.a.run(a.java:94)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 48:
subterra:data-service:objects:$~123User~125NPFIT\adwi2
   at java.net.URI$Parser.fail(Unknown Source)
   at java.net.URI$Parser.checkChars(Unknown Source)
   at java.net.URI$Parser.parse(Unknown Source)
   at java.net.URI.<init>(Unknown Source)
   at com.polarion.subterra.base.SubterraURI.createURI(SubterraURI.java:152)
   ... 10 more

FIXED

Posted: Wed Mar 14, 2007 3:26 pm
by awilkins
I can confirm that this bug appears to be fixed in FastTrack 1.1.0

Hooray!