Skip to content

Commit 164b925

Browse files
author
MB
committed
[Demandware] Update, enumerate, squish, add tests, split, add comments
1 parent 3117358 commit 164b925

6 files changed

Lines changed: 100 additions & 17 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<ruleset name="Demandware (mismatches)" default_off="mismatch" platform="mixedcontent">
1+
<ruleset name="Demandware.com (mismatches)" default_off="mismatch" platform="mixedcontent">
22

33
<!-- Akamai -->
44
<target host="investors.demandware.com"/>
55

6-
<rule from="^http://investors\.demandware\.com/"
7-
to="https://investors.demandware.com/"/>
6+
<rule from="^http:"
7+
to="https:" />
88

99
</ruleset>

src/chrome/content/rules/Demandware.edgesuite.net.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@
2828
<rule from="^http://demandware\.edgesuite\.net/(?!aaei_prd/on/demandware\.static/Sites-Private-Site/-/default/v\d+/)"
2929
to="https://a248.e.akamai.net/f/248/1/1/demandware.edgesuite.net/" />
3030

31+
<test url="http://demandware.edgesuite.net/aahw_prd/on/demandware.static/Sites-Vineyard-Vines-Site/Sites/default/v1421845716291/images/readypulseheader_uploadbutton.jpg" />
32+
<test url="http://demandware.edgesuite.net/aahw_prd/on/demandware.static/Sites-Vineyard-Vines-Site/Sites-Vineyard-Vines-Library/default/v1422541915897/images/whitebg.jpg" />
33+
3134
</ruleset>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
For other Demandware coverage, see Demandware.xml.
3+
4+
5+
^demandware.net: Dropped over http & https
6+
7+
8+
Problematic hosts in *demandware.net:
9+
10+
- www *
11+
12+
* Shows blank page
13+
14+
-->
15+
<ruleset name="Demandware.net (partial)">
16+
17+
<target host="*.demandware.net"/>
18+
19+
20+
<rule from="^http://sits-pod(\d+)\.demandware\.net/"
21+
to="https://sits-pod$1.demandware.net/"/>
22+
23+
<test url="http://sits-pod12.demandware.net/dw/image/v2/AAGQ_PRD/on/demandware.static/Sites-perryellis-Site/Sites-perryellis_master_catalog/default/v1428292657870/products/swatch/45sg7200_468_sw.jpg" />
24+
<test url="http://sits-pod21.demandware.net/dw/image/v2/AABJ_PRD/on/demandware.static/Sites-SA-Site/Sites-SBS-SallyBeautySupply/default/v1428120763038/images/swatch/SBS_342531.png" />
25+
26+
</ruleset>
Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,82 @@
11
<!--
2-
Disabled by https-everywhere-checker because:
3-
Fetch error: http://demandware.net/ => https://demandware.com/: (28, 'Connection timed out after 10000 milliseconds')
42
Other Demandware rulesets:
53
4+
- Demandware.net.xml
65
- Demandware.edgesuite.net.xml
76
87
98
bucket: demandware.edgesuite.net/aabl_prd/on/demandware.static/
9+
10+
11+
Nonfunctional hosts in *demandware.com:
12+
13+
- blog *
14+
- labs *
15+
16+
* 500
17+
18+
19+
Problematic hosts in *demandware.com:
20+
21+
- investors
22+
23+
24+
Fully covered hosts in *demandware.com:
25+
26+
- (www.)?
27+
- xchange
28+
29+
30+
Insecure cookies are set for these hosts:
31+
32+
- demandware.com
33+
- www.demandware.com
34+
- xchange.demandware.com
35+
36+
37+
Mixed content:
38+
39+
- Images on (www.)? from www.demandware.com *
40+
41+
* Secured by us
42+
1043
-->
11-
<ruleset name="Demandware (partial)" platform="mixedcontent" default_off='failed ruleset test'>
44+
<ruleset name="Demandware.com (partial)">
1245

