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 426CE200CB3 for ; Mon, 26 Jun 2017 14:42:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3FAA5160BDE; Mon, 26 Jun 2017 12:42:06 +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 5DE8E160BD9 for ; Mon, 26 Jun 2017 14:42:05 +0200 (CEST) Received: (qmail 63646 invoked by uid 500); 26 Jun 2017 12:42:04 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 63631 invoked by uid 99); 26 Jun 2017 12:42:04 -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; Mon, 26 Jun 2017 12:42:04 +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 B1BC5C061B for ; Mon, 26 Jun 2017 12:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.129 X-Spam-Level: *** X-Spam-Status: No, score=3.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YsAbfFO_VliW for ; Mon, 26 Jun 2017 12:42:01 +0000 (UTC) Received: from mail-ot0-f171.google.com (mail-ot0-f171.google.com [74.125.82.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 41AE05FDCC for ; Mon, 26 Jun 2017 12:42:01 +0000 (UTC) Received: by mail-ot0-f171.google.com with SMTP id 95so72861ott.3 for ; Mon, 26 Jun 2017 05:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nEN991VfAFkI6wHmCBoFumgOEpkUQqlRQdeUJvdpoTE=; b=jkz73AGgwdqCMcDpRXHlpRMiuA9J0qnThWW4r/2GZxKKxyu/4vdIchV7jlgX1SbtzZ HJat7ysrdvvfei7TqpXrJyJN16DFkOMIVd6Dwo/h3s4yvoWo82VOVBGYC8gjHufirp8G SCSZYdbb3+lJtaDzVpPfdQKop7NoMPbgfqnoOL41kX2ezRD3BZjx5UQBnKBBzDbbuw2+ IPQnZ11Kjx50aQLzot3BUSp+nd7eUd8lcUM0gRIcyEupo+BQhgB5hnwxh6Vpxt0D22Fi XMZobyAjyk9SO/uRka284Vsp625j+I7TD1gmAU8W+uqfbopQ1yBKRjPyzw2qYEk39sSF 8IDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nEN991VfAFkI6wHmCBoFumgOEpkUQqlRQdeUJvdpoTE=; b=YgE+P7mCMpVQ4QOjCxriFROo3hRRTSIcflerE+7rJkA+2n79ns0su+hqoH8gGkUB7C uyDAcToep/jKT9ZvmfNAmfS87k5QB9C3cemIx7TkA72zPcgMLsZgTPGLqGpQDHb78fzP UwE+9mW2BdhOuYAQUqjn1n/Y4GWqinh/+pnlrUVNORxFYsZW2nNJ0K04aUOXouE+XYUK 93W3mWZ8S01RZG3W73fLd4oGz3VeNO+rz8ihKNgcl0FGYHoJd5oSPtmkniNL8r6eXwXG O19GPyFiiIWXvT2pwjOSoYQuhwU2om4oQDnTo90IwP12RpmBiWwU854Gbmd6az3IAUI+ MetA== X-Gm-Message-State: AKS2vOyo8F/dhPjEPFtGVB/+KjJlNpv+nSmVsahyAudISe4hH5CTi5de EGiaQEGMv5Btbs1bLTIQzrwYRLJ2IWeV X-Received: by 10.157.2.9 with SMTP id 9mr12689otb.80.1498480920515; Mon, 26 Jun 2017 05:42:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.5.175 with HTTP; Mon, 26 Jun 2017 05:42:00 -0700 (PDT) In-Reply-To: References: From: Stephen Cameron Date: Mon, 26 Jun 2017 22:42:00 +1000 Message-ID: Subject: Re: security module issue with 1.14.0 To: users@isis.apache.org Content-Type: multipart/alternative; boundary="94eb2c045ff8f859a70552dc4622" archived-at: Mon, 26 Jun 2017 12:42:06 -0000 --94eb2c045ff8f859a70552dc4622 Content-Type: text/plain; charset="UTF-8" The routine below doesn't find a cached ObjectSpecification with objectSpecId = "oneid.Account" though it seems to find it successfully initially. So maybe the cache is being updated via the security module? @Programmatic public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) { final ObjectSpecification objectSpecification = cache.getByObjectType(objectSpecId); if(objectSpecification == null) { // fallback return loadSpecification(objectSpecId.asString()); } return objectSpecification; } On Mon, Jun 26, 2017 at 10:11 PM, Stephen Cameron < steve.cameron.62@gmail.com> wrote: > Hi, > > I've created a demo app with Isis 1.14.0 and am adding the security > module, I get an exception as below that seems to be consistent whatever > the permissions of the users role are: > > It seems a little strange that the SpecificationLoader.loadSpecification() > method is being passed a class 'objectType' of "oneid.Account" and not the > full class name. > > I'll investigate further tomorrow, but I don' think I have forgotten > anything in the config of the module. > > Caused by: org.apache.isis.core.commons.exceptions.IsisException: No such > class available: oneid.Account > at org.apache.isis.core.metamodel.specloader.SpecificationLoader. > loadSpecification(SpecificationLoader.java:289) > at org.apache.isis.core.metamodel.specloader.SpecificationLoader. > lookupBySpecId(SpecificationLoader.java:515) > at org.apache.isis.viewer.wicket.model.models.EntityModel. > getSpecificationFor(EntityModel.java:317) > at org.apache.isis.viewer.wicket.model.models.EntityModel. > getTypeOfSpecification(EntityModel.java:313) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.tabs. > TabGroupPanel.tabsFor(TabGroupPanel.java:64) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.tabs. > TabGroupPanel.(TabGroupPanel.java:89) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.col. > Col.buildGui(Col.java:212) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.col. > Col.(Col.java:79) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row. > Row.buildGui(Row.java:69) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row. > Row.(Row.java:54) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3. > BS3GridPanel.buildGui(BS3GridPanel.java:56) > at org.apache.isis.viewer.wicket.ui.components.layout.bs3. > BS3GridPanel.(BS3GridPanel.java:42) > at org.apache.isis.viewer.wicket.ui.components.entity.selector.links. > EntityLinksSelectorPanelFactory.createComponent( > EntityLinksSelectorPanelFactory.java:57) > at org.apache.isis.viewer.wicket.ui.ComponentFactoryAbstract. > createComponent(ComponentFactoryAbstract.java:98) > at org.apache.isis.viewer.wicket.viewer.registries.components. > ComponentFactoryRegistryDefault.createComponent( > ComponentFactoryRegistryDefault.java:121) > at org.apache.isis.viewer.wicket.viewer.registries.components. > ComponentFactoryRegistryDefault.addOrReplaceComponent( > ComponentFactoryRegistryDefault.java:106) > at org.apache.isis.viewer.wicket.ui.pages.PageAbstract. > addComponent(PageAbstract.java:346) > at org.apache.isis.viewer.wicket.ui.pages.PageAbstract. > addChildComponents(PageAbstract.java:341) > at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage. > buildPage(EntityPage.java:195) > at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.< > init>(EntityPage.java:114) > at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.< > init>(EntityPage.java:82) > at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.< > init>(EntityPage.java:94) > at org.apache.isis.viewer.wicket.ui.actionresponse. > ActionResultResponseType$9.call(ActionResultResponseType.java:159) > at org.apache.isis.viewer.wicket.ui.actionresponse. > ActionResultResponseType$9.call(ActionResultResponseType.java:157) > at org.apache.isis.core.metamodel.adapter.mgr.AdapterManager$ > ConcurrencyChecking.executeWithConcurrencyChecking > Disabled(AdapterManager.java:88) > --94eb2c045ff8f859a70552dc4622--