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 4A435200C57 for ; Sat, 1 Apr 2017 04:27:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48CED160B9C; Sat, 1 Apr 2017 02:27:45 +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 9042E160B80 for ; Sat, 1 Apr 2017 04:27:44 +0200 (CEST) Received: (qmail 10982 invoked by uid 500); 1 Apr 2017 02:27:43 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 10973 invoked by uid 99); 1 Apr 2017 02:27:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2017 02:27:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 681F71A04B8 for ; Sat, 1 Apr 2017 02:27:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6wM5zKVq5Bvj for ; Sat, 1 Apr 2017 02:27:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 49FFF5F177 for ; Sat, 1 Apr 2017 02:27:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D440FE05F7 for ; Sat, 1 Apr 2017 02:27:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8CACF21DD6 for ; Sat, 1 Apr 2017 02:27:41 +0000 (UTC) Date: Sat, 1 Apr 2017 02:27:41 +0000 (UTC) From: "Yao Lei (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-20476) Ambari View examples phone-list-upgrade-view/phone-list-view cannot display normally MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 01 Apr 2017 02:27:45 -0000 [ https://issues.apache.org/jira/browse/AMBARI-20476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951945#comment-15951945 ] Yao Lei commented on AMBARI-20476: ---------------------------------- Hi [~gnagar] Would you mind taking a loot at this patch if you are available? After all, it will be better if we can fix this issue.Thanks. > Ambari View examples phone-list-upgrade-view/phone-list-view cannot display normally > ------------------------------------------------------------------------------------ > > Key: AMBARI-20476 > URL: https://issues.apache.org/jira/browse/AMBARI-20476 > Project: Ambari > Issue Type: Bug > Components: ambari-views > Affects Versions: trunk > Reporter: Yao Lei > Priority: Trivial > Fix For: trunk > > Attachments: 1.0.0-list1.png, 1.0.0-list2.png, 2.0.0-list1.png, 2.0.0-list2.png, AMBARI-20476-1.patch > > > Problem: > After adding/updating/deleting one record,the web page displays html code directly as shown in attached pictures. > Steps to reproduce: > 1.cd ambari-views/examples > 2.cd phone-list-upgrade-view & mvn clean package > 3.cd phone-list-view & mvn clean package > 4.copy phone-list-upgrade-view/target/phone-list-upgrade-view-*.jar, > phone-list-view/target/phone-list-view-*.jar > to /var/lib/ambari-server/resources/views > 5.ambari-server restart > 6.open the view and add/update/delete record. > Solution: add response header to method doPost() in PhoneListServlet.java -- This message was sent by Atlassian JIRA (v6.3.15#6346)