Skip to content

Conversation

@omveer999
Copy link

All previous security fixes (CSRF, password hashing, etc.)
All product management fixes (file uploads, form submissions)
GitHub Actions fix (labeler.yml) - so no more workflow errors
Complete documentation

Omveer added 2 commits August 19, 2025 18:01
Security Improvements:
- Enable CSRF protection across all forms
- Implement BCrypt password hashing
- Remove plain text password storage
- Fix circular dependency in Spring configuration
- Add proper static resource configuration

Product Management Fixes:
- Replace URL input with file upload for product images
- Fix product description and image display in update forms
- Resolve 'Method Not Allowed' errors for form submissions
- Fix category selection in product update forms
- Implement proper file upload handling with MultipartFile

Technical Improvements:
- Add PasswordEncoderConfig for dependency resolution
- Fix productDao update method
- Add file upload directory structure
- Improve error handling for file uploads
- Add comprehensive documentation

Files Modified:
- SecurityConfiguration.java: CSRF, password encoding, static resources
- AdminController.java: File upload handling
- userService.java: Password hashing
- userDao.java: Remove plain text login, fix HQL queries
- All JSP forms: Add CSRF tokens
- application.properties: Static resource configuration

New Files:
- PasswordEncoderConfig.java: Dependency resolution
- PasswordMigrationUtil.java: Password migration utility
- SECURITY_IMPROVEMENTS.md: Security documentation
- PR_SUMMARY.md: Pull request summary

This commit addresses critical security vulnerabilities and improves
the overall functionality and user experience of the e-commerce application.
@jaygajera17
Copy link
Owner

Hi @omveer999 , I will review this PR and get back to you
Thanks!

@jaygajera17 jaygajera17 self-requested a review August 19, 2025 17:15
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