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 09F53200CE0 for ; Thu, 27 Jul 2017 06:59:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0860916A2E7; Thu, 27 Jul 2017 04:59:05 +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 4DDEB16A2E5 for ; Thu, 27 Jul 2017 06:59:04 +0200 (CEST) Received: (qmail 36014 invoked by uid 500); 27 Jul 2017 04:59:03 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 36002 invoked by uid 99); 27 Jul 2017 04:59:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2017 04:59:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D605BC040F for ; Thu, 27 Jul 2017 04:59:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -97.888 X-Spam-Level: X-Spam-Status: No, score=-97.888 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URI_HEX=1.313, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hYrXSZOMBXX4 for ; Thu, 27 Jul 2017 04:59:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 482A05F6C7 for ; Thu, 27 Jul 2017 04:59:01 +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 850ABE06CF for ; Thu, 27 Jul 2017 04:59:00 +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 33EC724817 for ; Thu, 27 Jul 2017 04:59:00 +0000 (UTC) Date: Thu, 27 Jul 2017 04:59:00 +0000 (UTC) From: "Apoorv Naik (JIRA)" To: dev@atlas.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ATLAS-1951) Regression: Any REST API request without user credentials results in 302 redirect to login.jsp. Actually, the correct response should be 401. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Jul 2017 04:59:05 -0000 [ https://issues.apache.org/jira/browse/ATLAS-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apoorv Naik resolved ATLAS-1951. -------------------------------- Resolution: Fixed > Regression: Any REST API request without user credentials results in 302 redirect to login.jsp. Actually, the correct response should be 401. > --------------------------------------------------------------------------------------------------------------------------------------------- > > Key: ATLAS-1951 > URL: https://issues.apache.org/jira/browse/ATLAS-1951 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Affects Versions: 0.9-incubating > Reporter: Ayub Pathan > Assignee: Nixon Rodrigues > Priority: Critical > Fix For: 0.9-incubating > > Attachments: ATLAS-1951.patch > > > Regression: Any REST API request to atlas without user credentials results in 302 redirect( login.jsp), but the actual response code should be 401 unauthorized. > This issue could have been introduced as part of new spring changes. > For example: > {noformat} > curl -v -X GET "http://ctr-e133-1493418528701-181199-01-000002.hwx.site:21000" > * Rebuilt URL to: http://ctr-e133-1493418528701-181199-01-000002.hwx.site:21000/ > * Trying 172.27.56.2... > * Connected to ctr-e133-1493418528701-181199-01-000002.hwx.site (172.27.56.2) port 21000 (#0) > > GET / HTTP/1.1 > > Host: ctr-e133-1493418528701-181199-01-000002.hwx.site:21000 > > User-Agent: curl/7.43.0 > > Accept: */* > > > < HTTP/1.1 302 Found > < Date: Fri, 14 Jul 2017 11:16:42 GMT > < Set-Cookie: ATLASSESSIONID=1i0rxnm66dd3h17xyhvstk0vck;Path=/;HttpOnly > < Expires: Thu, 01 Jan 1970 00:00:00 GMT > < X-Frame-Options: DENY > < Location: http://ctr-e133-1493418528701-181199-01-000002.hwx.site:21000/login.jsp > < Content-Length: 0 > < Server: Jetty(9.2.12.v20150709) > < > * Connection #0 to host ctr-e133-1493418528701-181199-01-000002.hwx.site left intact > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)