Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • ocserv ocserv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 80
    • Issues 80
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenConnect VPN projectsOpenConnect VPN projects
  • ocservocserv
  • Issues
  • #220
Closed
Open
Issue created Aug 27, 2019 by Edwin Nathaniel@enathaniel-ib

Invalid JSON structure - trailing comma

Hi folks,

I noticed that some of the occtl commands return invalid JSON structure. Here are some of them:

  • show session all/valid
  • show status
{
    "Status":  "online",
    "Server PID":  3772,
    "Sec-mod PID":  3773
    "Up since":  "2019-08-27 00:04",
    "_Up since":  "   35s",
    "Active sessions":  0,
    "Total sessions":  0,
    "Total authentication failures":  0,
    "IPs in ban list":  0,
    "Last stats reset":  "2019-08-27 00:04",
    "_Last stats reset":  "   35s",
    "Sessions handled":  0,
    "Timed out sessions":  0,
    "Timed out (idle) sessions":  0,
    "Closed due to error sessions":  0,
    "Authentication failures":  0,
    "Average auth time":  "    0s",
    "Max auth time":  "    0s",
    "Average session time":  "    0s",
    "Max session time":  "    0s",
    "RX":  "0 bytes",
    "TX":  "0 bytes",
  }

These commands returns a JSON structure with trailing comma and this caused a JSON processor not able to process it.

Edited Aug 27, 2019 by Edwin Nathaniel
Assignee
Assign to
Time tracking