[jira] [Updated] (OFBIZ-10443) Remove org.apache.tomcat.util.net.secure_protocol_version from json output

2018-06-25 Thread Shi Jinghai (JIRA)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-10443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shi Jinghai updated OFBIZ-10443:

Attachment: OFBIZ-10443-CommonEvents-20180626.patch

> Remove org.apache.tomcat.util.net.secure_protocol_version from json output
> --
>
> Key: OFBIZ-10443
> URL: https://issues.apache.org/jira/browse/OFBIZ-10443
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: Trunk
>Reporter: Shi Jinghai
>Assignee: Shi Jinghai
>Priority: Minor
> Attachments: OFBIZ-10443-CommonEvents-20180626.patch
>
>
> Visit [https://localhost:8443/example/control/createExampleAjax,] in the 
> output json, the 
> org.apache.tomcat.util.net.secure_protocol_version is unnecessary.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (OFBIZ-10443) Remove org.apache.tomcat.util.net.secure_protocol_version from json output

2018-06-25 Thread Shi Jinghai (JIRA)
Shi Jinghai created OFBIZ-10443:
---

 Summary: Remove org.apache.tomcat.util.net.secure_protocol_version 
from json output
 Key: OFBIZ-10443
 URL: https://issues.apache.org/jira/browse/OFBIZ-10443
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Affects Versions: Trunk
Reporter: Shi Jinghai
Assignee: Shi Jinghai


Visit [https://localhost:8443/example/control/createExampleAjax,] in the output 
json, the 

org.apache.tomcat.util.net.secure_protocol_version is unnecessary.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (OFBIZ-10438) Add method attribute to request-map to controll a uri can be called GET or POST only

2018-06-25 Thread Shi Jinghai (JIRA)


[ 
https://issues.apache.org/jira/browse/OFBIZ-10438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16523079#comment-16523079
 ] 

Shi Jinghai commented on OFBIZ-10438:
-

Hi Mathieu,

I submitted your patches in rev. 1834389. I made 3 small changes:
 # Added a matchRequestMethod method in service of ControlServlet.java to check 
whether the method configured in request-map matches the HttpServletRequest 
method.
 # Added support method="" same as method="all".
 # Narrowed the methods supported to GET or POST only as the original 
ControlServlet did.

If you check my modifications ok, I'll backport it to other versions JDK >= 1.8 
and close this issue.

Appreciate your help. Well done!

> Add method attribute to request-map to controll a uri can be called GET or 
> POST only
> 
>
> Key: OFBIZ-10438
> URL: https://issues.apache.org/jira/browse/OFBIZ-10438
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: Trunk
>Reporter: Shi Jinghai
>Assignee: Shi Jinghai
>Priority: Minor
> Attachments: 
> OFBIZ-10438_0001-Improved-Add-ControlServlet-service-method.patch, 
> OFBIZ-10438_0002-Improved-Add-optional-method-attribute-in-request-ma.patch, 
> OFBIZ-10438_0003-Improved-Factorize-default-request-search-in-Request.patch, 
> OFBIZ-10438_0004-Improved-Add-RequestHandler-resolveURI-method.patch
>
>
> As discussed in OFBIZ-4274, OFBiz runs doGet method in ControlServlet no 
> matter what request it is.
> I like Mathieu's comment on adding a method attribute to the request-map 
> element, it's almost the same as we implemented in our openapi:
>  
> {code:java}
> 
>    
>    
>    
>    
> 
> {code}
>  The difference is that we DON'T support method list expression:
> {code:java}
> ...
> {code}
>   
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)