You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by "wangjie-fourth (via GitHub)" <gi...@apache.org> on 2024/05/31 03:08:48 UTC

[PR] chore(doc): fix doc example code [incubator-fury]

wangjie-fourth opened a new pull request, #1666:
URL: https://github.com/apache/incubator-fury/pull/1666

   ## What does this PR do?
   according to comments,  should set `requireClassRegistration` to false
   
   
   ## Related issues
   
   
   ## Does this PR introduce any user-facing change?
   
   <!--
   If any user-facing interface changes, please [open an issue](https://github.com/apache/incubator-fury/issues/new/choose) describing the need to do so and update the document if necessary.
   -->
   
   - [ ] Does this PR introduce any public API change?
   - [ ] Does this PR introduce any binary protocol compatibility change?
   
   
   ## Benchmark
   
   <!--
   When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "wangjie-fourth (via GitHub)" <gi...@apache.org>.
wangjie-fourth commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621883592


##########
docs/guide/java_serialization_guide.md:
##########
@@ -83,7 +83,7 @@ public class Example {
   private static final ThreadSafeFury fury = Fury.builder()
     // Allow to deserialize objects unknown types, more flexible
     // but may be insecure if the classes contains malicious code.
-    .requireClassRegistration(true)
+    .requireClassRegistration(false)

Review Comment:
   done. please help review again



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621803304


##########
README.md:
##########
@@ -173,11 +173,8 @@ public class Example {
       ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
         // Allow to deserialize objects unknown types, more flexible
         // but may be insecure if the classes contains malicious code.
-        .requireClassRegistration(true)
+        .requireClassRegistration(false)

Review Comment:
   Looks good, could you update it in this PR



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "wangjie-fourth (via GitHub)" <gi...@apache.org>.
wangjie-fourth commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621850956


##########
README.md:
##########
@@ -173,11 +173,8 @@ public class Example {
       ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
         // Allow to deserialize objects unknown types, more flexible
         // but may be insecure if the classes contains malicious code.
-        .requireClassRegistration(true)
+        .requireClassRegistration(false)

Review Comment:
   done. please help review again



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621646392


##########
README.md:
##########
@@ -173,11 +173,8 @@ public class Example {
       ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
         // Allow to deserialize objects unknown types, more flexible
         // but may be insecure if the classes contains malicious code.
-        .requireClassRegistration(true)
+        .requireClassRegistration(false)

Review Comment:
   If we set it to false, it may mislead users think that it's OK to set it to false. But it's not actually. Disable check may introduce remote code execution



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621645685


##########
README.md:
##########
@@ -173,11 +173,8 @@ public class Example {
       ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
         // Allow to deserialize objects unknown types, more flexible
         // but may be insecure if the classes contains malicious code.
-        .requireClassRegistration(true)
+        .requireClassRegistration(false)

Review Comment:
   This is a dangerous option, how about removing this option from code in readme? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621859368


##########
docs/guide/java_serialization_guide.md:
##########
@@ -83,7 +83,7 @@ public class Example {
   private static final ThreadSafeFury fury = Fury.builder()
     // Allow to deserialize objects unknown types, more flexible
     // but may be insecure if the classes contains malicious code.
-    .requireClassRegistration(true)
+    .requireClassRegistration(false)

Review Comment:
   Could we delete comments and keep it as true? And invoke `fury.register(SomeClass)`  at the initialization



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "wangjie-fourth (via GitHub)" <gi...@apache.org>.
wangjie-fourth commented on code in PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666#discussion_r1621738839


##########
README.md:
##########
@@ -173,11 +173,8 @@ public class Example {
       ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
         // Allow to deserialize objects unknown types, more flexible
         // but may be insecure if the classes contains malicious code.
-        .requireClassRegistration(true)
+        .requireClassRegistration(false)

Review Comment:
   your are right. But this looks like comments and code are opposite. How about keep `requireClassRegistration` to true, and delete comments? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org


Re: [PR] chore(doc): fix doc example code [incubator-fury]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang merged PR #1666:
URL: https://github.com/apache/incubator-fury/pull/1666


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org