1346
<target host="demandware.com"/>
14-
<target host="*.demandware.com"/>
15-
<target host="demandware.net"/>
16-
<target host="*.demandware.net"/>
47+
<!--target host="labs.demandware.com"/-->
48+
<target host="www.demandware.com"/>
49+
<target host="xchange.demandware.com"/>
1750

18-
<securecookie host="^(?:.*\.)?demandware\.com$" name=".*"/>
51+
<!-- Complications:
52+
-->
53+
<target host="investors.demandware.com" />
1954

20-
<rule from="^http://(www\.)?demandware\.(?:com|net)/"
21-
to="https://$1demandware.com/"/>
55+
<exclusion pattern="^http://investors\.demandware\.com/+(?!client/|media_files/)" />
2256

23-
<rule from="^http://(labs|xchange)\.demandware\.com/"
24-
to="https://$1.demandware.com/"/>
57+
<!-- +ve:
58+
-->
59+
<test url="http://investors.demandware.com/phoenix.zhtml?c=247632&amp;p=irol-EventDetails&amp;EventId=5188309" />
60+
<test url="http://investors.demandware.com/phoenix.zhtml?c=247632&amp;p=irol-irhome" />
61+
<test url="http://investors.demandware.com/phoenix.zhtml?c=247632&amp;p=irol-newsArticle&amp;ID=2031432" />
62+
63+
<!-- -ve:
64+
-->
65+
<test url="http://investors.demandware.com/client/24/247632/css/ccbnIR.css" />
66+
<test url="http://investors.demandware.com/media_files/IROL/24/247632/2015/img/mastheads/bg-masthead-investor.jpg" />
67+
68+
<test url="http://www.demandware.com/contact" />
69+
<test url="http://www.demandware.com/events" />
70+
71+
72+
<!-- Not secured by server:
73+
-->
74+
<!--securecookie host="^(www\.)?demandware\.com$" name="^(PHPSESSID|exp_csrf_token|exp_last_activity|exp_last_visit|exp_stashid|exp_tracker)$" /-->
75+
<!--securecookie host="^xchange\.demandware\.com$" name="^(BIGipServerpool\w.]+|JSESSIONID|jive\.security\.context)$" /-->
76+
77+
<securecookie host="^(?:.*\.)?demandware\.com$" name=".*"/>
2578

26-
<rule from="^http://sits-pod(\d+)\.demandware\.net/"
27-
to="https://sits-pod$1.demandware.net/"/>
79+
<rule from="^http:"
80+
to="https:" />
2881

2982
</ruleset>

utils/duplicate-whitelist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ davidsontutoring.com
5353
debian-art.org
5454
*.debian.net
5555
dell.com
56+
investors.demandware.com
5657
df.eu
5758
dice.com
5859
www.dice.com

utils/ruleset-coverage-whitelist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3278,7 +3278,7 @@ f727a2dc5b9fdc511f995ce6e0299c92b19c8fb89a719c3b611c87a37677d3cb Demand-Base.xm
32783278
7848e11caafc8422e83af41ddbfd3d14c127a32beb7751fdbbf73d5842fb8d60 Demand-Media-mismatches.xml
32793279
3eceb13c7aeccaefe1b0af0b9af0ba7dd04953c44719285a3eaaaa431743b52b Demand-Media.xml
32803280
fa5487b6f306990887b57cc6930d72b536c5e03aece9d957fc3cccd9ae3b5fcc Demand-Progress.xml
3281-
10daf899388ebd03a088f569270eadb78f20c6cf9a1d440ea569b257ee28ac32 Demandware.edgesuite.net.xml
3281+
5aba45e35e5c18f176c75160843390d1ce9a9d5df421b67de499794a8888546e Demandware.edgesuite.net.xml
32823282
49063c8ac3c4eca096b4f1364e146ed5c2689417475763f01e68fcc46c215cf0 Demandware-mismatches.xml
32833283
3f794426634fc83bde16d81ea58a59dd6ecf84a62c550ed7beae5dbcb0e87c5f Demandware.xml
32843284
fc1d08a4c9d916ae7dbad9968ad7af918e34cda5e916f4524efac9ab8a869bfe Demdex.net.xml

0 commit comments

Comments
 (0)