Skip to content

fix: remove Stack Overflow code references for ASF compliance#4283

Open
bobbai00 wants to merge 1 commit intoapache:mainfrom
bobbai00:fix/remove-stackoverflow-references
Open

fix: remove Stack Overflow code references for ASF compliance#4283
bobbai00 wants to merge 1 commit intoapache:mainfrom
bobbai00:fix/remove-stackoverflow-references

Conversation

@bobbai00
Copy link
Contributor

@bobbai00 bobbai00 commented Mar 12, 2026

What changes were proposed in this PR?

Removed all Stack Overflow references from source code to comply with ASF licensing policy. Stack Overflow content is licensed under CC-BY-SA, which is incompatible with the Apache License 2.0.

For each reference:

  • Removed the stack overflow URL comment
  • Rewrote any code derived from stack overflow (e.g., camelCase-to-title regex in JsonSchemaGenerator.scala)
  • Replaced stack-overflow-referencing comments with self-contained explanations

Files changed:

  • auth.service.ts — rewrote RxJS comment
  • JsonSchemaGenerator.scala — rewrote camelCase-to-title conversion without SO regex
  • PhysicalOp.scala — rewrote Jackson/Scala annotation comment
  • Controller.scala — rewrote Akka supervisor strategy comment
  • ServletAwareConfigurator.scala — rewrote class Javadoc
  • custom-webpack.config.js — removed SO link from webpack config comment
  • generic-web-response.ts — rewrote const enum comment

Any related issues, documentation, discussions?

Closes #3240

See https://www.apache.org/legal/resolved.html#stackoverflow

How was this PR tested?

These changes are comment rewrites and a functionally equivalent rewrite of one utility method (generateTitleFromPropertyName). The rewritten method was manually verified to produce identical output for all camelCase boundary patterns (e.g., camelCase, XMLParser, test123Value).

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.6)

@github-actions github-actions bot added engine fix frontend Changes related to the frontend GUI common labels Mar 12, 2026
@chenlica chenlica requested a review from aglinxinyuan March 12, 2026 06:02
@chenlica
Copy link
Contributor

@aglinxinyuan @Ma77Ball Please review it.

@bobbai00 bobbai00 changed the title fix(legal): remove Stack Overflow code references for ASF compliance fix: remove Stack Overflow code references for ASF compliance Mar 12, 2026
@bobbai00 bobbai00 self-assigned this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common engine fix frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apache Software Foundation does not let projects use code taken from Stackoverflow due to licensing issues

2 participants