Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not try to set a default for Collection fields in Sling Models #3210

Merged

Conversation

kwin
Copy link
Contributor

@kwin kwin commented Nov 15, 2023

This prevents the error "WARN
org.apache.sling.models.impl.ModelAdapterFactory - Cannot provide default for java.util.List<java.lang.String>" being issued due to https://issues.apache.org/jira/browse/SLING-11812

This closes #3209

@kwin kwin marked this pull request as ready for review November 15, 2023 16:44
@kwin kwin requested a review from davidjgonzalez November 15, 2023 16:44
@kwin kwin force-pushed the bugfix/fix-default-for-dispatcherflushmodelimpl branch from 023232e to 86ee1b8 Compare November 15, 2023 17:01
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (master@af49ce1). Click here to learn what that means.

Files Patch % Lines
...tion/dispatcher/impl/DispatcherFlushModelImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3210   +/-   ##
=========================================
  Coverage          ?   55.23%           
  Complexity        ?     5469           
=========================================
  Files             ?      720           
  Lines             ?    29497           
  Branches          ?     3837           
=========================================
  Hits              ?    16293           
  Misses            ?    11681           
  Partials          ?     1523           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kwin kwin force-pushed the bugfix/fix-default-for-dispatcherflushmodelimpl branch from c17bd0f to 304e0ab Compare November 15, 2023 18:25
@kwin kwin added this to the 6.3.2 milestone Nov 15, 2023
This prevents the error "WARN
org.apache.sling.models.impl.ModelAdapterFactory - Cannot provide
default for java.util.List<java.lang.String>" being issued due to
https://issues.apache.org/jira/browse/SLING-11812

This closes #3209
@kwin kwin force-pushed the bugfix/fix-default-for-dispatcherflushmodelimpl branch from 304e0ab to 7063967 Compare November 15, 2023 19:31
@davidjgonzalez davidjgonzalez merged commit d66f620 into master Nov 15, 2023
14 of 20 checks passed
@davidjgonzalez davidjgonzalez deleted the bugfix/fix-default-for-dispatcherflushmodelimpl branch November 21, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants