{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164/events","html_url":"https://github.com/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164","id":128917231,"number":164,"title":"ASYNC jetty9-compat image - Incorrect URL generated in a compat image for login","user":{"login":"lesv","id":1136014,"avatar_url":"https://avatars.githubusercontent.com/u/1136014?v=3","gravatar_id":"","url":"https://api.github.com/users/lesv","html_url":"https://github.com/lesv","followers_url":"https://api.github.com/users/lesv/followers","following_url":"https://api.github.com/users/lesv/following{/other_user}","gists_url":"https://api.github.com/users/lesv/gists{/gist_id}","starred_url":"https://api.github.com/users/lesv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesv/subscriptions","organizations_url":"https://api.github.com/users/lesv/orgs","repos_url":"https://api.github.com/users/lesv/repos","events_url":"https://api.github.com/users/lesv/events{/privacy}","received_events_url":"https://api.github.com/users/lesv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-01-26T19:25:07Z","updated_at":"2016-02-22T18:22:23Z","closed_at":null,"body":"https://accounts.google.com/ServiceLogin?\r\nservice=ah\r\n&passive=true\r\n&continue=https%3A%2F%2Fappengine.google.com%2F_ah%2Fconflogin%3Fcontinue%3Dhttp%3A%2F%2F0.20160126t110119.lesv-004.appspot.com%2Fguestbook.jsp\r\n&ltmpl=gm\r\n&shdf=ChQLEgZxxxxxxxxxxx\r\n\r\n1. Using https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras/\r\n2. `cd stage3; mvn gcloud:deploy`; visit site - logout, login note URL's.\r\nhttps://accounts.google.com/ServiceLogin?\r\nservice=ah\r\n&passive=true\r\n&continue=https%3A%2F%2Fappengine.google.com%2F_ah%2Fconflogin%3Fcontinue%3Dhttps%3A%2F%2F20160126t111625-dot-lesv-004.appspot.com%2F\r\n&ltmpl=gm\r\n&shdf=ChQLEgZxxxxxxx\r\n\r\nNote - **https://20160126t111625.lesv-004.appspot.com/guestbook.jsp**\r\n\r\n\r\n3. `vi src/main/webapp/Dockerfile`\r\n4. add the suffix **:githubheadasync** to the FROM line\r\n5. `mvn gcloud:deploy`\r\n\r\nThe Redirect URL on the ASYNC is **http://0.20160126t110119.lesv-004.appspot.com/guestbook.jsp** which is wrong for several reasons:\r\n\r\n  a. It's to a specific Instance\r\n  b. It's not using https\r\n\r\nThe correct redirect URL should be **https://20160126t110119.lesv-004.appspot.com/guestbook.jsp**\r\n "},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/comments/187304794","html_url":"https://github.com/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164#issuecomment-187304794","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-java-vm-runtime/issues/164","id":187304794,"user":{"login":"gregw","id":70829,"avatar_url":"https://avatars.githubusercontent.com/u/70829?v=3","gravatar_id":"","url":"https://api.github.com/users/gregw","html_url":"https://github.com/gregw","followers_url":"https://api.github.com/users/gregw/followers","following_url":"https://api.github.com/users/gregw/following{/other_user}","gists_url":"https://api.github.com/users/gregw/gists{/gist_id}","starred_url":"https://api.github.com/users/gregw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregw/subscriptions","organizations_url":"https://api.github.com/users/gregw/orgs","repos_url":"https://api.github.com/users/gregw/repos","events_url":"https://api.github.com/users/gregw/events{/privacy}","received_events_url":"https://api.github.com/users/gregw/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T18:22:23Z","updated_at":"2016-02-22T18:22:23Z","body":"Ah - and we can't switch to using the header value of the ticket, as it is not valid after the response is committed.... and since we are no longer using the delayed response technique, the commit can come before our API usage.\r\n\r\nOK, I'll do a very hacky string substitution!"}}