{"id":37020923,"url":"https://github.com/olada/webjars-webfilter-resolver","last_synced_at":"2026-01-14T02:27:15.093Z","repository":{"id":57727895,"uuid":"132351228","full_name":"olada/webjars-webfilter-resolver","owner":"olada","description":"Webfilter which enables automatic resolving of webjars without versions similar to spring boot.","archived":false,"fork":false,"pushed_at":"2018-05-25T14:48:10.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T10:44:20.630Z","etag":null,"topics":["javaee","servlet3","webfilter","webjars"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-06T15:25:07.000Z","updated_at":"2018-05-09T21:18:28.000Z","dependencies_parsed_at":"2022-08-30T09:11:00.722Z","dependency_job_id":null,"html_url":"https://github.com/olada/webjars-webfilter-resolver","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/olada/webjars-webfilter-resolver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olada%2Fwebjars-webfilter-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olada%2Fwebjars-webfilter-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olada%2Fwebjars-webfilter-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olada%2Fwebjars-webfilter-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olada","download_url":"https://codeload.github.com/olada/webjars-webfilter-resolver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olada%2Fwebjars-webfilter-resolver/sbom","scorecard":{"id":704413,"data":{"date":"2025-08-11","repo":{"name":"github.com/olada/webjars-webfilter-resolver","commit":"711ab1758e07c3e166ccfc1220206cae23ad0f4f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4g9r-vxhx-9pgx","Warn: Project is vulnerable to: GHSA-7hfm-57qf-j43q","Warn: Project is vulnerable to: GHSA-crv7-7245-f45f","Warn: Project is vulnerable to: GHSA-hrmr-f5m6-m9pq","Warn: Project is vulnerable to: GHSA-mc84-pj99-q6hh","Warn: Project is vulnerable to: GHSA-xqfj-vm6h-2x34","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T06:06:53.483Z","repository_id":57727895,"created_at":"2025-08-22T06:06:53.483Z","updated_at":"2025-08-22T06:06:53.483Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javaee","servlet3","webfilter","webjars"],"created_at":"2026-01-14T02:27:14.495Z","updated_at":"2026-01-14T02:27:15.085Z","avatar_url":"https://github.com/olada.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/olada/webjars-webfilter-resolver.svg?branch=master)](https://travis-ci.org/olada/webjars-webfilter-resolver)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.olada/webjars-webfilter-resolver/badge.svg)](https://search.maven.org/#artifactdetails%7Ccom.github.olada%7Cwebjars-webfilter-resolver%7C0.1.0%7Cjar)\n\n# webjars-webfilter-resolver\nWebfilter which enables automatic resolving of webjars without versions.\n\nWebjars automatically places the webjar dependency onto the classpath which allows referencing the\nasset files simply by including the file like `webjars/bootstrap/4.1.0/css/bootstrap.min.css`.\nHowever you have to include the version (_4.1.0_ in the previous snippet).\n\nFor Spring Boot, you can simply place the dependency `webjars-locator` in your `pom.xml` which will\nautomatically resolve the versions.\n\nThis webfilter does the same for Java EE (or other web containers which implement the Servlet 3.1 API).\n\n# Features\nThis webfilter supports two response serve methods (behaviors).\n\n| Response Serve Method | Explanation |\n| ---- | ----------- |\n| REDIRECT | Requests to `webjars/foo/bar.js` will be resolved by returning a redirection header. The request will automatically be redirected to `webjars/foo/1.0.0/bar.js`. Therefore, the files are resolved by two requests which happens automatically in the browser.|\n| WRITE_BYTE_RESPONSE | **Default**. The content of `webjars/foo/1.0.0/bar.js` will immediately be written to the output stream. No redirection takes place.\n\nThe mode _WRITE_BYTE_RESPONSE_ is used by default. If you wish to override this behaviour, you can do so by\nsupplying the configuration in the `web.xml` file. Here is an example:\n```\n    \u003cfilter-mapping\u003e\n        \u003cfilter-name\u003ewebjarFilter\u003c/filter-name\u003e\n        \u003curl-pattern\u003e/webjars/*\u003c/url-pattern\u003e\n    \u003c/filter-mapping\u003e\n\n    \u003cfilter\u003e\n        \u003cfilter-name\u003ewebjarFilter\u003c/filter-name\u003e\n        \u003cfilter-class\u003eWebJarFilter\u003c/filter-class\u003e\n        \u003cinit-param\u003e\n            \u003cparam-name\u003eresponseServeMethod\u003c/param-name\u003e\n            \u003cparam-value\u003eREDIRECT\u003c/param-value\u003e\n        \u003c/init-param\u003e\n    \u003c/filter\u003e\n```\nIf an invalid parameter value is used, the response serve method will fall back to _WRITE_BYTE_RESPONSE_ and\na warning log entry will be written to the server log.\n\n## Usage\nTo use this webfilter, two dependencies are necessary. First, the actual webfilter-resolver from this repository.\nAdditionally, it expects a webjars-locator to be provided.\nThe reason for that is that for specific application servers, a special webjar-locator is necessary.\nIf this webfilter would include one of these locators by default, you would have to specifically\nexclude the locator from the dependency, if you are using a different application server than e.g. Wildfly.\n\n## Example for Wildfly\nFollowing dependencies are required for the webfilter to work on a Wildfly \nserver (tested with Wildfly 12 in Java EE 7 mode):\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.olada\u003c/groupId\u003e\n    \u003cartifactId\u003ewebjars-webfilter-resolver\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.webjars\u003c/groupId\u003e\n    \u003cartifactId\u003ewebjars-locator-jboss-vfs\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\u003c!-- The fact that the versions are equal is a coincidence :-) --\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folada%2Fwebjars-webfilter-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folada%2Fwebjars-webfilter-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folada%2Fwebjars-webfilter-resolver/lists"}