Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22597

Error 404 when trying to access language details for "C/C++ Header"

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened (View Workflow)
    • Minor
    • Resolution: Unresolved
    • sloccount-plugin
    • None
    • Jenkins SLOCCount Plug-in 1.18
      Jenkins 1.509.2
      cloc 1.60

    Description

      I'm using SLOCCOunt plugin with cloc for C++ project.

      The cloc program reports *.h files as 'C/C++ Header' language, but SLOCCount plugin fails to properly handle slash character, and generates links to a page:
      http://SERVER_NAME:8080/job/JOB_NAME/50/sloccountResult/languageResult/C/C++%20Header

      which results in the following error 404:

      Status Code: 404
      Exception:
      Stacktrace:

      (none)

      I can see cloc program has few other languages with '/', most probably the plugin will fail for them as well:

      [4]/home/robert> cloc --show-lang | grep /
      ADSO/IDSM (adso)
      C/C++ Header (h, H, hh, hpp)
      Lisp/OpenCL (cl)
      PHP/Pascal (inc)
      Tcl/Tk (itk, tcl, tk)
      [5]/home/robert> cloc --version
      1.60

      Attachments

        Activity

          robbl Robert Luberda created issue -
          mixalturek Michal Turek made changes -
          Field Original Value New Value
          Assignee npiguet [ npiguet ] Michal Turek [ mixalturek ]
          mixalturek Michal Turek made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          mixalturek Michal Turek made changes -
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          mixalturek Michal Turek made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154706 ] JNJira + In-Review [ 207608 ]
          jlpinardon jlpinardon made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]

          People

            mixalturek Michal Turek
            robbl Robert Luberda
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: