{"action":"closed","issue":{"url":"https://api.github.com/repos/vernemq/vernemq/issues/964","repository_url":"https://api.github.com/repos/vernemq/vernemq","labels_url":"https://api.github.com/repos/vernemq/vernemq/issues/964/labels{/name}","comments_url":"https://api.github.com/repos/vernemq/vernemq/issues/964/comments","events_url":"https://api.github.com/repos/vernemq/vernemq/issues/964/events","html_url":"https://github.com/vernemq/vernemq/issues/964","id":381937152,"node_id":"MDU6SXNzdWUzODE5MzcxNTI=","number":964,"title":"Impossible to modify or add MQTT v5 properties","user":{"login":"manifest","id":439058,"node_id":"MDQ6VXNlcjQzOTA1OA==","avatar_url":"https://avatars1.githubusercontent.com/u/439058?v=4","gravatar_id":"","url":"https://api.github.com/users/manifest","html_url":"https://github.com/manifest","followers_url":"https://api.github.com/users/manifest/followers","following_url":"https://api.github.com/users/manifest/following{/other_user}","gists_url":"https://api.github.com/users/manifest/gists{/gist_id}","starred_url":"https://api.github.com/users/manifest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manifest/subscriptions","organizations_url":"https://api.github.com/users/manifest/orgs","repos_url":"https://api.github.com/users/manifest/repos","events_url":"https://api.github.com/users/manifest/events{/privacy}","received_events_url":"https://api.github.com/users/manifest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-18T07:44:55Z","updated_at":"2018-11-19T18:19:01Z","closed_at":"2018-11-19T18:19:01Z","author_association":"CONTRIBUTOR","body":"At the moment it is impossible to modify or add MQTT v5 properties from a publish hook.\r\nThere is an example:\r\n\r\n```erlang\r\nauth_on_publish_m5(\r\n    _Username,  _SubscriberId,\r\n    _QoS, _Topic, Payload, _IsRetain, _Properties) ->\r\n\r\n     {ok, #{user_property => [{<<\"prop-key\">>, <<\"prop-val\">>}]}}.\r\n```\r\n\r\nThere is a [PR](https://github.com/vernemq/vernemq/pull/963) with fix.\r\n\r\n\r\n\r\n### Environment\r\n\r\n- VerneMQ Version: master (8dfafc0)\r\n- OS: Ubuntu 18.04\r\n- Erlang/OTP version (if building from source): 20.3\r\n- VerneMQ configuration (vernemq.conf) or the changes from the default\r\n\r\n### Expected behavior\r\n\r\nModified MQTT v5 properties will be send.\r\n\r\n### Actual behaviour\r\n\r\nOriginal MQTT v5 properties are sent.\r\n"}}
{"actor":{"display_login":"larshesel"}}