{"action":"created","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/1095","repository_url":"https://api.github.com/repos/opnsense/core","labels_url":"https://api.github.com/repos/opnsense/core/issues/1095/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/1095/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/1095/events","html_url":"https://github.com/opnsense/core/issues/1095","id":168644460,"number":1095,"title":"[framework] CertificateField parameters ignored when using multiple fields","user":{"login":"fraenki","id":909706,"avatar_url":"https://avatars.githubusercontent.com/u/909706?v=3","gravatar_id":"","url":"https://api.github.com/users/fraenki","html_url":"https://github.com/fraenki","followers_url":"https://api.github.com/users/fraenki/followers","following_url":"https://api.github.com/users/fraenki/following{/other_user}","gists_url":"https://api.github.com/users/fraenki/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenki/subscriptions","organizations_url":"https://api.github.com/users/fraenki/orgs","repos_url":"https://api.github.com/users/fraenki/repos","events_url":"https://api.github.com/users/fraenki/events{/privacy}","received_events_url":"https://api.github.com/users/fraenki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opnsense/core/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"AdSchellevis","id":9783985,"avatar_url":"https://avatars.githubusercontent.com/u/9783985?v=3","gravatar_id":"","url":"https://api.github.com/users/AdSchellevis","html_url":"https://github.com/AdSchellevis","followers_url":"https://api.github.com/users/AdSchellevis/followers","following_url":"https://api.github.com/users/AdSchellevis/following{/other_user}","gists_url":"https://api.github.com/users/AdSchellevis/gists{/gist_id}","starred_url":"https://api.github.com/users/AdSchellevis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdSchellevis/subscriptions","organizations_url":"https://api.github.com/users/AdSchellevis/orgs","repos_url":"https://api.github.com/users/AdSchellevis/repos","events_url":"https://api.github.com/users/AdSchellevis/events{/privacy}","received_events_url":"https://api.github.com/users/AdSchellevis/received_events","type":"User","site_admin":false},"assignees":[{"login":"AdSchellevis","id":9783985,"avatar_url":"https://avatars.githubusercontent.com/u/9783985?v=3","gravatar_id":"","url":"https://api.github.com/users/AdSchellevis","html_url":"https://github.com/AdSchellevis","followers_url":"https://api.github.com/users/AdSchellevis/followers","following_url":"https://api.github.com/users/AdSchellevis/following{/other_user}","gists_url":"https://api.github.com/users/AdSchellevis/gists{/gist_id}","starred_url":"https://api.github.com/users/AdSchellevis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdSchellevis/subscriptions","organizations_url":"https://api.github.com/users/AdSchellevis/orgs","repos_url":"https://api.github.com/users/AdSchellevis/repos","events_url":"https://api.github.com/users/AdSchellevis/events{/privacy}","received_events_url":"https://api.github.com/users/AdSchellevis/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/opnsense/core/milestones/5","html_url":"https://github.com/opnsense/core/milestones/17.1","labels_url":"https://api.github.com/repos/opnsense/core/milestones/5/labels","id":1782388,"number":5,"title":"17.1","description":"","creator":{"login":"AdSchellevis","id":9783985,"avatar_url":"https://avatars.githubusercontent.com/u/9783985?v=3","gravatar_id":"","url":"https://api.github.com/users/AdSchellevis","html_url":"https://github.com/AdSchellevis","followers_url":"https://api.github.com/users/AdSchellevis/followers","following_url":"https://api.github.com/users/AdSchellevis/following{/other_user}","gists_url":"https://api.github.com/users/AdSchellevis/gists{/gist_id}","starred_url":"https://api.github.com/users/AdSchellevis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdSchellevis/subscriptions","organizations_url":"https://api.github.com/users/AdSchellevis/orgs","repos_url":"https://api.github.com/users/AdSchellevis/repos","events_url":"https://api.github.com/users/AdSchellevis/events{/privacy}","received_events_url":"https://api.github.com/users/AdSchellevis/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":8,"state":"open","created_at":"2016-05-23T10:26:33Z","updated_at":"2016-08-02T19:27:37Z","due_on":"2017-01-25T23:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-01T13:22:11Z","updated_at":"2016-08-02T20:25:58Z","closed_at":"2016-08-02T19:27:37Z","body":"I've tried to use multiple `CertificateField` input fields with different `Type` parameter:\r\n\r\n```\r\n            <sslcertificatetest type=\"CertificateField\">\r\n                <Required>N</Required>\r\n                <Type>cert</Type>\r\n                <ValidationMessage>Please select a valid certificate from the list</ValidationMessage>\r\n            </sslcertificatetest>\r\n            <sslcertificate type=\"CertificateField\">\r\n                <Required>N</Required>\r\n                <Type>ca</Type>\r\n                <ValidationMessage>Please select a valid CA certificate from the list</ValidationMessage>\r\n            </sslcertificate>\r\n```\r\n\r\nExpected result:\r\n- input field `sslcertificatetest` should contain a list of _all_ certificates\r\n- input field `sslcertificate` should contain a list of all *CA* certificates\r\n\r\nActual result:\r\n- both input fields contain a list of all certificates\r\n\r\nNote that when using _only_ the `ca` input field and no `cert` input field anywhere it will contain the expected list of CA certificates (see the Proxy module/plugin for an example)."},"comment":{"url":"https://api.github.com/repos/opnsense/core/issues/comments/237032411","html_url":"https://github.com/opnsense/core/issues/1095#issuecomment-237032411","issue_url":"https://api.github.com/repos/opnsense/core/issues/1095","id":237032411,"user":{"login":"fraenki","id":909706,"avatar_url":"https://avatars.githubusercontent.com/u/909706?v=3","gravatar_id":"","url":"https://api.github.com/users/fraenki","html_url":"https://github.com/fraenki","followers_url":"https://api.github.com/users/fraenki/followers","following_url":"https://api.github.com/users/fraenki/following{/other_user}","gists_url":"https://api.github.com/users/fraenki/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenki/subscriptions","organizations_url":"https://api.github.com/users/fraenki/orgs","repos_url":"https://api.github.com/users/fraenki/repos","events_url":"https://api.github.com/users/fraenki/events{/privacy}","received_events_url":"https://api.github.com/users/fraenki/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T20:25:58Z","updated_at":"2016-08-02T20:25:58Z","body":"Tested, works as expected. Thanks, @AdSchellevis! :+1: "}}
{"actor":{"display_login":"fraenki"}}