[ 
https://issues.apache.org/jira/browse/NUTCH-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428866#comment-15428866
 ] 

ASF GitHub Bot commented on NUTCH-2294:
---------------------------------------

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.


> Authorization Support for REST API
> ----------------------------------
>
>                 Key: NUTCH-2294
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2294
>             Project: Nutch
>          Issue Type: Sub-task
>          Components: REST_api, web gui
>            Reporter: Furkan KAMACI
>            Assignee: Furkan KAMACI
>             Fix For: 2.4
>
>
> Add authorization for Nutch REST API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to