{"action":"created","issue":{"url":"https://api.github.com/repos/mapfish/mapfish-print/issues/228","labels_url":"https://api.github.com/repos/mapfish/mapfish-print/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/mapfish/mapfish-print/issues/228/comments","events_url":"https://api.github.com/repos/mapfish/mapfish-print/issues/228/events","html_url":"https://github.com/mapfish/mapfish-print/issues/228","id":68894521,"number":228,"title":"Incompatibility issue between related file to config and `useHttpForHttps`","user":{"login":"sbrunner","id":353872,"avatar_url":"https://avatars.githubusercontent.com/u/353872?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrunner","html_url":"https://github.com/sbrunner","followers_url":"https://api.github.com/users/sbrunner/followers","following_url":"https://api.github.com/users/sbrunner/following{/other_user}","gists_url":"https://api.github.com/users/sbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrunner/subscriptions","organizations_url":"https://api.github.com/users/sbrunner/orgs","repos_url":"https://api.github.com/users/sbrunner/repos","events_url":"https://api.github.com/users/sbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/sbrunner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapfish/mapfish-print/labels/Required%20for%20GeoMapFish%201.6","name":"Required for GeoMapFish 1.6","color":"e11d21"},{"url":"https://api.github.com/repos/mapfish/mapfish-print/labels/V3","name":"V3","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-16T10:28:21Z","updated_at":"2015-05-12T08:55:54Z","closed_at":null,"body":"Config:\r\n```\r\n        attributes:\r\n            northArrow: !northArrow\r\n                size: 40\r\n                default:\r\n                    graphic: \"north.svg\"\r\n            ...\r\n        processors:\r\n        ...\r\n        - !configureHttpRequests\r\n            httpProcessors:\r\n            - !mapUri\r\n                mapping:\r\n                    ([htps]+)://geomapfish.demo-camptocamp.com/(.*): \"$1://127.0.0.1/$2\"\r\n            - !useHttpForHttps\r\n                hosts:\r\n                - geomapfish.demo-camptocamp.com\r\n                portMapping:\r\n                    443: 80\r\n            - !forwardHeaders\r\n                headers:\r\n                - Cookie\r\n                - Host\r\n                - Referrer\r\n        ...\r\n        - !createNorthArrow {}\r\n        ...\r\n```\r\nLogs:\r\n```\r\n...\r\nCaused by: java.lang.NullPointerException: null\r\n        at org.mapfish.print.processor.http.UseHttpForHttpsProcessor$1.createRequest(UseHttpForHttpsProcessor.java:87) ~[UseHttpForHttpsProcessor$1.class:na]\r\n        at org.mapfish.print.http.AbstractMfClientHttpRequestFactoryWrapper.createRequest(AbstractMfClientHttpRequestFactoryWrapper.java:57) ~[AbstractMfClientHttpRequestFactoryWrapper.class:na]\r\n        at org.mapfish.print.processor.http.MapUriProcessor$1.createRequest(MapUriProcessor.java:87) ~[MapUriProcessor$1.class:na]\r\n        at org.mapfish.print.http.AbstractMfClientHttpRequestFactoryWrapper.createRequest(AbstractMfClientHttpRequestFactoryWrapper.java:57) ~[AbstractMfClientHttpRequestFactoryWrapper.class:na]\r\n        at org.mapfish.print.processor.map.NorthArrowGraphic.loadGraphic(NorthArrowGraphic.java:124) ~[NorthArrowGraphic.class:na]\r\n        at org.mapfish.print.processor.map.NorthArrowGraphic.create(NorthArrowGraphic.java:95) ~[NorthArrowGraphic.class:na]\r\n        at org.mapfish.print.processor.map.CreateNorthArrowProcessor.execute(CreateNorthArrowProcessor.java:95) ~[CreateNorthArrowProcessor.class:na]\r\n        at org.mapfish.print.processor.map.CreateNorthArrowProcessor.execute(CreateNorthArrowProcessor.java:68) ~[CreateNorthArrowProcessor.class:na]\r\n        at org.mapfish.print.processor.ProcessorGraphNode$ProcessorNodeForkJoinTask.compute(ProcessorGraphNode.java:210) ~[ProcessorGraphNode$ProcessorNodeForkJoinTask.class:na]\r\n        ... 7 common frames omitted\r\n```"},"comment":{"url":"https://api.github.com/repos/mapfish/mapfish-print/issues/comments/101197941","html_url":"https://github.com/mapfish/mapfish-print/issues/228#issuecomment-101197941","issue_url":"https://api.github.com/repos/mapfish/mapfish-print/issues/228","id":101197941,"user":{"login":"sbrunner","id":353872,"avatar_url":"https://avatars.githubusercontent.com/u/353872?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrunner","html_url":"https://github.com/sbrunner","followers_url":"https://api.github.com/users/sbrunner/followers","following_url":"https://api.github.com/users/sbrunner/following{/other_user}","gists_url":"https://api.github.com/users/sbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrunner/subscriptions","organizations_url":"https://api.github.com/users/sbrunner/orgs","repos_url":"https://api.github.com/users/sbrunner/repos","events_url":"https://api.github.com/users/sbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/sbrunner/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T08:55:54Z","updated_at":"2015-05-12T08:55:54Z","body":"Config:\r\n```\r\nthrowErrorOnExtraParameters: true\r\n\r\ntemplates:\r\n    A4 portrait: !template\r\n        reportTemplate: A4_Portrait.jrxml\r\n        attributes:\r\n            title: !string\r\n                default: \"\"\r\n            comments: !string\r\n                default: \"\"\r\n            debug: !integer\r\n                default: 0\r\n            legend: !legend {}\r\n            northArrow: !northArrow\r\n                size: 40\r\n                default:\r\n                    graphic: \"north.svg\"\r\n            scalebar: !scalebar\r\n                width: 150\r\n                height: 20\r\n                default:\r\n                     fontSize: 8\r\n            map: !map\r\n                maxDpi: 254\r\n                dpiSuggestions: [254]\r\n                zoomLevels: !zoomLevels\r\n                    scales: [100, 250, 500, 2500, 5000, 10000, 25000, 50000, 100000, 500000]\r\n                width: 555\r\n                height: 675\r\n            datasource: !datasource\r\n                attributes:\r\n                    title: !string {}\r\n                    table: !table {}\r\n\r\n        processors:\r\n        - !reportBuilder # compile all reports in current directory\r\n            directory: '.'\r\n        - !configureHttpRequests\r\n            httpProcessors:\r\n            - !mapUri\r\n                mapping:\r\n                    ([htps])://geomapfish.demo-camptocamp.com/(.*): \"$1://127.0.0.1/$2\"\r\n            - !useHttpForHttps\r\n                hosts:\r\n                - geomapfish.demo-camptocamp.com\r\n                portMapping:\r\n                    443: 80\r\n            - !forwardHeaders\r\n                headers:\r\n                - Cookie\r\n                - Host\r\n                - Referrer\r\n        - !prepareLegend\r\n            template: legend.jrxml\r\n        - !createNorthArrow {}\r\n        - !createScalebar {}\r\n        - !createMap {}\r\n        - !createDataSource\r\n            processors:\r\n            - !prepareTable\r\n                dynamic: true\r\n                columns:\r\n                    icon: !urlImage\r\n                        urlExtractor: (.*)\r\n                        urlGroup: 1\r\n```\r\nSpec:\r\n```\r\n{\"layout\":\"A4 portrait\",\"outputFormat\":\"pdf\",\"attributes\":{\"title\":\"\",\"comments\":\"\",\"debug\":\"0\",\"datasource\":[],\"map\":{\"projection\":\"EPSG:21781\",\"dpi\":254,\"rotation\":0,\"center\":[542000,154000],\"scale\":100000,\"longitudeFirst\":true,\"layers\":[{\"baseURL\":\"http://geomapfish.demo-camptocamp.com/1.6/wsgi/mapserv_proxy\",\"opacity\":1,\"type\":\"wms\",\"layers\":[\"fuel\"],\"imageFormat\":\"image/png\",\"styles\":[\"\"],\"customParams\":{\"TRANSPARENT\":true}},{\"baseURL\":\"http://ows.asitvd.ch/wmts/1.0.0/asitvd.fond_couleur/default/{DIM1}/{ELEVATION}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png\",\"opacity\":1,\"type\":\"wmts\",\"layer\":\"asitvd.fond_couleur\",\"version\":\"1.0.0\",\"requestEncoding\":\"REST\",\"style\":\"default\",\"dimensions\":[\"DIM1\",\"ELEVATION\"],\"dimensionParams\":{\"DIM1\":\"default\",\"ELEVATION\":\"0\"},\"matrixSet\":\"21781\",\"imageFormat\":\"image/png\",\"matrices\":[{\"identifier\":0,\"matrixSize\":[1,1],\"scaleDenominator\":14285714.285714287,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":1,\"matrixSize\":[1,1],\"scaleDenominator\":13392857.142857142,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":2,\"matrixSize\":[1,1],\"scaleDenominator\":12500000,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":3,\"matrixSize\":[1,1],\"scaleDenominator\":11607142.857142856,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":4,\"matrixSize\":[1,1],\"scaleDenominator\":10714285.714285713,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":5,\"matrixSize\":[1,1],\"scaleDenominator\":9821428.571428573,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":6,\"matrixSize\":[1,1],\"scaleDenominator\":8928571.428571427,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":7,\"matrixSize\":[1,1],\"scaleDenominator\":8035714.285714286,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":8,\"matrixSize\":[1,1],\"scaleDenominator\":7142857.142857144,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":9,\"matrixSize\":[2,1],\"scaleDenominator\":6250000,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":10,\"matrixSize\":[2,1],\"scaleDenominator\":5357142.857142856,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":11,\"matrixSize\":[2,1],\"scaleDenominator\":4464285.714285714,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":12,\"matrixSize\":[2,2],\"scaleDenominator\":3571428.571428572,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":13,\"matrixSize\":[3,2],\"scaleDenominator\":2678571.428571428,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":14,\"matrixSize\":[3,2],\"scaleDenominator\":2321428.571428572,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":15,\"matrixSize\":[4,3],\"scaleDenominator\":1785714.285714286,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":16,\"matrixSize\":[8,5],\"scaleDenominator\":892857.142857143,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":17,\"matrixSize\":[19,13],\"scaleDenominator\":357142.85714285716,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":18,\"matrixSize\":[38,25],\"scaleDenominator\":178571.42857142858,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":19,\"matrixSize\":[94,63],\"scaleDenominator\":71428.57142857143,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":20,\"matrixSize\":[188,125],\"scaleDenominator\":35714.28571428572,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":21,\"matrixSize\":[375,250],\"scaleDenominator\":17857.14285714286,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":22,\"matrixSize\":[750,500],\"scaleDenominator\":8928.57142857143,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":23,\"matrixSize\":[938,625],\"scaleDenominator\":7142.857142857143,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":24,\"matrixSize\":[1250,834],\"scaleDenominator\":5357.142857142858,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":25,\"matrixSize\":[1875,1250],\"scaleDenominator\":3571.4285714285716,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":26,\"matrixSize\":[3750,2500],\"scaleDenominator\":1785.7142857142858,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":27,\"matrixSize\":[7500,5000],\"scaleDenominator\":892.8571428571429,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":28,\"matrixSize\":[18750,12500],\"scaleDenominator\":357.14285714285717,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]},{\"identifier\":29,\"matrixSize\":[37500,25000],\"scaleDenominator\":178.57142857142858,\"tileSize\":[256,256],\"topLeftCorner\":[420000,350000]}]}]},\"legend\":{\"classes\":[{\"name\":\"\",\"classes\":[{\"name\":\"fuel\",\"icons\":[\"http://geomapfish.demo-camptocamp.com/1.6/wsgi/mapserv_proxy?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=fuel&FORMAT=image%2Fpng&SCALE=100000\"]}]}]}}}\r\n```"}}