Setting COOKIES_HTTP_ONLY=true does not apply to all cookies
When setting the COOKIESHTTPONLY=true in dotmarketing-config.properties it only sets JSESSIONID cookie to HttpOnly, not the dmid, opvc or sitevisitscookie.
- dotCMS version used: 4.1
Related to: https://my.dotcms.com/tickets/detail.dot?id=53d0cdda-a7f1-407e-b920-34bbf736df26
PR: https://github.com/dotCMS/core/pull/12290
Passed QA. Running curl command successfully verifies that when COOKIES_HTTP_ONLY=true in dotmarketing-config.properties, JSESSIONID, dmid, opvc and sitevisitscookie are showing HttpOnly enabled.
ShayNg@RetMBP14~ $ curl --HEAD http://localhost:8080/index
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=12799A3321703DDB7C196414FBDB272D; Path=/; HttpOnly
Set-Cookie: opvc=753c75a8-18f6-484d-9bad-3075ca2e9c14; Path=/; HttpOnly
Set-Cookie: sitevisitscookie=1; Expires=Fri, 24-Jun-2022 21:33:17 GMT; Path=/; HttpOnly
Set-Cookie: dmid=e9ca3d54-8253-4675-8c05-f1c15ddae685; Expires=Fri, 24-Jun-2022 21:33:17 GMT; Path=/; HttpOnly
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 09 Aug 2017 21:33:19 GMT
In addition, browser shows status of these cookies:

Tested locally on master branch. Ubuntu 14.04.1 / Postgres 9.3.7 / Firefox 47 / Tomcat 8 / Java 8
commit with the hotfix: https://github.com/dotCMS/support/commit/fdc39381475eb8af1d0294f8b4ee9a31b5284a9c
PR: https://github.com/dotCMS/core/pull/12400 Test via Curl:
erickgonzalez@~/Documents/master/tomcat8$ curl --HEAD http://localhost:8080/
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=5FE1A0B33206481E17CC78B38CBD6054; Path=/; HttpOnly
Set-Cookie: opvc=120e3725-a982-4287-acff-077abc52323e; Path=/; HttpOnly
Set-Cookie: sitevisitscookie=1; Expires=Thu, 07-Jul-2022 22:09:33 GMT; Path=/; HttpOnly
Set-Cookie: dmid=d0f86537-d22f-44f2-bb8d-ba7db41019b7; Expires=Thu, 07-Jul-2022 22:09:33 GMT; Path=/; HttpOnly
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 22 Aug 2017 22:09:34 GMT
Passed QA Upgrade from dotcms_3.6 with client dataset (db and assets) to master branch Ubuntu 14.04.1 / Postgres 9.3.7 / Firefox 47 / Tomcat 8 / Java 8
ShayNg@RetMBP14~ $ curl --HEAD http://localhost:8080/index
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=362F9BC76BAB06D58083E09F85C6BD55; Path=/; HttpOnly
Set-Cookie: opvc=840868b4-859b-4200-a04c-ad03bdda1fd9; Path=/; HttpOnly
Set-Cookie: sitevisitscookie=1; Expires=Sun, 10-Jul-2022 14:23:10 GMT; Path=/; HttpOnly
Set-Cookie: dmid=5b31d2cf-3eac-4455-b5fe-a62ef5d095cc; Expires=Sun, 10-Jul-2022 14:23:10 GMT; Path=/; HttpOnly
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 25 Aug 2017 14:23:10 GMT