Allow setting of appPrefix in Spring Boot Starter Adaptive Form Rendering code.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- spring, spring-boot
Research direction
The issue is about modifying FluentFormsAutoConfiguration.java to make the Adaptive Form Service rendering code configurable. Look for the class and locate where StandardFormsFeederUrlFilters.getStandardInputStreamFilter() is used. The change involves adding a bean lookup for 'afInputStreamFilter' and reading a configuration property 'fluentforms.af.appPrefix'. Check existing Spring Boot configuration patterns in the project to understand how properties are bound and beans are defined. After implementing, verify by running any related tests or starting the application with a custom bean or property set.
Written by the indexing model from the issue text.
Description
The Adaptive Form Service rendering code in FluentFormsAutoConfiguration.java always uses StandardFormsFeederUrlFilters.getStandardInputStreamFilter(). Instead, this should be configurable.
It should be configurable in a couple of different ways. The client should be able replace this filter with a custom filter and there there should be an application.properties entry that can provide an appPrefix to the standardStreamFilter.
I would propose that I update the autoconfiguration class to look for a bean named afInputStreamFilter that implements Function<InputStream, InputStream>. If not provided, then it would default to StandardFormsFeederUrlFilters.getStandardInputStreamFilter().
This would allow you to provide a bean that would override the default using something like:
@Bean
public Function<InputStream, InputStream> afInputStreamFilter() {
return StandardFormsFeederUrlFilters.getStandardInputStreamFilter("/myClientApp");
}
Also, if no afInputStreamFilter is supplied but a configuration property called fluentforms.af.appPrefix is supplied, then we should set the appPrefix on the standardInputStreamFilter using the value of that property
- Dominant language
- Java
- Stars
- 7
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 4PointSolutions/FluentFormsAPI
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in 4PointSolutions/FluentFormsAPI
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100