GSoC with OpenMRS — Week 4 Update

This week I had to put the XSS vulnerability on hold due to an error that wouldn’t let me update the code with Maven. I have since fixed this error and have submitted my first pull request, which I will talk about in this week’s blog.

The Error:
When I attempted to change a header on the Manage Appointments page (so I could test how to make changes to the code), I hit an error when running mvn clean package in command line. The error was to do with the RubyGems link in the code, as the one provided did not support HTTPS and therefore my version of Maven could not use it, and would not run.

The Fix:
To fix this issue, I had to do some research (with the help of my mentor) to find a link for RubyGems that supported HTTPS rather than just HTTP. Once I found a link, I would test it using mvn clean package, and I eventually found a link that worked! After checking with my mentor, I was ready to submit my first ever PR (pull request).

The PR:
To submit my PR, I first had to make sure I had cloned the right forked repository on GitHub and made the correct changes to the code. I then ran git add, git commit, and git push in order to get my code onto the forked repository. After this I used GitHub to create a pull request with my changes, let my mentor know, and soon after my code was approved.


Next week I am fully ready to start patching the security vulnerabilities.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kate Belson

BSc Computer Science Student at University of Exeter. Participating in Google Summer of Code for OpenMRS.