You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/08/04 15:16:00 UTC

[jira] [Commented] (DISPATCH-1737) Policy config parse errors report wrong line and column numbers

    [ https://issues.apache.org/jira/browse/DISPATCH-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17170866#comment-17170866 ] 

ASF subversion and git services commented on DISPATCH-1737:
-----------------------------------------------------------

Commit 578164f5ed4b84eeb31c71148cb3ba4843451248 in qpid-dispatch's branch refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=578164f ]

DISPATCH-1737: Log config file json as-modified when json parse fails

When config file json parsing fails then the parser prints a line and
column number of the offending input. Since the original input is modified
by the config process the reported line and column numbers are not useful.

This patch logs the input that json was given when parsing fails.
The parser failure line and column numbers directly relate to logged
json input lines and syntax errors may be identifed with some authority.

This closes #808


> Policy config parse errors report wrong line and column numbers 
> ----------------------------------------------------------------
>
>                 Key: DISPATCH-1737
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1737
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Management Agent
>    Affects Versions: 1.12.0
>            Reporter: Charles E. Rolke
>            Assignee: Charles E. Rolke
>            Priority: Major
>
> Config files may be written in _router config_ format or _json_ format. Either way the file data is reorganized internally into _json_ format. After the data is reorganized then the original text formatting is lost. If there is a json parse error then the json errors showing line and column numbers are for the reformatted text and can not be correlated to the original input.
> This issue adds error logs in the event of a config parse error. The logs show the config data as it was presented to the json parser. Users may then see specifically where the config parsing failed with respect to their original input.
> This issue is different from DISPATCH-1707. Fixing this issue will aid in debugging and fixing that issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org