)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"dd42befd480503199b6be25042e211acdfa5210a","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The Manila API does not behave properly if it is behind an SSL"},{"line_number":10,"context_line":"termination proxy. If this is the case, the host_url in version"},{"line_number":11,"context_line":"resource are build using http protocal instead of https."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_f90bfd7b","line":11,"updated":"2015-05-06 12:26:11.000000000","message":"s/protocal/protocol/","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The Manila API does not behave properly if it is behind an SSL"},{"line_number":10,"context_line":"termination proxy. If this is the case, the host_url in version"},{"line_number":11,"context_line":"resource are build using http protocal instead of https."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_dd26cdb9","line":11,"in_reply_to":"1aca2d91_f90bfd7b","updated":"2015-05-07 01:43:12.000000000","message":"Done","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"dd42befd480503199b6be25042e211acdfa5210a","unresolved":false,"context_lines":[{"line_number":11,"context_line":"resource are build using http protocal instead of https."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_f982ddc7","line":14,"updated":"2015-05-06 12:26:11.000000000","message":"s/manila/Manila/","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":11,"context_line":"resource are build using http protocal instead of https."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_bd2b1182","line":14,"in_reply_to":"1aca2d91_f982ddc7","updated":"2015-05-07 01:43:12.000000000","message":"Done","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a84693819d44a9bf65afe6ebdb2ccbfccdc9005f","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I2dac983481718e6d639453e3f03f41baf8cea56d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_d9d5e1b9","line":15,"updated":"2015-05-06 12:28:52.000000000","message":"s/ip/IP/\n\ns/enble/enable/","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I2dac983481718e6d639453e3f03f41baf8cea56d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_9d20559d","line":15,"in_reply_to":"1aca2d91_d9d5e1b9","updated":"2015-05-07 01:43:12.000000000","message":"Done","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"dd42befd480503199b6be25042e211acdfa5210a","unresolved":false,"context_lines":[{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I2dac983481718e6d639453e3f03f41baf8cea56d"},{"line_number":19,"context_line":"Closes-Bug: #1384379"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_d98721d6","line":16,"updated":"2015-05-06 12:26:11.000000000","message":"s/manila/Manila/","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":13,"context_line":"To handle to correct host_url with proxy, first, we should enable"},{"line_number":14,"context_line":"X-Forwarded-Host in proxy so that manila can get the right client"},{"line_number":15,"context_line":"ip. Second, we should enble X-Forwarded-Proto, with the new SSL"},{"line_number":16,"context_line":"middleware, manila can get original protocol."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I2dac983481718e6d639453e3f03f41baf8cea56d"},{"line_number":19,"context_line":"Closes-Bug: #1384379"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aca2d91_5d3bddd1","line":16,"in_reply_to":"1aca2d91_d98721d6","updated":"2015-05-07 01:43:12.000000000","message":"Thank you very much!","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"}],"manila/api/middleware/ssl.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a84693819d44a9bf65afe6ebdb2ccbfccdc9005f","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"class SSLMiddleware(wsgi.Middleware):"},{"line_number":19,"context_line":"    \"\"\"A middleware that replaces the request wsgi.url_scheme environment"},{"line_number":20,"context_line":"    variable with the value of HTTP header configured in"},{"line_number":21,"context_line":"    secure_proxy_ssl_header if exists in the incoming request."},{"line_number":22,"context_line":"    This is useful if the server is behind a SSL termination proxy."}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_142b2084","line":19,"updated":"2015-05-06 12:28:52.000000000","message":"Docstring should have one-line topic and then description body, see: http://docs.openstack.org/developer/hacking/#docstrings","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"class SSLMiddleware(wsgi.Middleware):"},{"line_number":19,"context_line":"    \"\"\"A middleware that replaces the request wsgi.url_scheme environment"},{"line_number":20,"context_line":"    variable with the value of HTTP header configured in"},{"line_number":21,"context_line":"    secure_proxy_ssl_header if exists in the incoming request."},{"line_number":22,"context_line":"    This is useful if the server is behind a SSL termination proxy."}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_fd1aa96d","line":19,"in_reply_to":"1aca2d91_142b2084","updated":"2015-05-07 01:43:12.000000000","message":"OK, thank you very much!","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"54cafbd183048d69c01ff111e905acafdb0a4a72","unresolved":false,"context_lines":[{"line_number":17,"context_line":"ssl_middleware_opts \u003d ["},{"line_number":18,"context_line":"    cfg.StrOpt(\u0027secure_proxy_ssl_header\u0027,"},{"line_number":19,"context_line":"               default\u003d\u0027X-Forwarded-Proto\u0027,"},{"line_number":20,"context_line":"               help\u003d\u0027The HTTP Header that will be used to determine which \u0027"},{"line_number":21,"context_line":"                    \u0027the original request protocol scheme was, even if it \u0027"},{"line_number":22,"context_line":"                    \u0027was removed by an SSL terminator proxy.\u0027),"},{"line_number":23,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aca2d91_d77ea1ad","line":20,"updated":"2015-05-07 09:44:21.000000000","message":"Header -\u003e header","commit_id":"bb5e06ae7892aaf304a6498930f995187d80767d"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"5931ab6c9793c7390956c69fb70fa89e7937b93c","unresolved":false,"context_lines":[{"line_number":17,"context_line":"ssl_middleware_opts \u003d ["},{"line_number":18,"context_line":"    cfg.StrOpt(\u0027secure_proxy_ssl_header\u0027,"},{"line_number":19,"context_line":"               default\u003d\u0027X-Forwarded-Proto\u0027,"},{"line_number":20,"context_line":"               help\u003d\u0027The HTTP Header that will be used to determine which \u0027"},{"line_number":21,"context_line":"                    \u0027the original request protocol scheme was, even if it \u0027"},{"line_number":22,"context_line":"                    \u0027was removed by an SSL terminator proxy.\u0027),"},{"line_number":23,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aca2d91_1b932351","line":20,"in_reply_to":"1aca2d91_d77ea1ad","updated":"2015-05-07 09:55:01.000000000","message":"Done","commit_id":"bb5e06ae7892aaf304a6498930f995187d80767d"}],"manila/common/config.py":[{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"dd42befd480503199b6be25042e211acdfa5210a","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                help\u003d\"Specify list of protocols to be allowed for share \""},{"line_number":172,"context_line":"                     \"creation. Available values are \u0027%s\u0027\" % six.text_type("},{"line_number":173,"context_line":"                         constants.SUPPORTED_SHARE_PROTOCOLS)),"},{"line_number":174,"context_line":"    cfg.StrOpt(\u0027secure_proxy_ssl_header\u0027,"},{"line_number":175,"context_line":"               default\u003d\u0027X-Forwarded-Proto\u0027,"},{"line_number":176,"context_line":"               help\u003d\u0027The HTTP Header that will be used to determine which \u0027"},{"line_number":177,"context_line":"                    \u0027the original request protocol scheme was, even if it \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_d948418a","line":174,"updated":"2015-05-06 12:26:11.000000000","message":"Why isn\u0027t this option in the new middleware/ssl.py file? And then added to the opts.py file? There\u0027s an example from heat in this bug report: https://bugs.launchpad.net/oslo.middleware/+bug/1444490","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                help\u003d\"Specify list of protocols to be allowed for share \""},{"line_number":172,"context_line":"                     \"creation. Available values are \u0027%s\u0027\" % six.text_type("},{"line_number":173,"context_line":"                         constants.SUPPORTED_SHARE_PROTOCOLS)),"},{"line_number":174,"context_line":"    cfg.StrOpt(\u0027secure_proxy_ssl_header\u0027,"},{"line_number":175,"context_line":"               default\u003d\u0027X-Forwarded-Proto\u0027,"},{"line_number":176,"context_line":"               help\u003d\u0027The HTTP Header that will be used to determine which \u0027"},{"line_number":177,"context_line":"                    \u0027the original request protocol scheme was, even if it \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_7d0e9935","line":174,"in_reply_to":"1aca2d91_d948418a","updated":"2015-05-07 01:43:12.000000000","message":"Done","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"}],"manila/tests/api/middleware/test_ssl_middleware.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a84693819d44a9bf65afe6ebdb2ccbfccdc9005f","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class SSLMiddlewareTest(test.TestCase):"},{"line_number":25,"context_line":"    scenarios \u003d [(\u0027with_forwarded_proto_default_header\u0027,"},{"line_number":26,"context_line":"                  dict(forwarded_protocal\u003d\u0027https\u0027,"},{"line_number":27,"context_line":"                       secure_proxy_ssl_header\u003dNone,"},{"line_number":28,"context_line":"                       headers\u003d{\u0027X-Forwarded-Proto\u0027: \u0027https\u0027})),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_9909a934","line":25,"updated":"2015-05-06 12:28:52.000000000","message":"Where \"scenarios\" is used?","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"dd42befd480503199b6be25042e211acdfa5210a","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class SSLMiddlewareTest(test.TestCase):"},{"line_number":25,"context_line":"    scenarios \u003d [(\u0027with_forwarded_proto_default_header\u0027,"},{"line_number":26,"context_line":"                  dict(forwarded_protocal\u003d\u0027https\u0027,"},{"line_number":27,"context_line":"                       secure_proxy_ssl_header\u003dNone,"},{"line_number":28,"context_line":"                       headers\u003d{\u0027X-Forwarded-Proto\u0027: \u0027https\u0027})),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_b90c6543","line":25,"updated":"2015-05-06 12:26:11.000000000","message":"is this variable somewhere used? Maybe you want to use ddt?","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class SSLMiddlewareTest(test.TestCase):"},{"line_number":25,"context_line":"    scenarios \u003d [(\u0027with_forwarded_proto_default_header\u0027,"},{"line_number":26,"context_line":"                  dict(forwarded_protocal\u003d\u0027https\u0027,"},{"line_number":27,"context_line":"                       secure_proxy_ssl_header\u003dNone,"},{"line_number":28,"context_line":"                       headers\u003d{\u0027X-Forwarded-Proto\u0027: \u0027https\u0027})),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_f263f818","line":25,"in_reply_to":"1aca2d91_9909a934","updated":"2015-05-07 01:43:12.000000000","message":"I will remove this.","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"ad23f5dbca606ef679e6b2637a33138dc0f4af91","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class SSLMiddlewareTest(test.TestCase):"},{"line_number":25,"context_line":"    scenarios \u003d [(\u0027with_forwarded_proto_default_header\u0027,"},{"line_number":26,"context_line":"                  dict(forwarded_protocal\u003d\u0027https\u0027,"},{"line_number":27,"context_line":"                       secure_proxy_ssl_header\u003dNone,"},{"line_number":28,"context_line":"                       headers\u003d{\u0027X-Forwarded-Proto\u0027: \u0027https\u0027})),"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aca2d91_32abb01f","line":25,"in_reply_to":"1aca2d91_b90c6543","updated":"2015-05-07 01:43:12.000000000","message":"Sorry, my mistake and I will remove this.","commit_id":"981fe80a0e947cbcd3aea7cf65ff75615fa7ba58"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"54cafbd183048d69c01ff111e905acafdb0a4a72","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack, LLC"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aca2d91_974f0992","line":1,"updated":"2015-05-07 09:44:21.000000000","message":"2015?","commit_id":"bb5e06ae7892aaf304a6498930f995187d80767d"},{"author":{"_account_id":12929,"name":"Deliang Fan","email":"vanderliang@gmail.com","username":"DeliangFan"},"change_message_id":"5931ab6c9793c7390956c69fb70fa89e7937b93c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack, LLC"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"1aca2d91_bba42fa6","line":1,"in_reply_to":"1aca2d91_974f0992","updated":"2015-05-07 09:55:01.000000000","message":"OK, thank you!","commit_id":"bb5e06ae7892aaf304a6498930f995187d80767d"}]}
