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

Issue #2876 - RobotsServlet Improvement #2882

Merged
merged 6 commits into from
Aug 22, 2022

Conversation

pahupe
Copy link
Contributor

@pahupe pahupe commented Jul 22, 2022

Two new OSGi config properties have been introduced:

  • allow.page.property.names and
  • disallow.page.property.names
    to generate ALLOW and DISALLOW rules for single pages (path/page.html)

These can be combined with existing properties

  • allow.property.names and
  • disallow.property.names
    to ALLOW single pages (path/page.html) while DISALLOWing nested paths (path/page/), or vice versa.

See unit tests com.adobe.acs.commons.wcm.impl.RobotsServletTest#testAllowPathDisallowPage and com.adobe.acs.commons.wcm.impl.RobotsServletTest#testDisallowPathAndAllowPage for use cases.

Two new OSGi config properties have been introduced:
- allow.page.property.names and
- disallow.page.property.names
to generate ALLOW and DISALLOW rules for single pages (path/page.html)

These can be combined with existing properties
- allow.property.names and
- disallow.property.names
to ALLOW single pages (path/page.html) while DISALLOWing nested paths (path/page/), or vice versa
@davidjgonzalez davidjgonzalez requested a review from shsteimer July 22, 2022 14:22
@davidjgonzalez davidjgonzalez added this to the 5.3.4 milestone Jul 22, 2022
@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #2882 (bd7ab04) into master (ce3787a) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head bd7ab04 differs from pull request most recent head 856823d. Consider uploading reports for the commit 856823d to get more accurate results

@@             Coverage Diff              @@
##             master    #2882      +/-   ##
============================================
+ Coverage     54.05%   54.07%   +0.02%     
- Complexity     5609     5615       +6     
============================================
  Files           756      756              
  Lines         30779    30795      +16     
  Branches       3978     3981       +3     
============================================
+ Hits          16637    16653      +16     
  Misses        12594    12594              
  Partials       1548     1548              
Impacted Files Coverage Δ
.../com/adobe/acs/commons/wcm/impl/RobotsServlet.java 94.08% <100.00%> (+0.61%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@davidjgonzalez davidjgonzalez merged commit 42ad0dc into Adobe-Consulting-Services:master Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants