Getting CMIS exception "Operation not supported by the repository for this object" When trying to apply policy or remove policy - cmis

I'm getting a CMIS exception "Operation not supported by the repository for this object" When trying to apply policy or remove policy.These Interfaces are never been invoked. In allowableActions I set CAN_APPLY_POLICY and CAN_REMOVE_POLICY for the object, so that in the CMIS workbench we are able to see the Apply/Remove policy options in the Actions tab, but whenever we click on these buttons we are getting this exception.Is there any other property I need to set inorder to call these apply/remove policy api's?

Related

Azure B2C custom policy calling a RESTfull provider from a DisplayControl error handling

How does one handle failures when using a DisplayControl which calls the RESTfull provider during the "SendCode" action?
I.e. when the HTTP endpoint is unavailable and the user selects the send code button, then the flow just hangs with the "progress bar" icon displaying.
I've tried changing the ValidationClaimsExchangeTechnicalProfile's "ContinueOnError" setting, but when setting it to true, it just skips to the next ValidationClaimsExchangeTechnicalProfile. I've even added a boolean assert validation in the next validation, nothing happens.
The only way forward seems to be doing full "custom pages" using <TechnicalProfile Id="PhoneVerificationPage1"> as per the "phone-number-passwordless" sample...?
Further information:
When the RESTfull provider is called directly from a orchestration step the following expected error is returned:
When the API is unavailable, we have a 30sec timeout, and retry 3 times, this is likely what you see as a hang. Once it comes back, you can configure errors as per this doc:
https://learn.microsoft.com/en-us/azure/active-directory-b2c/restful-technical-profile#error-handling

B2C custom policy invitation link expiry custom error message

I have setup azure b2c custom policy for inivation flow, using this sample https://github.com/mrochon/b2csamples, it's working fine, but when the inivation link gets expired, and user opens that it shows error page with
"AADB2C90017: The client assertion provided in the request is invalid: 'client_secret' was used as the verification key"
I want to change the error message so user can know that link is expired.
You can Set a custom error page UI and Use CSS to hide the default error message.
Using JavaScript parse the default error message when it contains "AADB2C90017", then show a custom error message.
There are some samples which explains how to enable java script

Azure WAF custom policy giving an error when saving

I get the following error when I try to save an updated Azure WAF custom policy.
"Failed to update the WAF policy 'xxxxx'. Error: WebApplicationFirewallPolicy validation failed.
More information "Match Variable RemoteAddr must be used with Operator(s) IPMatch,GeoMatch"."
IP address is there then I have deny traffic. Update works but the error comes up and I hit save
I found out that if you have more than one and and if any of the rules have any error, you cannot save. If you get an error like this, you need to check all the rules. The other rule had an error and everything worked after I corrected it.

IIB - BIP4761E: The message flow attempted to use 'SecurityProfiles' policy

I' am trying to set LDAP Auth on Pet Store REST API in IBM App Connect v11.0.0.6 In order to do so, I have followed this guide:
Creating a security profile for LDAP
I made a BAR file out of my "pet" REST API, deployed policy to the same Integration Node, then in flow properties tried to pick my ldapPolicy but it was not present. When I enter it manually and deploy I end up with this error:
Begin running task [Deploying [pet.bar] to integration server [InteriorIntegration]]
The BAR file C:/WorkDir/workspace/pet/pet.bar has been deployed to InteriorIntegration but there were one or more failures which may mean the deployed resources will be unable to execute.
The following message was received:
BIP9339W: The values defined in the policy(s) 'ldapPolicy' in policy project 'ldapTest' match the values of the existing policy(s). Any deployed resources using the policy(s) will not be affected by the redeploy of the policy project.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9320E: Message Flow 'gen.pet', 'gen.pet' encountered a failure and could not start.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9320E: Message Flow 'gen.pet', 'gen.pet' encountered a failure and could not start.
BIP4761E: The message flow attempted to use 'SecurityProfiles' policy 'ldapPolicy', which has not been defined in the integration server.
BIP9333W: RestAPI 'pet' has been changed but contains errors which has prevented some resources from starting.
BIP1096E: The source 'pet.bar' has been deployed but there were one or more failures which may mean the deployed resources will be unable to execute.
The task did not complete successfully: The deployment was partially successful. Check error messages for explanation.
And here is my Policy XML:
<?xml version="1.0" encoding="UTF-8"?>
<policies>
<policy policyType="SecurityProfiles" policyName="ldapPolicy" policyTemplate="SecurityProfiles">
<authentication>LDAP</authentication>
<authenticationConfig>ldap://example.com:389/ou=example</authenticationConfig>
<mapping>NONE</mapping>
<mappingConfig></mappingConfig>
<authorization>LDAP</authorization>
<authorizationConfig>ldap://example.com:389/ou=example</authorizationConfig>
<propagation>false</propagation>
<idToPropagateToTransport>Message ID</idToPropagateToTransport>
<transportPropagationConfig></transportPropagationConfig>
<keyStore>Reserved for future use</keyStore>
<trustStore>Reserved for future use</trustStore>
<passwordValue>PLAIN</passwordValue>
<rejectBlankpassword>true</rejectBlankpassword>
</policy>
</policies>
What am I missing?
Note:
BIP9339W: The values defined in the policy(s) 'ldapPolicy' in policy project 'ldapTest' match the values of the existing policy(s). Any deployed resources using the policy(s) will not be affected by the redeploy of the policy project.
EDIT:
I think the above error occurs because ldapTest is already deployed (?). If so then why I cannot choose this policy in security profile dropdown?
Error from event logs:
( Int.Server ) The message flow attempted to use ''SecurityProfiles'' policy ''ldapPolicy'', which has not been defined in the integration server.
Policies need to be set on the integration server. Use the administrative REST API to check that a '''SecurityProfiles'' policy called ''ldapPolicy' exists.
Use the toolkit to create the required policy and deploy it to the integration server, or adjust the message flow to avoid requiring the policy.
After few days of trying to find an answer in docs and going trough trial and error I found out that to set Security Profile Name field you have to use special syntax:
{PolicyProjectName}:PolicyName
So for example if you create and deploy MyPolicies project and you want to use MyPolicy policy you have to type in Security Profile Name:
{MyPolicies}:MyPolicy

Actions on Google - Unable to use "quick account linking"

I set up my Actions on Google project with account linking enabled and the Implicit flow, it's working fine. However, when I try to select "Add quick account linking", after I save and click "Test Draft", it goes to the simulator page with an error message "Failed to enable simulator".
The error happens whether I select "Account creation", "Auto Google Sign-in" or both. I've filled the fields "GSI Client ID", "Token URL" and "Learn More URL" with proper values.
I can see under the hood that a POST query is made to https://console.actions.google.com/u/0/m/actions/agents/draft/createlocalizeduserpreview and returns a 500 error with "status":13. When I unselect "Add quick account linking", the same query succeeds and no error is displayed.
Did anyone get this to work?
Did you follow the steps to extend the Implicit flow and add a new endpoint that would handle the assertion request based on a JWT? This needs to be a new endpoint, and is similar to what you needed to do if you were implementing the Auth Code flow.
If so, verify that this endpoint is being called, that you're parsing the JWT correctly, and that you're returning either an auth code or a valid redirect to have the user sign-in.

Resources