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 A36B4200B44 for ; Thu, 14 Jul 2016 23:44:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1F8C160A63; Thu, 14 Jul 2016 21:44:26 +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 EC124160A60 for ; Thu, 14 Jul 2016 23:44:25 +0200 (CEST) Received: (qmail 80206 invoked by uid 500); 14 Jul 2016 21:44:25 -0000 Mailing-List: contact commits-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@guacamole.incubator.apache.org Delivered-To: mailing list commits@guacamole.incubator.apache.org Received: (qmail 80197 invoked by uid 99); 14 Jul 2016 21:44:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 21:44:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BAEC1CC2D1 for ; Thu, 14 Jul 2016 21:44:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.507 X-Spam-Level: X-Spam-Status: No, score=-4.507 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mn4MC5u17Te7 for ; Thu, 14 Jul 2016 21:44:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id CAD0F5FBA2 for ; Thu, 14 Jul 2016 21:44:21 +0000 (UTC) Received: (qmail 79927 invoked by uid 99); 14 Jul 2016 21:44:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 21:44:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9BD5F2C02A4 for ; Thu, 14 Jul 2016 21:44:20 +0000 (UTC) Date: Thu, 14 Jul 2016 21:44:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@guacamole.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GUACAMOLE-5) Allow creation of per-connection share links MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 21:44:26 -0000 [ https://issues.apache.org/jira/browse/GUACAMOLE-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378446#comment-15378446 ] ASF GitHub Bot commented on GUACAMOLE-5: ---------------------------------------- GitHub user mike-jumper opened a pull request: https://github.com/apache/incubator-guacamole-client/pull/28 GUACAMOLE-5: Fix regression introduced by recent refactor of the REST API The recent refactor caused issues where actual type-specific implementations were not provided for the REST resources. All REST resources **MUST** be non-generic, thus `DirectoryResource` and `DirectoryObjectResource` **MUST NOT** be used directly. Type parameters of generic classes will otherwise be handled by Jersey as `Object` due to type erasure, resulting in class cast exceptions due to received JSON being deserialized as a `Map` instead of the intended type. This change also updates the logging and error handling within `RESTExceptionWrapper` such that this sort of thing will be easier to notice going forward. Internal errors were not being properly logged, especially those which were not subclasses of `GuacamoleException`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/mike-jumper/incubator-guacamole-client subresource-regression Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-guacamole-client/pull/28.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #28 ---- commit bd8c37c7375cc037254c2dec79b124baed9049dc Author: Michael Jumper Date: 2016-07-14T20:28:45Z GUACAMOLE-5: Ensure all exceptions from within REST make their way to a JSON response, even if not a GuacamoleException. commit cdd71411fb8f8e40109ca51f3136145ccd42136a Author: Michael Jumper Date: 2016-07-14T21:37:33Z GUACAMOLE-5: All REST resources MUST be non-generic. Type parameters of generic classes will otherwise be handled as Object by Jersey due to type erasure, resulting in class cast exceptions due to JSON being deserialized as a Map instead of the intended type. ---- > Allow creation of per-connection share links > -------------------------------------------- > > Key: GUACAMOLE-5 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-5 > Project: Guacamole > Issue Type: New Feature > Reporter: Michael Jumper > Assignee: Michael Jumper > Fix For: 0.9.10-incubating > > > {panel:bgColor=#FFFFEE} > *The description of this issue was copied from [GUAC-1074|https://glyptodon.org/jira/browse/GUAC-1074], an issue in the JIRA instance used by the Guacamole project prior to its acceptance into the Apache Incubator.* > Comments, attachments, related issues, and history from prior to acceptance *have not been copied* and can be found instead at the original issue. > {panel} > Depending on connection and user permissions, users should be able to create one-time share links that allow external or internal users to share active connections. > Considering that these links may be needed by groups of users, each link should have the option to be: > # One-time use > # Multi-use (lasts until the sharing user disconnects) > Once a user joins a connection, their presence should be exposed in the interface, and the owning user should be able to grant/revoke permission to use the keyboard/mouse, kick individual users, etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)