I was following the Keycloak documentation on adding custom user attributes:
https://www.keycloak.org/docs/latest/server_development/#_custom_user_attributes
I successfully updated the registration form to collect new attributes. I then went on to update the account page, but noticed I had been using the keycloak.v2 theme, so thought I would try extending that instead.
I know my theme is being applied correctly, because I used the theme.properties to set a new logo and favicon and they are appearing correctly:
parent=keycloak.v2
logo=/public/my-logo.svg
logoUrl=./
favIcon=/public/my-icon.ico
However, none of the changes I make to extend the AccountPage.js file seem to be taking effect.
My simple test change:
First I copied the existing AccountPage.js file in the keycloak.v2 folder and placed it in my theme in the same location:
/home/ubuntu/keycloak/keycloak-15.0.2/themes/keycloak.v2/account/resources/content/account-page/AccountPage.js
/home/ubuntu/keycloak/keycloak-15.0.2/themes/mytheme /account/resources/content/account-page/AccountPage.js
Then all I did was change the last name label in the file:
from:
label: Msg.localize('lastName'),
to:
label: "Laaaaaast Name",
and after turning off the caches, and restarting the server and reloading the page in a fresh browser I still see "Last Name" next to the last name input.
I feel like I'm misunderstanding something about the way keycloak layers the files when extending.
What do I need to do in order to see updates I make to the AccountPage.js?
Related
I'm using JasperReports Server 5.6 and I have some reports deployed there.
The problem starts when I generate a PDF output for my reports. I can see the output file in the repository, but I'm unable to delete it.
I'm able to delete other types of resources, as an image or report, for example. But when I need to delete a generated PDF, the upper options bar doesn't offer me any options (including deleting). If I try to right-click the PDF, it doesn't open any pop-up menus (as it does for images, for example).
The image below shows what happens to the options bar:
Here goes some interesting things I've noticed:
The type column in the repo tells me the PDF is a "Content Resource". If I manually upload another PDF from my local machine to the repo as a "Content Resource", the UI also doesn't let me delete the resource.
I'm logged in as the administrator user. It's set with ROLE_USER and ROLE_ADMINISTRATOR roles (it's the default jasperadmin user).
The directory which contains the PDF is set with permissions Read+Write+Delete for the ROLE_USER.
Tried to log in as another user with ROLE_USER and I got the same result.
The JasperReports Server's tomcat is running as root (it's a test environment).
I went through the JasperReports Server's User's Guide and Administrator's Guide. Both said that I need to have the right permissions (and I do), and also I need to have no references to the resources to be deleted. In the case above, where I have an uploaded PDF as a "Content Resource", I don't have any references to it inside the repo, and I still can't delete it!
If I delete the super directory that contains the PDF, it works fine.
So, do you guys have any ideas of what I can try to get rid of these PDF outputs?
So far the best solution, I didn't find any better, for this is to use the delete button on the keyboard
I really don't know why is the menu button disabled but nevermind.
I am facing the same problem. There is a work around for this: Use Jaspersoft Studio.
Add a JasperReports Server Connection, expand the node and locate the file you wanted, then right-click and select Delete.
This is not an elegance solution but works for the moment.
EDIT - found the problem and have a fix.
The JS is missing "Utils" scope in getInitConfiguration. The original source is:
var Utils = {
restOfString: function(str, fromStr) {
var from = str.lastIndexOf(fromStr) + fromStr.length;
return str.substring(from, str.length).trim();
},
getInitOptions: function () {
return localContext.rsInitOptions || __jrsConfigs__.repositorySearch["localContext"].rsInitOptions;
},
getInitConfiguration: function () {
return getInitOptions().configuration;
}
};
Just change "return getInitOptions().configuration;" to get "return Utils.getInitOptions().configuration;"
You'll have to make this change in the optimized version of the script (optimized-scripts/results.page.js). Fortunately there are only two occurrences of getInitOptions so it's easy to find and fix the correct one.
The root cause is a javascript error:
uncaught ReferenceError: getInitOptions is not defined
This is coming from results.page.js, but I haven't found a fix for it yet. This code is attempting to change the state of the toolbar buttons. I tried using the latest 6.x version of the script, and that did not fix the problem either.
Also listed at http://community.jaspersoft.com/questions/843951/unable-delete-report-output-jasperserver-56
When you are going to delete the content resource Delete button show disable. I am also experiencing the same problem so for time being I am deleting my content resources by using following query on Jasperserver schema.
Delete from jicontentresource where id in
(
Select id from jiresource
where resourcetype='com.jaspersoft.jasperserver.api.metadata.common.domain.ContentResource'
and to_char(update_date,'YYYY-MM-DD') = '2014-11-25');
Delete from jiresource where resourcetype='com.jaspersoft.jasperserver.api.metadata.common.domain.ContentResource'
and to_char(update_date,'YYYY-MM-DD') = '2014-11-25';
You have only to mark all files and then push the Delete-Button
To start, I followed these directions exactly as it's stated: http://dev.day.com/docs/en/cq/5-6/developing/mobile/responsive.html
The problem is, despite all of that, my Devices dropdown on the sidekick in preview mode is empty.
The list works without issue in the Geometrixx Media without issue.
I made sure I set the cq:deviceGroups and the sling:OsgiConfig as required, and also included the simulator.js in the head tags.
Edit: I have found that if I set the resourceType on the root level page to geometrixx-media/components/page, which is their working demo, it works. I have completely removed all jsp and config items from that component page and it still continues to work anyways.
Does anyone know of something that is missing from the documents, and how to fix the issue?
Thanks.
This is what I did to resolve this issue:
I am going to assume your application name is jason-riis
In CRXDE|Lite create a config folder in /apps/jason-riis/
Now create a node of:
TYPE=sling:OsgiConfig
NAME=com.day.cq.wcm.mobile.core.impl.MobileEmulatorProvider-<*alias>
*alias could be anything, I gave my application name. What it does is it will get you a unique PID when you look at it in configuration Manager
If you go to your configuration manager now, you should be able to see two MobileEmulatorProvider config settings.
Add a node property to node you just created:
NAME=mobile.resourceTypes
TYPE=String[] (you have to click multi at the end of the value textbox)
VALUE=jason-riis/components/<*page>
*page is all the components that has sling:resourceSuperType of foundation/components/page and it is a multi array so it should look like this
jason-riis/components/page, jason-riis/components/widepage, jason-riis/components/newspage
I assume you already have the cq:include for simulation in your header. This makes the devices button appear in preview mode.
Last thing is, go to your website root page's jcr:content [/content/jason-riis/jcr:content] and add node property
NAME=cq:deviceGroups
TYPE=String[]
*VALUE=/etc/mobile/groups/touch, /etc/mobile/groups/smart
*If you go to this etc path in CRXDE|Lite; you will see more relevant information in jcr:content node. This will help you in creating your own custom emulator list.
You should be able to see the dropdown now, with options of iPhone and iPad and all. I know AEM docs are frustrating, let me know if there is any confusion.
I have installed CAPTCHA extra on MODx Revolution. According to its description
"The Captcha components can also be used by other components to create captcha-style verification for front-end forms."
When changing captcha.enabled in System setting to Yes, it adds Captcha to manager login, but there's no documentation on how to use it on other components, neither I could find any example by googling.
How can I use the Captcha on a desired form? (and not on manager login if possible)
Thanks for your time.
You add it somewhere in your form where you want it to appear:
<img src="[[++assets_url]]components/captcha/captcha.php" alt="Captcha Image" />
And create a textfield for user to enter the result. Then wherever you're doing the validation for your form, compare the value of the textfield to $_SESSION['veriword'].
You can also read this: http://bobsguides.com/captcha-plugin.html
The docs are limited - but there, in the docs folder of the distribution:
Modx Captcha Utility
====================
Author: BobRay <bobray#softville.com>
Date: 08/10/2008
Updated:10/03/2010
====================
This utility provides captcha verification in the MODx
Manager login and elsewhere.
It uses the following System Settings:
captcha.enabled If set, captcha is used for Manager login (off when installed)
captcha.use_mathstring If set, the image is a simple equation for the user to solve (on when installed)
captcha.words Selection of words used for the image if captcha_use_mathstring is off
captcha.height Height of image (default: 80)
captcha.width Width of image (default: 200)
captcha.words Words to use in CAPTCHA challenge
You may add or delete fonts from the core/components/captcha/fonts directory
as long as there is at least one .ttf file there.
You may add or delete images from the core/components/captcha/noise directory
as long as there is at least one file there.
Captcha can also be used in other forms that require captcha.
You can roll your own function by calling assets/components/captcha/captcha.php where you want the image
and then comparing the user's input to the $_SESSION['veriword'] variable.
See the code in the core/components/captcha/captcha.plugin.php file.
You should also be able to see this from the properties of the installed package in the package manager.
Basically, what he is saying that you ~can~ use it for other forms 'if you want to write a little bit of code'
(Note its for Liferay 6.1)
Struggling with the Liferay-ui for displaying a journal-article with the following tag:
<liferay-ui:journal-article articleResourcePrimKey="10656" />
As you can see i have hardcoded the articleResourcePrimKey for sample, and that article exists in the cms. Its WCM structured contents and template is also associated with it.
Everything works fine for the first refresh as after the portlet deployment on the server, but the next refresh for the same returns nothing (a blank page as if liferay-ui is not present at all)
I have changed the temaplte to Cacheable and then it works fine until i made modification to the template or content associated with it, but as soon i modify the template or content from WCM, it starts behaving the same.
When ever it worked just after redeployment and on first refresh of the page where the portlet is placed.
I've always used groupId and articleId rather than articleResourcePrimKey, and it works fine. These two values are easily discoverable within the admin screens for web content.
Using Liferay 6.0, but about to upgrade to 6.1 and fully expecting it to work.
I have an MS Access 2003 database that I'm using to develop a basic little inventory app. I have added some extraneous forms along the way and I wanted to get them out of the DB. I deleted most of them just fine but one of them appears to have left behind its VBA Object. All that's in the object is Option Compare Database. Now whenever I try to work with the database, I get the following error:
The form name 'Transaction1' is misspelled or refers to a form that doesn't exist.
If the invalid form name is a macro, ...
Truncated for typings sake.
Yes, I agree, the form doesn't exist. What confuses me so much is that all of the other forms, when I deleted them, also destroyed their VBA object as well. This one, no matter what, seems to like to stick around and I have no idea how to get rid of it.
How do I get rid of it?
Things I've tried:
Compact and Repair and the DB
Create a new form named what it's expecting, verify that it gets rid of the problem, and then delete that form.
You can try the /decompile switch
Make a backup of your mdb
Open your mdb (hold the SHIFT key down to stop any code from running) via a short
cut: msaccess.exe database.mdb /decompile
Open a module and compile your app
Save and close Access
Open again (SHIFT again) without decompile
Compact and repair database
close Access
I had similar problem. I found I had named the missing form in the STARTUP menu as the default form to open when starting Access. I opened Tools>Startup and deleted the missing forms name from the "Display/Form/Page" field of the Startup. My problem solved.
The problem I was having is that the form was named ~TMPCLP8151 and would not show up in Access no matter what I tried, but I could see it in VBA in the Project Explorer. Here's how I resolved the issue. I created a new form, and created an Event Procedure for Form_Open that contained this:
DoCmd.DeleteObject acForm, "~TMPCLP8151"
Then I just opened the form, and sure enough, the VB code deleted the form that I could not delete myself.
I had a same problem. I created a form with same name and deleted the form again. That fixed the peoblem. Try. BTW try to open the new form in design mode to make sure if the VBA module is assosiated with the new form.
I had to combine both solutions to achieve the goal.
First de- and recompile
next compact and repair
then create new form with the same name and delete it
Pay attention that the form has the status Hasmodule set to Yes
I had this problem. I renamed my default form from Form Login to frmLogin which suits my naming style, but the program was still looking for it on opening. I am using 2013 so I went to File » Options » CurrentDB and in the display dropdown select the new name. The old name remains in the list until you close and restart the application.