Github user kamaci commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/142#discussion_r75554351
  
    --- Diff: ivy/ivy.xml ---
    @@ -76,10 +76,10 @@
         <dependency org="com.google.guava" name="guava" rev="11.0.2" />
         <dependency org="com.google.code.crawler-commons" 
name="crawler-commons" rev="0.5" />
         
    -    <dependency org="org.restlet.jse" name="org.restlet" rev="2.3.7" 
conf="*->default" />
    -    <dependency org="org.restlet.jse" name="org.restlet.ext.jackson" 
rev="2.3.7" conf="*->default" />
    -    <dependency org="org.restlet.jse" name="org.restlet.ext.jaxrs" 
rev="2.3.7" conf="*->default" />
    -    <dependency org="org.restlet.jee" name="org.restlet.ext.crypto" 
rev="2.3.7" conf="*->default" />
    +    <dependency org="org.restlet.jse" name="org.restlet" rev="2.2.3" 
conf="*->default" />
    --- End diff --
    
    I had to solve very challenging tasks to solve authorization at 
NutchServer. When you construct dependencies of Nutch you will see that jersey 
1.9 is used and it is to dangerous to upgrade it to newer major version: 2.x.
    
    When you use jersey 2.x you have an ability to use @RolesAllowed, @Priority 
or ContainerRequestFilter etc. but you can't do it with current dependency 
complexity at Nutch. 
    
    You can use filters with restlet 2.3.7 for authorization but I couldn't not 
use restlet 2.3.7 (I've reverted the version to 2.2.3) because restlet 2.3.7 
forces you to use jersey 2.x when you want to use such filters.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to