JBehave
  1. JBehave
  2. JBEHAVE-877

Navigator can't support special char

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.x
    • Fix Version/s: 4.0
    • Component/s: Navigator
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Hello !

      I'm using the navigator report view and I just tried with stories containing special characters in their name like : my-story#1

      I have a problem here with the "#" char that have to be converted to %23 in the story path for links to work properly.

      The changes I had to do :

      xref.json :

      • change xref.stories.story.path with # to %23

      navigator.html :

      • change from ng-click="showStory(performable.story.path)" to ng-click="showStory(performable.story.path, performable.story.name)"
      • change from <td>performable.story.path</td> to <td>performable.story.name</td>

      angular-controllers.js :

      • change to $scope.showStory = function(storyPath, storyName) {
      • change to title: storyName,

      This is really quick fix from my side, I don't know if there are impacts elsewhere.

      There may be other char that need to be url encoded.

      Thanks for your interest !

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 4.0 [ 18486 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Damien LG
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: