Comments (5)
Hi @Jared632, not sure what you are trying to achieve by doing text comparison against an xml fragment, but you should be able to compare only the text of real interest (i.e. the actual filter element text) using RegexMatch function and that would be the way forward for you.
from mimwal.
I'm closing this issue as Won't Fix as doing text comparison against an xml fragment is a losing battle. If I look at the out of box sets, e.g. All Active People set, it has the same order as WAL. So if there is a needed, you'd have a better success rate doing text comparison of actual filter xpath (and even then the comparison would be meaningless if you have and/or such clauses as order is immaterial in XPath, but obviously text comparison would fail)
from mimwal.
I have seen this behavior in the Set XPath Filter and the Workflow XOML. I actually do comparisons with BeyondCompare and their XML Tidy Sorted/Ordered custom file formats. Works very well for MIM.
from mimwal.
I am noticing this same behavior for the Filter attribute on Group objects. However I'm not trying to compare Filters from different Groups or Sets for any reason. It is a much bigger issue for me.
When a normal user without permissions to modify the Filter attribute opens up a Group with Filter value supplied by this function in a workflow, if they change something like DisplayName and view the Members tab (manager based group), the summary page shows that they are updating the Filter attribute. The user is then prevented from being able to successfully complete their change as they receive permission denied modifying the Filter attribute.
It appears that when a user changes some other attribute and views the Members tab, the page re-writes the Filter attribute with the XML switched like the original poster mentions. Issue doesn't happen if only changing an attribute and NOT viewing the Members tab. Also doesn't happen with no other change and still viewing the Members tab.
I do understand that the original FIM Service code might write the Filter XML differently in Sets or Groups. It should order the XML namespaces consistently each time which may not be happening.
However, wouldn't it make more sense to update the string in the function to support Group objects vs Sets as in majority of the cases, Sets are viewed by Admins who are able to update the Filter attribute if this same situation were to happen?
Hopefully I've explained the situation thoroughly enough. If not feel free to ask for more information. I'd like to avoid having to compile my own version of the WAL for a client to correct this problem.
from mimwal.
Given backward compatibility concerns, you could make a copy of the existing function, call it "WrapXPathFilter2", make the edits and send a pull request. So whenever a next version is released, it will have this new function.
from mimwal.
Related Issues (20)
- GenerateRandomPassword function and consecutive characters HOT 2
- GenerateRandomPassword Function not present HOT 4
- Check Target exists before executing activity HOT 2
- Event ID 41501 Thrown during Generate Unique Value Activity HOT 2
- Build solution - The referenced component 'WorkflowActivityLibrary' could not be found. WorkflowActivityLibrary.UI HOT 3
- Failure adding assembly to the cache: Strong name signature could not be verified HOT 2
- GenerateUniqueValue conflict filter parsing starts-with
- Generate Unique ID limit HOT 1
- Feature request - Adding dot notation support to Converttonumber HOT 1
- Feature Request : Add a possibility to query Azure AD in the "Generate Unique Value Activity"
- This repo is missing important files HOT 1
- With IIF statement, both true and false conditions are evaluated HOT 2
- Update Resource - PowerShell activity Error
- WorkflowManager could not deserialize XOML definition HOT 9
- MIMWAL UI display issue HOT 24
- MIM Portal ignoring extra lines in xoml HOT 2
- Feature Request - CamelCase HOT 4
- DateTimeFromFileTimeUTC Function error (attribute Type) HOT 5
- Verify Request - Error Message HOT 2
- Issue with deleting ids from MIM portal HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimwal.