File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 58
58
<sv : value >nt:unstructured</sv : value >
59
59
</sv : property >
60
60
</sv : node >
61
+ <sv : node sv : name =" node?" >
62
+ <sv : property sv : name =" jcr:primaryType" sv : type =" Name" >
63
+ <sv : value >nt:unstructured</sv : value >
64
+ </sv : property >
65
+ </sv : node >
66
+ <sv : node sv : name =" node-¢" >
67
+ <sv : property sv : name =" jcr:primaryType" sv : type =" Name" >
68
+ <sv : value >nt:unstructured</sv : value >
69
+ </sv : property >
70
+ </sv : node >
61
71
</sv : node >
62
72
</sv : node >
Original file line number Diff line number Diff line change 43
43
<sv : property sv : name =" jcr:data" sv : type =" Binary" >
44
44
<sv : value >aDEuIENoYXB0ZXIgMSBUaXRsZQoKKiBmb28KKiBiYXIKKiogZm9vMgoqKiBmb28zCiogZm9vMAoKfHwgaGVhZGVyIHx8IGJhciB8fAp8IGggfCBqIHwKCntjb2RlfQpoZWxsbyB3b3JsZAp7Y29kZX0KCiMgZm9vCg==</sv : value >
45
45
</sv : property >
46
+ <sv : property sv : name =" encoding?%$-test" sv : type =" Binary" >
47
+ <sv : value >aDEuIENoYXB0ZXIgMSBUaXRsZQoKKiBmb28KKiBiYXIKKiogZm9vMgoqKiBmb28zCiogZm9vMAoKfHwgaGVhZGVyIHx8IGJhciB8fAp8IGggfCBqIHwKCntjb2RlfQpoZWxsbyB3b3JsZAp7Y29kZX0KCiMgZm9vCg==</sv : value >
48
+ </sv : property >
49
+ <sv : property sv : name =" encoding?" sv : type =" Binary" >
50
+ <sv : value >aDEuIENoYXB0ZXIgMSBUaXRsZQoKKiBmb28KKiBiYXIKKiogZm9vMgoqKiBmb28zCiogZm9vMAoKfHwgaGVhZGVyIHx8IGJhciB8fAp8IGggfCBqIHwKCntjb2RlfQpoZWxsbyB3b3JsZAp7Y29kZX0KCiMgZm9vCg==</sv : value >
51
+ </sv : property >
46
52
<sv : property sv : name =" multidata" sv : type =" Binary" sv : multiple =" true" >
47
53
<sv : value >aDEuIENoYXB0ZXIgMSBUaXRsZQoKKiBmb28KKiBiYXIKKiogZm9vMgoqKiBmb28zCiogZm9vMAoKfHwgaGVhZGVyIHx8IGJhciB8fAp8IGggfCBqIHwKCntjb2RlfQpoZWxsbyB3b3JsZAp7Y29kZX0KCiMgZm9vCg==</sv : value >
48
54
<sv : value >aDEuIENoYXB0ZXIgMSBUaXRsZQoKKiBmb28KKiBiYXIKKiogZm9vMgoqKiBmb28zCiogZm9vMAoKfHwgaGVhZGVyIHx8IGJhciB8fAp8IGggfCBqIHwKCntjb2RlfQpoZWxsbyB3b3JsZAp7Y29kZX0KCiMgZm9vCg==</sv : value >
Original file line number Diff line number Diff line change @@ -116,4 +116,24 @@ public function testGetLengthMultivalue()
116
116
$ this ->assertEquals (strlen ($ this ->decodedstring ), $ size );
117
117
}
118
118
}
119
+
120
+ public function testReadBinaryPathEncoding ()
121
+ {
122
+ $ node = $ this ->session ->getRootNode ()->getNode ('tests_general_base/index.txt/jcr:content ' );
123
+ $ binary = $ node ->getProperty ('encoding?%$-test ' );
124
+ $ this ->assertEquals (\PHPCR \PropertyType::BINARY , $ binary ->getType ());
125
+ $ value = $ binary ->getString ();
126
+ $ this ->assertInternalType ('string ' , $ value );
127
+ $ this ->assertEquals ($ this ->decodedstring , $ value );
128
+ }
129
+
130
+ public function testReadBinaryPathTrailingQuestionmark ()
131
+ {
132
+ $ node = $ this ->session ->getRootNode ()->getNode ('tests_general_base/index.txt/jcr:content ' );
133
+ $ binary = $ node ->getProperty ('encoding? ' );
134
+ $ this ->assertEquals (\PHPCR \PropertyType::BINARY , $ binary ->getType ());
135
+ $ value = $ binary ->getString ();
136
+ $ this ->assertInternalType ('string ' , $ value );
137
+ $ this ->assertEquals ($ this ->decodedstring , $ value );
138
+ }
119
139
}
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ public static function getNodeNames()
45
45
array ("node- -x " ),
46
46
array ("node-ç-x " ),
47
47
array ("node-&-x " ),
48
+ array ("node? " ),
49
+ array ("node-¢ " ),
48
50
);
49
51
}
50
52
}
You can’t perform that action at this time.
0 commit comments