Title: `aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression · Issue #124 · adobe/aio-lib-java · GitHub
Open Graph Title: `aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression · Issue #124 · adobe/aio-lib-java
X Title: `aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression · Issue #124 · adobe/aio-lib-java
Description: Expected Behaviour The OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF. For this Adobe I/O Events' OSGI Event Ma...
Open Graph Description: Expected Behaviour The OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF. ...
X Description: Expected Behaviour The OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF. ...
Mail addresses
shehjkhan@gmail.com
Opengraph URL: https://github.com/adobe/aio-lib-java/issues/124
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression","articleBody":"\u003c!--- STOP! Before you open an issue please search this repository's issues to see if it has already been reported. This helps reduce duplicate issues from being created. -->\r\n\u003c!--- SECURITY DISCLOSURE: If this is a security disclosure please follow the guidelines in CONTRIBUTING.md. This helps keep folks from accidentally releasing vulnerabilities before the maintainers get a chance to fix the issue. -->\r\n\r\n### Expected Behaviour\r\nThe OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF.\r\n\r\nFor this Adobe I/O Events' OSGI Event Mapping should support regex expression in OSGI JCR Path Filter Field\r\n\r\n\r\n\r\n\r\n### Actual Behaviour\r\nIn this specific use cases only event should only be passed from AEM when the path matches the regex expression\r\n\r\n\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\n#### Steps to Reproduce\r\n\r\n#### Platform and Version\r\n\r\n#### Sample Code that illustrates the problem\r\nhttps://github.com/adobe/aio-lib-java/blob/main/aem/events_osgi_mapping/src/main/java/com/adobe/aio/aem/event/osgimapping/eventhandler/AdobeIoEventHandler.java#L118\r\n\r\nAbove code needs to be changed to support regex rather than just checking startsWith\r\n\r\nTo support current use case of startsWith\r\n String pdfPath = \"/content/dam/daiuyijava.pdf\";\r\n String regex = \"/content/dam/([^/]+)\";\r\n Pattern pt = Pattern.compile(regex)\t;\r\n Matcher mt = pt.matcher(pdfPath);\r\n System.out.println(mt.matches());\r\n\r\nTo support more fine grain cases for example only send event when it is a PDF asset\r\n String pdfPath = \"/content/dam/daiuyijava.pdf\";\r\nString regex = \"/content/dam/([^/]+)+\\\\.(pdf|PDF)\";\r\n Pattern pt = Pattern.compile(regex)\t;\r\n Matcher mt = pt.matcher(pdfPath);\r\n System.out.println(mt.matches());\r\n\t\t\r\n#### Logs taken while reproducing problem\r\n","author":{"url":"https://github.com/shehjad-khan","@type":"Person","name":"shehjad-khan"},"datePublished":"2022-08-19T16:35:14Z","url":"https://github.com/adobe/aio-lib-java/issues/124"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45352910-8227-ff4c-beac-f663451b51dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4FC:184CED:76C430:A0B065:6AED2BB1 |
| html-safe-nonce | a520a7149a7ce5e836181ff1cebfd169d134b9e4b47ec39f0e4a9b85b542e94c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEZDOjE4NENFRDo3NkM0MzA6QTBCMDY1OjZBRUQyQkIxIiwidmlzaXRvcl9pZCI6IjIxMjE3MjY5NTg1NTMwODI4MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2b5fbff6df89932162e442f82cf41f60db44f9aca6971903c899ebfedfad0558 |
| hovercard-subject-tag | issue:1344665319 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adobe/aio-lib-java/124/issue_layout |
| twitter:image | https://opengraph.githubassets.com/883326f4e466680e5330d283803b288c094f1e1a912db5c5a71ff1c7e18ec643/adobe/aio-lib-java/issues/124 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/883326f4e466680e5330d283803b288c094f1e1a912db5c5a71ff1c7e18ec643/adobe/aio-lib-java/issues/124 |
| og:image:alt | Expected Behaviour The OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shehjad-khan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/adobe/aio-lib-java git https://github.com/adobe/aio-lib-java.git |
| octolytics-dimension-user_id | 476009 |
| octolytics-dimension-user_login | adobe |
| octolytics-dimension-repository_id | 373202255 |
| octolytics-dimension-repository_nwo | adobe/aio-lib-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 373202255 |
| octolytics-dimension-repository_network_root_nwo | adobe/aio-lib-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width