Yunus Emre Bektas Posted March 12, 2019 Share Posted March 12, 2019 Hi, Our web application url is static but it includes the some parameters and its values are dynamic. how can i set relaxtion rule for this url.The url is similar to the below. http://abc.com/aaaaaaa_reqid=1234/ccccccc_personid=22/cccccccc_companyid=255 Thanks, Link to comment
Rhonda Rowland1709152125 Posted March 12, 2019 Share Posted March 12, 2019 So the question is are the path elements aaaa / cccc fixed values or are they also variables. Or is it just their values reqid=<value> and personid=<value> A few more details would help narrow down what expression will work for you. But I'll assume, in the first optino that <name>_reqid, <name>_personid, and <name>_companyid are fixed and only their values change. Option 2 I'll get a little more exotic. Option 1: Including option https just in case... ^https?://abc[.]com/aaaaaaa_reqid=\d{4}/ccccccc_personid=\d{2}/ccccccc_companyid=\d{3}$ If there are additional parameters, you may need to leave the $ off or include /$ depending on how the URL terminates. Option 2: if all the <name> fields are dynamic, then a few more pieces of info would help about sample strings, but something like this may work. I'll run it through a regex editor later and make any corrections. This may be overly broad in a few cases ^https?://abc[.]com/([^_].*)_reqid=\d{4}/([^_].*)_personid=\d{2}/([^_].*)_companyid=\d{3}$ ^https?://abc[.]com/([^_].*)_reqid=\d{4}/([^_].*)_personid=\d{2}/([^_].*)_companyid=\d{3}/$ Depends on what else needs to apper in URL whether the $ or /$ should be included. Link to comment
Yunus Emre Bektas Posted March 14, 2019 Author Share Posted March 14, 2019 Hi, The url would be as the below. Only respid, personId etc.. values are dynamic, other section of the url will not change. I tested opiton 1 according to my url but it did not work. http://X.X.X.X/display.domspg=/person/pages/req/&RegpId=133311111&personId=231313123&pcompanyId=231313222&puserId=2333322&_enc=iso9929-9 Link to comment
Rhonda Rowland1709152125 Posted March 15, 2019 Share Posted March 15, 2019 Are you getting blocked by StartURL or Form Field Consistency as you may also need to include these fields as exemptions for Form Field Consistency as well. Is this still an accurate sample of the URL path using display.domspg. Is it missing a call to a specific path/script name and is there a "?" missing from the string you provided. If so, this won't work as written. 1. What regex are you trying as their may be errors in it. As the one I gave you previously, won't work for this new pattern. 2. Is this the only URL call with these parameters or do other page calls invoke them as well. Syslog can help you see if there are multiple calls. 3. Learning can help you consolidate the rules if something more generic is needed. Relative Path: (Assumes you are not using URLClosure) [^?]+/display[.]domspg=/person/pages/req/&RegpId=\d{9}&personId=\d{9}&pcompanyId=\d{9}&puserId=\d{7}&_enc=iso\d{4}-\d{1} This one expects only specific number of digits for RegpId, personId, pcompanyId, puserId. If these can vary, additional adjustments may be required. parameter names are case sensitive, so "I" in id is capitalized. If other pages/scripts invoke a call to these parameters, adjustments to url are needed. If other parameters can appear in this, adjustments to URL are needed. Learning may help for better management of the Start URL and Form Field Consistency exceptions required. Link to comment
Yunus Emre Bektas Posted March 18, 2019 Author Share Posted March 18, 2019 Hi, I opened Crome in inspect mode and i see that the some urls are being calling at the back plane (gif, png file etc). May i need to type all url that i see in inspection mode to the relaxion rule? Thanks, Link to comment
Rhonda Rowland1709152125 Posted March 18, 2019 Share Posted March 18, 2019 Yes probably. I would try to use learning to help you learn the number of URL patterns you might require and see if there is a better way to "allow" them. Link to comment
Question
Yunus Emre Bektas
Hi,
Our web application url is static but it includes the some parameters and its values are dynamic. how can i set relaxtion rule for this url.The url is similar to the below.
http://abc.com/aaaaaaa_reqid=1234/ccccccc_personid=22/cccccccc_companyid=255
Thanks,
Link to comment
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.