Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPD-45919 Remove plugins/codesnippetgeshi so it is not shipped in our liferay-ckeditor #222

Closed
wants to merge 1 commit into from

Conversation

antonio-ortega
Copy link
Member

Previous pull requeest

As suggested here rather than creating a huge patch, we can do the same just removing that directory when building liferay-ckeditor.

…ckeditor due to potential risks since this library is not actively mainteined anymore
Copy link
Member

@markocikos markocikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonio-ortega please see comments inside

Comment on lines +72 to +74
# Remove codesnippetgeshi plugin
rm -rf temp/plugins/codesnippetgeshi

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inventive, but not exactly what I had in mind. With this, we would first make a production build, that includes unwanted dir, and delete that dir after. A better solution is to exclude unwanted dir from production build itself, so it's not added in the first place. We can do this by adding exclusion pattern to CKBUILDER_CONFIG in build-config.js. That's what I did in #220, adding samples string to ignore array. Note that there is a version of this file in both dev subrepo and main repo, as the build copies the config file itself. It may be safe to delete file in main repo, but I wasn't sure, so I just updated it in both places.

Is the intent to remove codesnippetgeshi/dev dir, or the whole plugin? If it's dev dir, I am noticing dev is already in the exclusion list, and codesnippetgeshi/dev is already not added to production build. If the intent is to remove the whole plugin, just adding codesnippetgeshi to exclusion list should do it. Is this safe to remove the whole plugin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a really good point! I hadn't noticed we are already removing dev folder from plugin, which is exactly the way how CKEditor addressed this case.

Having a look at their current master branch, where this is issue is considered fixed, they still have that plugin.js file.

Based on that, I think we are not vulnerable to this issue and we can close this pull request.

Thanks.

Regards.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what generated this change, but it looks wrong and is probably causing the CI failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants