Hello, How can we check differences between 2 revision ? How are you managing code review ? We are using Mendix Modeler 6.10.2. After a commit it is difficult for a developer to see what are the changes. We have other applications in Java for which we use Crucible that allow us to see differences. Is it possible to include Crucible ? In other words, can you share your experience in “code review” ? Thank you
↧
How to improve code review ?
↧
How to stop SAML20 module excessive logging
Hi, My SAML20 module, version 1.13.0 and also 1.11.0, logs a lot that I am not interested in. This is NOT caused by the logging switch in the configuration, that one is switched off. How can I stop this? When the app starts it generates 100-s of such lines, and when a user is authenticated too. That action even dumps XML payloads in the logfile. [Edit] No debug or trace logging enabled, these lines are not created by Mendix Log Message actions or custom Java code. It is generated by jars like opensaml.
2020-02-17T07:31:24.654771 [APP/PROC/WEB/1] 07:31:24.654 [qtp1735890395-6021] DEBUG org.opensaml.ws.message.encoder.BaseMessageEncoder - Successfully encoded message.
2020-02-17T07:31:25.386840 [APP/PROC/WEB/0] 07:31:25.386 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Starting to unmarshall Apache XML-Security-based SignatureImpl element
2020-02-17T07:31:25.386855 [APP/PROC/WEB/0] 07:31:25.386 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Constructing Apache XMLSignature object
2020-02-17T07:31:25.386910 [APP/PROC/WEB/0] 07:31:25.386 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Adding canonicalization and signing algorithms, and HMAC output length to Signature
2020-02-17T07:31:25.386935 [APP/PROC/WEB/0] 07:31:25.386 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Adding KeyInfo to Signature
2020-02-17T07:31:25.392338 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.security.SAMLSignatureProfileValidator - Saw Enveloped signature transform
2020-02-17T07:31:25.392349 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.security.SAMLSignatureProfileValidator - Saw Exclusive C14N signature transform
2020-02-17T07:31:25.392352 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.SignatureValidator - Attempting to validate signature using key from supplied credential
2020-02-17T07:31:25.392355 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.SignatureValidator - Creating XMLSignature object
2020-02-17T07:31:25.392358 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.SignatureValidator - Validating signature with signature algorithm URI: http://www.w3.org/2000/09/xmldsig#rsa-sha1
2020-02-17T07:31:25.392360 [APP/PROC/WEB/0] 07:31:25.392 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.SignatureValidator - Validation credential key algorithm 'RSA', key instance class 'sun.security.rsa.RSAPublicKeyImpl'
2020-02-17T07:31:25.393261 [APP/PROC/WEB/0] 07:31:25.393 [qtp474311562-6240] DEBUG org.opensaml.xml.signature.SignatureValidator - Signature validated with key from supplied credential
...
...
2020-02-17T08:47:41.022669 [APP/PROC/WEB/0] 08:47:41.022 [qtp474311562-6410] DEBUG org.opensaml.common.SAMLObjectHelper - Examing signed object for content references with exclusive canonicalization transform
2020-02-17T08:47:41.022677 [APP/PROC/WEB/0] 08:47:41.022 [qtp474311562-6410] DEBUG org.opensaml.common.SAMLObjectHelper - Saw exclusive transform, declaring non-visible namespaces on signed object
2020-02-17T08:47:41.022957 [APP/PROC/WEB/0] 08:47:41.022 [qtp474311562-6410] DEBUG org.opensaml.xml.signature.impl.SignatureMarshaller - Starting to marshall {http://www.w3.org/2000/09/xmldsig#}Signature
2020-02-17T08:47:41.022964 [APP/PROC/WEB/0] 08:47:41.022 [qtp474311562-6410] DEBUG org.opensaml.xml.signature.impl.SignatureMarshaller - Creating XMLSignature object
2020-02-17T08:47:41.023037 [APP/PROC/WEB/0] 08:47:41.022 [qtp474311562-6410] DEBUG org.opensaml.xml.signature.impl.SignatureMarshaller - Adding content to XMLSignature.
2020-02-17T08:47:41.023096 [APP/PROC/WEB/0] 08:47:41.023 [qtp474311562-6410] DEBUG org.opensaml.common.impl.SAMLObjectContentReference - Adding list of inclusive namespaces for signature exclusive canonicalization transform
2020-02-17T08:47:41.023262 [APP/PROC/WEB/0] 08:47:41.023 [qtp474311562-6410] DEBUG org.opensaml.xml.signature.impl.SignatureMarshaller - Creating Signature DOM element
2020-02-17T08:47:41.023472 [APP/PROC/WEB/0] 08:47:41.023 [qtp474311562-6410] DEBUG org.opensaml.xml.signature.Signer - Computing signature over XMLSignature object
...
...
2020-02-17T08:47:41.031821 [APP/PROC/WEB/0] 08:47:41.031 [qtp474311562-6410] DEBUG org.opensaml.saml2.binding.encoding.HTTPPostEncoder - Invoking Velocity template to create POST body
2020-02-17T08:47:41.032220 [APP/PROC/WEB/0] 08:47:41.032 [qtp474311562-6410] DEBUG org.opensaml.saml2.binding.encoding.HTTPPostEncoder - Encoding action url of 'https://www.somedomain.tld:443/am/SSOPOST/metaAlias/idp' with encoded value 'https://www.somedomain.tld:443/am/SSOPOST/metaAlias/idp'
2020-02-17T08:47:41.032227 [APP/PROC/WEB/0] 08:47:41.032 [qtp474311562-6410] DEBUG org.opensaml.saml2.binding.encoding.HTTPPostEncoder - Marshalling and Base64 encoding SAML message
2020-02-17T08:47:41.032928 [APP/PROC/WEB/0] 08:47:41.032 [qtp474311562-6410] DEBUG org.opensaml.saml2.binding.encoding.HTTPPostEncoder - Setting RelayState parameter to: '_f24913cc-072b-4bc5-91c1-81bf90d9868e', encoded as '_f24913cc-072b-4bc5-91c1-81bf90d9868e'
2020-02-17T08:47:41.035412 [APP/PROC/WEB/0] 08:47:41.035 [qtp474311562-6410] DEBUG PROTOCOL_MESSAGE -
2020-02-17T08:47:41.035419 [APP/PROC/WEB/0] <?xml version="1.0" encoding="UTF-8"?>
2020-02-17T08:47:41.035420 [APP/PROC/WEB/0] <samlp:AuthnRequest
2020-02-17T08:47:41.035424 [APP/PROC/WEB/0] AssertionConsumerServiceURL="https://my-app.mendixcloud.com/SSO/assertion"
2020-02-17T08:47:41.035426 [APP/PROC/WEB/0] AttributeConsumingServiceIndex="1"
2020-02-17T08:47:41.035428 [APP/PROC/WEB/0] Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified"
2020-02-17T08:47:41.035430 [APP/PROC/WEB/0] Destination="https://www.somedomain.tld:443/am/SSOPOST/metaAlias/idp"
...
...
2020-02-17T08:47:41.035491 [APP/PROC/WEB/0] <saml2p:RequestedAuthnContext Comparison="exact" xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol">
2020-02-17T08:47:41.035494 [APP/PROC/WEB/0] <saml:AuthnContextClassRef xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef>
2020-02-17T08:47:41.035496 [APP/PROC/WEB/0] </saml2p:RequestedAuthnContext>
2020-02-17T08:47:41.035498 [APP/PROC/WEB/0] </samlp:AuthnRequest>
2020-02-17T08:47:41.035501 [APP/PROC/WEB/0] 08:47:41.035 [qtp474311562-6410] DEBUG org.opensaml.ws.message.encoder.BaseMessageEncoder - Successfully encoded message.
2020-02-17T08:47:42.380334 [APP/PROC/WEB/1] 08:47:42.380 [qtp1735890395-6219] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Starting to unmarshall Apache XML-Security-based SignatureImpl element
2020-02-17T08:47:42.380350 [APP/PROC/WEB/1] 08:47:42.380 [qtp1735890395-6219] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Constructing Apache XMLSignature object
2020-02-17T08:47:42.381578 [APP/PROC/WEB/1] 08:47:42.381 [qtp1735890395-6219] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Adding canonicalization and signing algorithms, and HMAC output length to Signature
2020-02-17T08:47:42.381607 [APP/PROC/WEB/1] 08:47:42.381 [qtp1735890395-6219] DEBUG org.opensaml.xml.signature.impl.SignatureUnmarshaller - Adding KeyInfo to Signature
...
...
2020-02-17T09:17:47.237343 [APP/PROC/WEB/0] 09:17:47.235 [qtp1527906606-14] DEBUG org.opensaml.DefaultBootstrap - Initializing Apache XMLSecurity library
2020-02-17T09:17:47.270864 [APP/PROC/WEB/0] 09:17:47.269 [qtp1527906606-14] DEBUG org.opensaml.xml.parse.BasicParserPool - Setting DocumentBuilderFactory attribute 'http://javax.xml.XMLConstants/feature/secure-processing'
2020-02-17T09:17:47.270892 [APP/PROC/WEB/0] 09:17:47.270 [qtp1527906606-14] DEBUG org.opensaml.xml.parse.BasicParserPool - Setting DocumentBuilderFactory attribute 'http://apache.org/xml/features/disallow-doctype-decl'
2020-02-17T09:17:47.408373 [APP/PROC/WEB/0] 09:17:47.408 [qtp1527906606-14] DEBUG org.opensaml.DefaultBootstrap - Loading XMLTooling configuration /default-config.xml
2020-02-17T09:17:47.408708 [APP/PROC/WEB/0] 09:17:47.408 [qtp1527906606-14] DEBUG org.opensaml.xml.parse.BasicParserPool - Setting DocumentBuilderFactory attribute 'http://javax.xml.XMLConstants/feature/secure-processing'
2020-02-17T09:17:47.408722 [APP/PROC/WEB/0] 09:17:47.408 [qtp1527906606-14] DEBUG org.opensaml.xml.parse.BasicParserPool - Setting DocumentBuilderFactory attribute 'http://apache.org/xml/features/disallow-doctype-decl'
2020-02-17T09:17:47.432003 [APP/PROC/WEB/0] 09:17:47.431 [qtp1527906606-14] DEBUG org.opensaml.xml.XMLConfigurator - Loading configuration from XML Document
2020-02-17T09:17:47.454167 [APP/PROC/WEB/0] 09:17:47.453 [qtp1527906606-14] DEBUG org.opensaml.xml.XMLConfigurator - Schema validating configuration Document
2020-02-17T09:17:47.458507 [APP/PROC/WEB/0] 09:17:47.458 [qtp1527906606-14] DEBUG org.opensaml.xml.XMLConfigurator - Configuration document validated
2020-02-17T09:17:47.458925 [APP/PROC/WEB/0] 09:17:47.458 [qtp1527906606-14] DEBUG org.opensaml.xml.XMLConfigurator - Preparing to load ObjectProviders
2020-02-17T09:17:47.459707 [APP/PROC/WEB/0] 09:17:47.459 [qtp1527906606-14] DEBUG org.opensaml.xml.XMLConfigurator - Initializing object provider {http://www.opensaml.org/xmltooling-config}DEFAULT
2020-02-17T09:17:47.464583 [APP/PROC/WEB/0] 09:17:47.464 [qtp1527906606-14] DEBUG org.opensaml.xml.Configuration - Registering new builder, marshaller, and unmarshaller for {http://www.opensaml.org/xmltooling-config}DEFAULT
...
...
Kind regards Paul
↧
↧
Angular JS in combination with Mendix
Hi I am currently trying to implement a Angular JS component/code into my Mendix application and I am currently struggling to get it to work. Has anyone had experience in getting Angular to work alongside Mendix is there something that I have to do differently? I have used JQuery in combination with Mendix before and that was relatively straight forward. Regards
↧
How can I use REST API authentication in Mendix?
First of all, I am using Mendix 8.6.0 (build 715). [the choice was not available to me in the drop down menu] I have designed an API REST service (with Bonita) to which I can perfectly connect with Postman, with the following parameters: By the way, the x-www-form-urlencoded option that is selected comes from the Content-type application/x-www-form-urlencoded header that is not displayed in my screenshot. The official Bonita specification states that this header is needed and I always get a 200-OK status code as an answer. How can I specify an equivalent request with the body part in a Mendix Call REST service in a microflow? Here is what I have so far: I guess the body part should be specified in the Request tab, but I just don't know how to do it properly. I always get the following error message for my connector, which means that, whatever I specify, the username is not taken into account: An error has occurred while handling the request. [User 'Anonymous_69a378ed-bb56-4183-ae71-c9ead783db1f' with session id '5fefb6ad-XXXX-XXXX-XXXX-XXXXXXXXb34f' and roles 'Administrator']
↧
Hybrid mobile app doesn't show homepage on iOS when using custom widget
Hi, We have built a hybrid mobile app for one of our clients that contains a custom built widget. Unfortunately we are now running into the issue that, after building the app with PhoneGap, on iOS (Android and all browsers are fine) the loading screen does not show up and the user is ‘stuck’ in the splash screen with the message ‘loading up’. We have confirmed that the app works when we remove the custom widget, so the issue seems to be in the interplay between the widget/PhoneGap/iOS. Some extra information that might help: For the navigation to the home page we have built a custom microflow and when we debug we can see that also for iOS this microflow is fully executed without any errors, just when the screen should load nothing happens. The widget in question is not on this home page. The only custom Cordova/PhoneGap configuration we have is: <allow-intent href="*" /> <allow-navigation href="*" /> Has anyone else encountered something similar before? Any help would be appreciated, thanks in advance!
↧
↧
Why are Mendix Docker images so large?
Hi all, I am just trying to understand for my own reference, why Docker images built using the “Mendix Docker Build” scripts are so large. Even building a relatively small application, it ends up creating an image > 1GB in size without any additional build steps or amendments. Is there any way to reduce the size or best practices surrounding what to include and not include? I have tried only including what is absolutely necessary for the build to succeed, but there might be other folders items that can still be excluded? Any info would be appreciated :)
↧
Workflow Custom Widget
Hello Everyone, I’m working on a project and I want to create a custom widget on workflow. Can anyone give me some idea or any suggestion how to build the workflow custom widget.???
↧
Mendix Studio Pro 8.5 very slow
Hello guys Anyone else experiencing very slow performance on the Mendix Studio Pro 8.5 version? Saving takes about 4x longer, moving is very slow and mostly causes a programm crash, running the project takes longer… Pretty much everything just seems like its in slow-mo now. Cheers Ron
↧
How to customize home page
Hi Everyone, I would like to customize home page of my application, but I don’t know how to apply bootstrap class to mendix. For example, I would like to put a Text in front of image content but I don’t how to customize it. Could anyone explain me how works CSS customization within Mendix ? Thanks in advance, Charles Randriatahina
↧
↧
View attribute based on current selection Xpath-constrain / CurrentObject
Hi all, I have two entities . Title is an attribute of Presentation , not shown in the screenshot bellow. I have an presentation overview page, in which I see all presentations. When I click on the detail button I see the details of the selected presentation (pop-up layout). In that pop-up layout (named Edit Presentation page) there is a Review button. When I click it, i want to see in the reference selector only the Title of the previously selected presentation. At the moment the reference selector shows all presentations. I tried constraining the results with the following Xpath but the list is empty. [MyFirstModule.Review_Presentation/MyFirstModule.Review/MyFirstModule.Review_Presentation/MyFirstModule.Presentation = '[%CurrentObject%]'] I also tried when clicking the Add Review button to call a Microfolow that will get the currentObject but with no success. and of course the Review page that I am later trying to open, requires an Object of type Review to pass, except that I have none to pass since I am using a Presentation parameter. What am I doing wrong here and what is the best way to approach this? Thanks a lot Using 8.6 Mendxi version.
↧
Deploiment in AWS , Azure
I am trying to create a deploiment environment in the cloud (Azure or AWS) . On both platforms I succeeded to create a VM. so far so good. But when it comes to deploy my mda file (m2ee → unpack xxx.mda) it says Mendix Runtime not found for version 8.2.2.60770. You can try downloading it using the download_runtime command. And when I enter the command download_runtime it gives this error: ERROR: Checking download url http://cdn.mendix.com/runtime/mendix-8.2.2.60770.tar.gz failed, HTTP status code 403 How can I solve this problem?
↧
Search box for data grid when data source as microflow
Hi, I need to add the search option in my data grid, I use microflow as a data source for the data grid. Is there any way to use the search option in this scenario other than using data grid search filter widget. Because that widget set search bar for all the columns of the grid, but I need to set the search option for only some selected columns in grid.
↧
How to use and share a cookie from authentification API REST call?
First of all, I am using Mendix 8.6.0 (build 715). [the choice was not available to me in the drop down menu] I want to design a Proof of Concept (PoC) showing that Mendix can connect to a Bonita database through REST API calls. I just want to connect to the Bonita service, get some data (for instance, a object of “Employe” type) and then disconnect from the service. My main microflow looks like this: When I connect to my service via Postman, I get a token cookie for the session (called X-Bonita-API-Token for instance), which I have to copy and paste for all the subsequent REST API calls: How can I use it in Mendix as a parameter for my second API call? So far, I guess I have to specify it as a Custom HTTP Header, but I just cannot find what is the correct expression to put in the “Value” field. I am actually wondering where this token is stored in my Mendix application. Did I have to specify an import mapping as a response of the first authentification API call? Edit: The cookie I am looking for is located in the response header in Postman: But when I have a look at the REST calls log (at “trace” level), I can only see one “Set-Cookie” header, and not the one I am looking for: Is this part of my problem, also?
↧
↧
Text field color change based on attribute
When I enter value for text attribute1, The color for text Attribute2 should be changed to yellow
↧
AWS filtering to Mendix environments
Mendix version is 8.4.1 but I think this does not matter to the question. Currently I’m deploying some REST services on AWS. I would these resources to only be accessable from our Mendix environments, our office and some other IP-based locations. The configuration in AWS allows me to base these access rules on either of these 3 options: CIDR IP addresses Security Groups Note: In the above there is no option for domain based access. In our case I will not be able to filter out our mendix environments by allowing *.mendix.com or *.ourporject.mendix.com. Since there is no such option I would like to know what my other options are. I don’t think mendix has a dedicated CIDR range that I can whitelist? So far I found my only viable option to be regulating the mendix environments based on their IP-addresses. We use production, acceptance and test as servers. I don’t know how often these addresses change however and it’s not easy to maintain these. What are my options and has someone already been in a similar position?
↧
How to solve error CE1573 related to microflow parameter
Hi All, I am building an application and in settings home page of my app, I created a layout grid. In each layout grid, there are 5 columns with a container bloc. I want that for each container bloc, the user can access to related content by clicking on. So I set a “onclick” properties to show pages, but it occurs an error because objects (Questions) is not available on this page. So I created a microflow to call object before showing the concerned page and I linked it with my container bloc, but I have an other error (CE14573) such “Parameter ‘Question’ of selected microflow does not match available arguments.” I view documentation about error fix on mendix, but it doesn’t match with my error case. Could anyone can tell me what wrong and how can I fix this issue please ? Thanks in advance.
↧
How to improve code review ?
Hello, How can we check differences between 2 revision ? How are you managing code review ? We are using Mendix Modeler 6.10.2. After a commit it is difficult for a developer to see what are the changes. We have other applications in Java for which we use Crucible that allow us to see differences. Is it possible to include Crucible ? In other words, can you share your experience in “code review” ? Thank you
↧
↧
Keep Format when importing from Excel
Hello! I’m importing data to my application using ExcelImporter. However, the data in the fields (of the excel) is sometimes formatted (e.g. bold text or bullet points). This formatting is lost on the upload, which means the string is just plain text regardless of any formatting done in excel. Is there any way to import the data keeping the format (e.g. in bootstrap/HTML/etc)? I’m fine with a string consisting of for example: (not accurate but you get the point)
<p class="font-weight-bold">Bold text.</p> since there is a widget that can display the string with the formatting included. Does anybody have an answer? I’m using Mendix 7.23.11. Thanks in advance! Jan
↧
Difference xpath results
Heey Community, While testing my work i got the wrong result back from my retrive. After recreating my xpath in sql in postgres i found that the sql mendix makes was different. After changing how i wrote my xpath i got back the result i wanted. Now my question is why did i get back different results from my 2 xpaths when as far as i know they should give back the same. Xpath 1:
[Projecten.Project_Vestiging = $Vestiging]
[Projecten.ProjectRolToewijzing_Project/Projecten.ProjectRolToewijzing/Projecten.ProjectRolToewijzing_Medewerker = $Medewerker]
[Projecten.ProjectRolToewijzing_Project/Projecten.ProjectRolToewijzing
/Projecten.ProjectRolToewijzing_ProjectRol/Projecten.ProjectRol/_enumTijdslijn = $Search/ProjectRol]
[IsAfgerond = false()]
[_isActive = true()]
[Geannuleerd = empty]
[Gepauzeerd = false()]
[_Orderballon = false()]
Xpath 2:
[Projecten.Project_Vestiging = $Vestiging]
[Projecten.ProjectRolToewijzing_Project/Projecten.ProjectRolToewijzing
[Projecten.ProjectRolToewijzing_Medewerker = $Medewerker]
[Projecten.ProjectRolToewijzing_ProjectRol/Projecten.ProjectRol/_enumTijdslijn = $Search/ProjectRol]
]
[IsAfgerond = false()]
[_isActive = true()]
[Geannuleerd = empty]
[Gepauzeerd = false()]
[_Orderballon = false()]
Kind regards, Edo
↧
How to retrieve object to navigation menu
Hi Everyone, I need some help because I can not set my navigation menu because object is not available there. So I tried to retrieve object from Microflow in order to set my navigation but It seems that there are an error. Could anyone can tell me how to fix this error type ? Thanks in advance,
↧