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 0EFE7200C08 for ; Thu, 26 Jan 2017 22:00:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 06180160B4C; Thu, 26 Jan 2017 21:00:33 +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 4E543160B31 for ; Thu, 26 Jan 2017 22:00:32 +0100 (CET) Received: (qmail 12682 invoked by uid 500); 26 Jan 2017 21:00:31 -0000 Mailing-List: contact issues-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@airavata.apache.org Received: (qmail 12673 invoked by uid 99); 26 Jan 2017 21:00:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2017 21:00:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2337118C8E6 for ; Thu, 26 Jan 2017 21:00:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Jni0M8m_WKJD for ; Thu, 26 Jan 2017 21:00:29 +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 693025F644 for ; Thu, 26 Jan 2017 21:00:29 +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 B842FE040D for ; Thu, 26 Jan 2017 21:00:28 +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 28FF725290 for ; Thu, 26 Jan 2017 21:00:28 +0000 (UTC) Date: Thu, 26 Jan 2017 21:00:28 +0000 (UTC) From: "Marcus Christie (JIRA)" To: issues@airavata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AIRAVATA-2223) Support for data sharing disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Jan 2017 21:00:33 -0000 [ https://issues.apache.org/jira/browse/AIRAVATA-2223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15840443#comment-15840443 ] Marcus Christie edited comment on AIRAVATA-2223 at 1/26/17 9:00 PM: -------------------------------------------------------------------- Reopening because [~smarru] found another sharing disabled bug. As an admin, if you go to the Experiment Statistics page and click on an experiment for which you aren't the owner, you get an error when the getProject API method is called for that experiment. One thing that changed for non-sharing API calls is that [the claims map is checked to make sure that the authenticated user is the same as the project's owner|https://github.com/apache/airavata/blob/0108cb28c5cf704eadcb6be124dfcb8d99963dbc/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L773-L772]. What we did for situations like this is add API methods that bypass this check, but only for users with the admin or admin-read-only roles, see [issue comments on AIRAVATA-2207 for more details|https://issues.apache.org/jira/browse/AIRAVATA-2207?focusedCommentId=15652144&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15652144]. So we can do something like that projects as well. However, I'm not sure how useful it would be. We currently only display the project name for the experiment. Currently even when sharing is enabled PGA only loads the project when the admin has READ access to it. For now I can do a quick workaround that only loads the project if sharing is disabled when the user owns the experiment (since that means the user also owns the project). was (Author: marcuschristie): Reopening because [~smarru] found another sharing disabled bug. As an admin, if you go to the Experiment Statistics page and click on an experiment for which you aren't the owner, you get an error when the getProject API method is called for that experiment. One thing that changed for non-sharing API calls is that [the claims map is checked to make sure that the authenticated user is the same as the project's owner|https://github.com/apache/airavata/blob/0108cb28c5cf704eadcb6be124dfcb8d99963dbc/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L773-L772]. What we did for situations like this is add API methods that bypass this check, but only for users with the admin or admin-read-only roles, see issue comments on AIRAVATA-2207 for more details|https://issues.apache.org/jira/browse/AIRAVATA-2207?focusedCommentId=15652144&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15652144]. So we can do something like that projects as well. However, I'm not sure how useful it would be. We currently only display the project name for the experiment. For now I can do a quick workaround that only loads the project if sharing is disabled when the user owns the experiment (since that means the user also owns the project). > Support for data sharing disabled > --------------------------------- > > Key: AIRAVATA-2223 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2223 > Project: Airavata > Issue Type: Bug > Components: PGA PHP Web Gateway > Reporter: Marcus Christie > Assignee: Marcus Christie > Fix For: 0.17 > > > Test and fix issues related to data sharing being disabled. > Known issues > * (/) Project listing is empty when creating a new experiment even when user has several projects -- This message was sent by Atlassian JIRA (v6.3.4#6332)