Asymmetric file deployment

Noted while dealing with Username/Password Retrieval bug.

After deploying changes to the repo file common/src/jsp/login/retrieve-username-password.jsp to VM i2u2-dev on 17Mar2016, I noted

  jgriffi8@i2u2-dev:/home/quarkcat$ sudo grep -R "@i2u2.org" --exclude-dir="i2u2svn" ./*
[sudo] password for jgriffi8:
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/cms/login/retrieve_002dusername_002dpassword_jsp.java (S)(3)
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/cosmic/login/retrieve_002dusername_002dpassword_jsp.java (C)(4)
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/ligo/login/retrieve_002dusername_002dpassword_jsp.java (S)(3)
./sw/tomcat/webapps/elab/WEB-INF/classes/elab.properties (C)
./sw/tomcat/webapps/elab/cms-tb/login/retrieve-username-password.jsp: (C)(4)
./sw/tomcat/webapps/elab/cms/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/cosmic/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/embedded/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/ligo/login/retrieve-username-password.jsp (C)(4)
./sw/local-settings/common/resources/classes/elab.properties (C)

The first three files listed are evidently created during deployment out of the file retrieve-username-pasword.jsp. One of them (cosmic/), shows hits in comments, as we'd expect if it were created from a file that contains "@i2u2" only in comments. The other two, though, (cms/ and ligo/) have active hits for "@i2u2", indicating that they were unaffected by the deployment. Edit confirms that this is strange, since the three files should be created simultaneously by the deployment scripts.

In addition, grep -R returns two binary files (not listed above) that it notes as associated with the two files

  ./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/cms/login/retrieve_002dusername_002dpassword_jsp.java (S)(3)
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/ligo/login/retrieve_002dusername_002dpassword_jsp.java (S)(3)

So, the /cosmic file that was updated does not seem to have a corresponding binary, making this even stranger.

On 23Mar2016, I noted that the same search returns

  jgriffi8@i2u2-dev:/home/quarkcat$ sudo grep -R "@i2u2.org" --exclude-dir="i2u2svn" ./*
[sudo] password for jgriffi8:
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/cms/login/retrieve_002dusername_002dpassword_jsp.java (C)(4)
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/cosmic/login/retrieve_002dusername_002dpassword_jsp.java (C)(4)
./sw/tomcat/work/Catalina/localhost/elab/org/apache/jsp/ligo/login/retrieve_002dusername_002dpassword_jsp.java (C)(4)
./sw/tomcat/webapps/elab/WEB-INF/classes/elab.properties (C)
grep: ./sw/tomcat/webapps/elab/cms-tb/jsp/users: No such file or directory
./sw/tomcat/webapps/elab/cms-tb/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/cms/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/cosmic/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/embedded/login/retrieve-username-password.jsp (C)(4)
./sw/tomcat/webapps/elab/ligo/login/retrieve-username-password.jsp (C)(4)
./sw/local-settings/common/resources/classes/elab.properties (C)

There's no trace of the binary files, and all jsp.java files are symmetric. I did restart VM i2u2-dev over the weekend (morning of 19Mar) while deploying to VM i2u2-prod. Perhaps that did the trick?

-- %USERSIG{JoelG - 2016-03-23}%

Comments

 
Topic revision: r1 - 2016-03-23, JoelG
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback