Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C99CE200B7A for ; Mon, 22 Aug 2016 06:09:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C8124160AC0; Mon, 22 Aug 2016 04:09:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1AD7A160AAA for ; Mon, 22 Aug 2016 06:09:21 +0200 (CEST) Received: (qmail 37297 invoked by uid 500); 22 Aug 2016 04:09:20 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 37256 invoked by uid 99); 22 Aug 2016 04:09:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 04:09:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7AD742C0031 for ; Mon, 22 Aug 2016 04:09:20 +0000 (UTC) Date: Mon, 22 Aug 2016 04:09:20 +0000 (UTC) From: "Barry Kaplan (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-5911) Webui redirection to leader in browser does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 04:09:23 -0000 [ https://issues.apache.org/jira/browse/MESOS-5911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430015#comment-15430015 ] Barry Kaplan commented on MESOS-5911: ------------------------------------- Reading this I cannot tell what the fix was. After upgrading to 1.0.0 I can only open the UI on the leader. I get XMLHttpRequest cannot load http://10.0.139.65:5050/master/state. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s-mesos-master-1.use1.systeminsights.com:5050' is therefore not allowed access. > Webui redirection to leader in browser does not work > ---------------------------------------------------- > > Key: MESOS-5911 > URL: https://issues.apache.org/jira/browse/MESOS-5911 > Project: Mesos > Issue Type: Bug > Components: webui > Affects Versions: 1.0.0 > Reporter: Jacob Janco > Assignee: haosdent > Priority: Blocker > Labels: webui > Fix For: 1.0.1 > > Attachments: http_redirect.gif > > > We deployed 1.0.0-rc4 in a small test cluster with 3 masters/5 agents. Redirection to master curling for state.json returned the expected 307, however, in browser (chrome/safari/firefox), redirection failed with: > {code} > XMLHttpRequest cannot load :5050/master/state. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ':5050' is therefore not allowed access. > {code} > This is the patch that introduced the redirect on /state (and HTTP calls): https://reviews.apache.org/r/34646 > The issue is that before this change, the server side does not redirect, the web UI controller.js decides from the content of the state.json which leader to redirect and then invoke redirection itself. Browsers allow this but not the server side initiated redirect without 'Access-Control-Allow-Origin' header? -- This message was sent by Atlassian JIRA (v6.3.4#6332)