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 507F0200CB4 for ; Tue, 27 Jun 2017 14:08:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49724160BE9; Tue, 27 Jun 2017 12:08:32 +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 6814A160BDC for ; Tue, 27 Jun 2017 14:08:31 +0200 (CEST) Received: (qmail 98084 invoked by uid 500); 27 Jun 2017 12:08:30 -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 98070 invoked by uid 99); 27 Jun 2017 12:08:30 -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; Tue, 27 Jun 2017 12:08:30 +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 E7FE21A032A for ; Tue, 27 Jun 2017 12:08:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.571 X-Spam-Level: ***** X-Spam-Status: No, score=5.571 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, HTML_OBFUSCATE_20_30=2.441, 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, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cCIlc8oE8rhk for ; Tue, 27 Jun 2017 12:08:27 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9E6815FB43 for ; Tue, 27 Jun 2017 12:08:26 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id c189so16075271oia.2 for ; Tue, 27 Jun 2017 05:08:26 -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=ZFGxU24WC6q5ApRddPDQShR625GB8uezWIkuTcBbpYs=; b=HrC8l9wf4PthuMjccNVAgh97BAhdTwoCQkg6Lr8STFVp/XbaMbsXIM0DHoQ5owH+V1 137TCEVOUD0U9gX+a9lF3oQR1QV78Sa5gGFD0fjeoovnv019sdLBZ6d3ERIKlxiwO2e7 J6ofdEuPpYWV1MW29wKCsyb+q6lu/DTveWzOKEe061in2c/cubsZMv1R1soKoa0RRGOk +TkHF9L4pttHrsp/PTJQqx0Sv/yGGYDpRACJFhcxhiDt/YqHFMzI8udMcNXoDfbCHnb6 h4iSl9p12UPMWaeL1RIWpsIGWLoDY4AN9pyc6xOjdp/izIH1z+xVsmPjoY3XGKA6MAOS pntw== 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=ZFGxU24WC6q5ApRddPDQShR625GB8uezWIkuTcBbpYs=; b=UKeHUIJILuNMV8pKAwoiqAm15BKS3JABlVuzsQgqZap0eeQi6nLRndu6gCOmLcnn73 UnKnldCd2jCuNxQkMz9Mp8b5gu5T3aUcS83VjDv/uNdBcpR8Ddki7xY/aaP40C5yD6r4 u/jjR1Jh05lf9konHJaghqdOzvhKibWztYcFGCL/0dMHIiRkfBPq7NxIANzVHpN6U0ln vQCrjCNAtbGFYW7qlDJTog/E5a9fDMYdeZzWFkKH1lBo0r6q6AJJseHmKFpK16Q7GlsS FnlCmths/tArYj/5xNy2GkKa2+8/fPIt1vq75UXmhyyCNgtAt9vpC/c7GM65+IOpV7Cx 7VvA== X-Gm-Message-State: AKS2vOwrvVp1FLqwB61MWGEBaSs7tuFC1IL6iIHac/HCmscQv+0M46HC g9vLUNY8h5Jk7pYBFzMY4SZOpAaqyKsU X-Received: by 10.202.240.139 with SMTP id o133mr2508136oih.73.1498565305158; Tue, 27 Jun 2017 05:08:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.5.175 with HTTP; Tue, 27 Jun 2017 05:08:24 -0700 (PDT) In-Reply-To: References: From: Stephen Cameron Date: Tue, 27 Jun 2017 22:08:24 +1000 Message-ID: Subject: Re: security module issue with 1.14.0 To: users@isis.apache.org Content-Type: multipart/alternative; boundary="94eb2c094234afd5190552efec63" archived-at: Tue, 27 Jun 2017 12:08:32 -0000 --94eb2c094234afd5190552efec63 Content-Type: text/plain; charset="UTF-8" It was due to an interaction with my layout.xml file, where I had added a dummy property to avoid a schema validation error. There as a WARN message in the logs about it, that I ignored, that should have been a place to start looking. On Tue, Jun 27, 2017 at 9:21 PM, Stephen Cameron wrote: > I now have a class that does not give the error, so something I have done > 'differently'. > > On Mon, Jun 26, 2017 at 10:42 PM, Stephen Cameron < > steve.cameron.62@gmail.com> wrote: > >> 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.SpecificationLoade >>> r.loadSpecification(SpecificationLoader.java:289) >>> at org.apache.isis.core.metamodel.specloader.SpecificationLoade >>> r.lookupBySpecId(SpecificationLoader.java:515) >>> at org.apache.isis.viewer.wicket.model.models.EntityModel.getSp >>> ecificationFor(EntityModel.java:317) >>> at org.apache.isis.viewer.wicket.model.models.EntityModel.getTy >>> peOfSpecification(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.C >>> ol.buildGui(Col.java:212) >>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.col.C >>> ol.(Col.java:79) >>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row.R >>> ow.buildGui(Row.java:69) >>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.row.R >>> ow.(Row.java:54) >>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.BS3Gr >>> idPanel.buildGui(BS3GridPanel.java:56) >>> at org.apache.isis.viewer.wicket.ui.components.layout.bs3.BS3Gr >>> idPanel.(BS3GridPanel.java:42) >>> at org.apache.isis.viewer.wicket.ui.components.entity.selector. >>> links.EntityLinksSelectorPanelFactory.createComponent(Entity >>> LinksSelectorPanelFactory.java:57) >>> at org.apache.isis.viewer.wicket.ui.ComponentFactoryAbstract.cr >>> eateComponent(ComponentFactoryAbstract.java:98) >>> at org.apache.isis.viewer.wicket.viewer.registries.components.C >>> omponentFactoryRegistryDefault.createComponent(ComponentFact >>> oryRegistryDefault.java:121) >>> at org.apache.isis.viewer.wicket.viewer.registries.components.C >>> omponentFactoryRegistryDefault.addOrReplaceComponent(Compone >>> ntFactoryRegistryDefault.java:106) >>> at org.apache.isis.viewer.wicket.ui.pages.PageAbstract.addCompo >>> nent(PageAbstract.java:346) >>> at org.apache.isis.viewer.wicket.ui.pages.PageAbstract.addChild >>> Components(PageAbstract.java:341) >>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.bui >>> ldPage(EntityPage.java:195) >>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.>> it>(EntityPage.java:114) >>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.>> it>(EntityPage.java:82) >>> at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.>> it>(EntityPage.java:94) >>> at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResult >>> ResponseType$9.call(ActionResultResponseType.java:159) >>> at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResult >>> ResponseType$9.call(ActionResultResponseType.java:157) >>> at org.apache.isis.core.metamodel.adapter.mgr.AdapterManager$Co >>> ncurrencyChecking.executeWithConcurrencyCheckingDisabled(Ada >>> pterManager.java:88) >>> >> >> > --94eb2c094234afd5190552efec63--