Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-13178

Uninformative error messages in case of .sock file path being too long

    XMLWordPrintable

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 23, Sprint 24
    • Story Points:
      0.25

      Description

      Steps to reproduce:

      1. Put a long SocketDir in server or proxy configuration file
      2. Try to start Zabbix

      Result:
      In case ipc_make_path() fails users will see "Invalid service name ..." error messages in the log file:

      if (NULL == (socket_path = ipc_make_path(service_name)))
      {
      	*error = zbx_dsprintf(*error, "Invalid service name \"%s\".", service_name);
      	goto out;
      }
      

      Expected:
      What is actually a problem is that a generated socket file path proved to be too long:

       * Return value: The created path or NULL if the path exceeds unix domain     *
       *               socket path maximum length                                   *
       *                                                                            *
       ******************************************************************************/
      static const char	*ipc_make_path(const char *service_name)
      

        Attachments

          Activity

            People

            Assignee:
            MVekslers Michael Veksler
            Reporter:
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: