Sphinx 3.1.1. DocStore seems to fail - sphinx
I have recently upgraded to Sphinx 3.1.1. to be able to use DocStore. For my index I use the following configuration:
index RT_TEST
{
type = rt
path = /mnt/data001/RT_TEST
rt_field = Name
rt_field = Extension
rt_field = Content
rt_field = Tags
rt_attr_uint = Reference
rt_attr_uint = FileSize
rt_attr_uint = LastModified
rt_attr_uint = LastModifiedYear
rt_attr_uint = LastModifiedMonth
rt_attr_uint = LastModifiedDay
stored_fields = Content
rt_mem_limit = 1024M
charset_table = A..Z, a..z, 0..9, _, ;, %
ondisk_attrs = pool
}
searchd
{
listen = 9306:mysql41
log = /var/sphinx/searchd.log
read_timeout = 5
max_children = 30
pid_file = /var/run/searchd.pid
max_packet_size = 128M
binlog_path = /mnt/data001
}
Important to realize is that I insert encrypted content meeting the charset_table directive of my index configuration. Still, the insert fails since the queried value differs from the inserted value...
For instance, the following insert statement:
INSERT INTO RT_TEST(id, Name, Extension, Content, Tags, Reference, FileSize, LastModified, LastModifiedYear, LastModifiedMonth, LastModifiedDay) VALUES(1774, 'DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7WtXmnUHLGt2', '7A5A5Q', 'FAUsvCA% FAUsvCA% BA8s Fg8sqy4D BA8s9jcJzE5TXysiVnBiOjr8YRE% AB0% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% DgM% AgMjtiQ% Ag84vQ%% UFo% CwMsrTEDzA%% DgsmvCAI EQ8% CAMnrA%% AgUtqg%% CwUlvSs% BA8uuTYSx0Q% EA8woioDyQ%% EAss Eg8wvTYH AQ81vSAV1g%% CQc% Aw8s BwssrCQK Dx4ntTY% Eg8% BQInuy4DzA%% Cwsjqg%% AgM2 EQsx Cw82 Aw8s FA8mvSs% Agsjqg%% CQQ4vQ%% FQE3 Ags2uQ%% CAMnrA%% BQUwqiAF1g%% Cw8nqg%% DwQ% Dg82 FRMxrCADzw%% FR4ttiE% HAMotg%% Axg% EAUtqg%% Aw8s Fgsjqg%% CRgmvTcV Ag84vQ%% Dx4ntTY% FRMxrCALw15fbDgv CAMnrA%% AQ8xvSkDwV5Teikj DwE% HAsu Axg0tyoU HAUwvyAI Ags2 Ag84vQ%% CRo% Ag8% DwQ0tywFxw%% EAss AA8gqjAH0EM% AQ8hqiACy15Teikj AQsjrA%% EQUwvCAI HAsu DwQ% Ag8% BAMotCQBxw%% EAsx CRolvSsJz09Y EQUwvCAI AxIhrTYD0Q%% EAUtqg%% Dg82 CQQlvSgHyQ%% C0Q09iI% BA8s ABgttQ%% AgMjtiQ% AgMntCwV0U9Y AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% FQ8srA%% Eh8nqyEH2w%% AA8gqjAH0FM% V10% VFpz7Q%% VVB27Q%% Fgc% EgU% DwQ2vTcCx1lfeDU% FgYn Fg8sqy4D BQk% FAUsvCA% BA8s Fg8sqy4D FR8gsiAF1g%% AB0% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% DQMsvA%% FA8luTcC0Q%% Cw82 EBgrvSsCx0ZfdTAi ARgtvTEDzA%% AgMjtiQ% AgMntCwV0U9Y FQ8j ABgnsSIO1g%% DwcytzcS CRonqiQSzVg% FAUqtCwB CA8mvTcKw0RS BEQ0 EQ8ntiQ% VFpy BB8rtCEPzE0% EQ8ntiQ% VV5w EgU1vTc% Bw%% V1gktA%% VVpz6g%% CAA% FAU2rCAUxktb Eg8u VVs% V1o% VFI% VF8% VFhx AAs6 VVs% V1o% VFI% VF8% VF5w AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% ER019jcJykZfeHUkV24% ABgttQ%% Eg8wvTYH FQsgtyk% Eg8wvTYHjFlXfTQreGpnK32n1;CdScZYKYkp9ov4zQ%% FQ8srA%% CwUsvCQf AA8gqjAH0FM% V1w% VFpz7Q%% UlBy4A%% Fgc% EgU% AgMjtiQ% AgMntCwV0U9Y FR8gsiAF1g%% AB0% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% DgM% AgMjtiQ% Dw%% Dgs0vQ%% FRotsyAI EQM2sA%% DAsxtys% BwQm Dg8% Dxk% Bx0jqiA% EgIjrA%% Dw%% AgU% CAU2 Dgs0vQ%% EQ8gqywSxw%% BwkhvTYV CQQ% FAUqtCwBTZWLbA%% FQM2vQ%% Bxgn HwU3 BwguvQ%% EgU% CQg2uSwI CwU0vSgDzF4% FA8ytzcS0Q%% CQQ% Dx4ntQ%% FQ%% Dww% Dw%% CA8nvA%% EgIntQ%% BQss HwU3 FgYnuTYD Dgs0vQ%% Fg8sqy4D FhgtriwCxw%% AB8wrC0D0A%% DwQktzcLw15fcDU% AAUw EgIrqw%% AwQ2qjw% UEcouSs% FR4tuy4% BQU3tjE% Eg8wvTYH UFo% CwsrtA%% Eg8wvTYH Cws% U0dz9XdWkx8% V1947X0% Cws% U0dz9XdWkx8% V1x46XQ% EgIjti4% HwU3 Eg8wvTYH FQsgtyk% Fh8wuy0H0UNYeA%% BxkxtyYPw15T Ul5y9XdSmgcGLmx; Hll06w%% ABgttQ%% AgMjtiQ% AgMntCwV0U9Y AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% FQ8srA%% CwUsvCQf AA8gqjAH0FM% V1w% VFpz7Q%% X1By6A%% Bwc% EgU% Eg8wvTYH FQsgtyk% FR8gsiAF1g%% FA8% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% Ag8jqg%% Eg8wvTYH FQ8n Bx42uSYOx04% DQMsvA%% FA8luTcC0Q%% Cw82 EBgrvSsCx0ZfdTAi ARgtvTEDzA%% AgMjtiQ% AgMntCwV0U9Y FQ8j ABgnsSIO1g%% DwcytzcS CRonqiQSzVg% FAUqtCwB CA8mvTcKw0RS BEQ0 EQ8ntiQ% VFpy BB8rtCEPzE0% EQ8ntiQ% VV5w EgU1vTc% Bw%% V1gktA%% VVpz6g%% CAA% FAU2rCAUxktb Eg8u VVs% V1o% VFI% VF8% VFhx AAs6 VVs% V1o% VFI% VF8% VF5w AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% ER019jcJykZfeHUkV24% ABgttQ%% Eg8wvTYH FQsgtyk% Eg8wvTYHjFlXfTQreGpnK32n1;CdScZYKYkp9ov4zQ%% FQ8srA%% CwUsvCQf AA8gqjAH0FM% V1w% VFpz7Q%% VVBy6A%% Fgc% EgU% AgMjtiQ% AgMntCwV0U9Y FR8gsiAF1g%% AB0% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% DgM% AgMjtiQ% AgU% HwU3 Dgs0vQ%% Bw%% FQInvTE% EgIjrA%% FQItrzY% EgIn EAsx BQIjqiID0Q%% EgInoQ%% Bxgn CA8jqikf AgU3uikD EQIjrA%% EgInoQ%% Exk3uSkK2w%% Bxgn Eg8wvTYH FQsgtyk% Fh8wuy0H0UNYeA%% BxkxtyYPw15T Ul5y9XdSmgcGLmx; Hll06w%% ABgttQ%% AgMjtiQ% AgMntCwV0U9Y AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% FQ8srA%% CwUsvCQf AA8gqjAH0FM% V1w% VFpz7Q%% XlBx7w%% Bwc% EgU% Eg8wvTYH FQsgtyk% FR8gsiAF1g%% DwQ2vTcCx1lfeDU% DwQ0tywFxw%% DAssrSQU2w%% VFpz7Q%% Ag8jqg%% Eg8wvTYH BQss HwU3 CQE% EgIn Bx42uSYOx04% FQInvTE% EgIjti4V DQMsvA%% FA8luTcC0Q%% Cw82 EBgrvSsCx0ZfdTAi ARgtvTEDzA%% AgMjtiQ% AgMntCwV0U9Y FQ8j ABgnsSIO1g%% DwcytzcS CRonqiQSzVg% FAUqtCwB CA8mvTcKw0RS BEQ0 EQ8ntiQ% VFpy BB8rtCEPzE0% EQ8ntiQ% VV5w EgU1vTc% Bw%% V1gktA%% VVpz6g%% CAA% FAU2rCAUxktb Eg8u VVs% V1o% VFI% VF8% VFhx AAs6 VVs% V1o% VFI% VF8% VF5w AgMjtiRIxkNTczI0S2ZnH51RoVnYBIbuBLY% ER019jcJykZfeHUkV24% FgYjuyA% CQw% DB8wsTYCy0lCdjQp EgIn CA82sCAUzktYeyg% FAU2rCAUxktb EhgjvCA% FA8lsTYSx1g% FAU2rCAUxktb CBhs6nFWmhMALWs% EgIn Ah82uy0% AAUwryQUxkNYeA%% BQUsvCwSy0VYbA%% DwQ% EgIn Cgs2vTYS EA8wqywJzA%% Ag8ytzYP1k9S BBM% AA8svT0% Bx4% EgIn FA8lsTYS0FM% CQw% EgIn AgMxrDcPwV4% BQU3qjE% Bx4% FAU2rCAUxktb FQIjtCk% BxoytDw% EgIn BQUsvCwSy0VYbA%% EQMutA%% BA8% FQ8srA%% EgU% HwU3 CQQ% FA8zrSAV1g%% FhgrriwKx01Te3QkV21vNrJfYupkLoM% DwQktzcLw15fcDU% Cws7 BA8% BQUsrCQPzE9S DwQ% EgIrqw%% Cw8xqyQBxw%% BwQm FhgtrCAF1k9S BBM% Bw%% FhgtviAV0UNZcTor FhgrriwKx01T CRg% EQItqyA% AgMxuykJ0V9Eeg%% BBM% Bw%% Cgs1 Dww% HwU3 Bxgn CAU2 EgIn Bw4mqiAV0U9T DwQmsSYH1k9S DwQ% EgIrqw%% Cw8xqyQBxw%% HwU3 Cws7 CAU2 BQUyoQ%% CRg% Ag8usTMD0A%% EgIrqw%% Cw8xqyQBxw%% EgU% BwQ7tysD DwQ% FR8hsA%% BQsxvQ%% HwU3 FQItrSkC Ag8xrDcJ2w%% EgIrqw%% Cw8xqyQBxw%% BwQm CAU2sSMf Exk% DwcvvSEPw15TcyI% DwQ2vTcIx14% A0cvuSwK CA8rrC0D0A%% AR8jqiQI1k9TbA%% EgIn BQUsviwCx0RCdjorUXdw CAUw EgIn DwQ2vSIUy15P CRg% FhgtqCAU FA8hvSwW1g%% CQw% EgIn Cw8xqyQBx1k% FQ8srA%% FKn0sCkPxQ%% AgUnqw%% CAU2 BxkxrSgD BwQ7 CgMjuiwKy15P AAUw EgItqyA% BQMwuzAL0V5XcTgiSw%% Dww% EgIn Bw4mqiAV0U9T CQw% EgIrqw%% Cw8xqyQBxw%% AgUnqw%% CAU2 BQUsqyAI1g%% EgU% EgIn Exkn CQw% DwQ2vTcIx14% A0cvuSwK BwQm Cw8xqyQBxw%% FA8htzcCy0RR FgYnuTYD CAU2sSMf Exk% DwcvvSEPw15TcyI% EAsx VFpz7Q%% Ags2rSg% CRgmvTcI10dbeik% FA82rTcI Bw4vsSs% CwMs FA82rTcI DwQgtzAIxg%% BQInuy4% EQswvS0J11lT CwMs FA82rTcI Fh82uTIH2w%% EQswvS0J11lT CwMs EgA6 CgsgvSkV FQE3 DgMxrCoU2w%% FR4tuy4% BQInuy4% EwQuvTYV Fg8sqy4D BwkhtzAI1ktUcz4% AAUw FgMhsw%% Axgwtzc% AQ8wtSQI2w%% CgsgvSkV BwcjoioI CgsgvSkV CwsrtDY% BwgtrTE% EwQptioRzA%% CRgmvTcV CRgmvTc% BQIjtiID0Q%% DwQ% CRgmvTc% Dg8jvA%% Ags2uQ%% Bw4mqiAV0Q%% CRgmvTc% BQIjtiID0Q%% DwQ% Dx4ntSkPzE8% Vg%% Dx4ntQ%% CgMsvQ%% CR82 CQw% FR4tuy4% Dx4ntQ%% CgMsvQ%% BQIjtiID EgIn FR4jrDAV CQw% Bw%% FR4tuy4% Dx4ntQ%% CR4qvTcV EQM2sA%% FA8vuTcN0Q%% FA8vuTcN0Q%% EQ8nsw%% VA%% U0couStLkx8% FFhw6n1elx0E V1o% V1o% UEcouSs% FR4tuy4% BQU3tjE% Eg8wvTYH UFo% CwsrtA%% Eg8wvTYH Cws% U0dz9XdWkx8% V1947X0% Cws% U0dz9XdWkx8% V1x46XQ% UUcouSs% VFhx6HxRlRI% VVo% VVo% VA%% CwsrtA%% EAMhsyw% AgM% UEdz9XdWkx8% V1J46nA% XkcouSs% VFhw4Xxemx8% Vw%% XkcouSs% VFhx6XVXkh0% VQ%% Vw%% X0couSs% VFhx6XVXkxo% VQ%% VQ%% X0couSs% VFhx6Hxekhw% Vw%% EQ8nsw%% VQ%% V1hvsiQIjxsD VFhx6H1UkBM% VVo% VVo% V18% V1lvsiQI VFhx6XVXlRw% VQ%% Vw%% V1lvsiQI VFhx6XVXkxI% Vw%% V1lvsiQI VFhx6XVXkx8% Vw%% V1lvsiQI VFhx6XVXkxg% VA%% Vw%% V1lvsiQI VFhx6XVXkxk% Vw%% V1xvsiQI VFhx6XRUlBM% VA%% V1xvsiQI VFhx6XVemxw% VA%% V1xvsiQI VFhx6XVfkhg% Vw%% V1xvsiQI VFhx6XVemx0% Vw%% V1xvsiQI VFhx6XVUmx0% VQ%% Vw%% V1xvsiQI VFhx6XJRkx0% Uw%% Uw%% V1xvsiQI VFhx6XJQlB0% VA%% VA%% V1xvsiQI VFhx6XJSkR4% VQ%% VQ%% V1xvsiQI VFhx6XJVmhM% Vw%% Vw%% V1xvsiQI VFhx6XJVkx4% Xg%% Xg%% V1xvsiQI VFhx6XJUmxs% VA%% V1xvsiQI VFhx6XJUmxI% VA%% CgsgvSkPzE0% EgA6 CR82uioTzE4% BAU6vTY% V1xvsiQI VFhx6XJRkBw% Vw%% V1xvsiQI Ag9y6HELzw%% V18% V18% V1o% V1xvsiQI FFlz6XdXlg%% V18% UFo% V1o% V1xvsiQI Ag9y6nULzw%% V18% V18% V1o% V1xvsiQI Ag9z6nVXkx8% V18% X1o% V1o% EQ8nsw%% Vl4% V1NvsiQI VFhx6XJVlBo% Uw%% Uw%% V1NvsiQI VFhx6XJRkx8% UA%% UA%% V1NvsiQI VFhx6XJVkxg% VA%% Vw%% V1NvsiQI VFhx6XJRkB4ZLWl0CTQ6ZygcJiCK3W8vGyk% Vw%% V1NvsiQI VFhx6XJSkB0% VQ%% V1NvsiQI VFhx6XJRkR0dLWl0CTQ6b5Q% VA%% V1NvsiQI VFhx6XJVkxwdLWl0CTQ9a_I% VA%% Vw%% V1NvsiQI VFhx6XJVkxkdLWl0CTQ7Zs3zC;c6n28q2RU% Vw%% V1NvsiQI VFhx6XJVkhgdLWl0CTQ7Zp7Ntwb02r3fPhA% Vw%% V1NvsiQI VFhx6XJVkhIdLWl0CTQ6b4BTBpomHInCJM8% Vw%% V1NvsiQI VFhx6XJRkxwdLWl0CTQ6b2g% VA%% Vw%% VFpvsiQI FFt06HRXlw%% V18% UFo% V1o% VFtvsiQI FFhw63RTkRIF VFo% V18% Uw%% VFtvsiQI FA82rTcIxU9ZezI0 V1o% V1o% Uw%% VFtvsiQI FA82rTcI10EGL2oqVQ%% V18% Ul8% V18% VFhvsiQI Ulpz6HFQlxM% UVJy CgUtqyA% CgUjvCwIxQ%% BQUsrCQPzE9E UFo% CwMsqw%% CQwksSYD UVhy CwMsqw%% EQswvS0J11lT VFlvsiQI VFhx6nFWlR4% Ug%% VFlvsiQI VFhx6nZVlh4% VQ%% VFlvsiQI VFhx6nVfkRo% VQ%% VFlvsiQI VFhx6nZVlhs% VQ%% VFlvsiQI VFhx6nZVkR8% Uw%% VFlvsiQI VFhx6nBflx4% Ug%% VFlvsiQI VFhx6nNVkhI% Vw%% VFlvsiQI VFhx6nVfkxw% Ug%% VFlvsiQI VFhx6XJVkhMZLGtyFzc6bg%% Vw%% VFlvsiQI FFhw6nNTkBgC Ul8% VVo% V18% EQ8nsw%% Vl8% VFxvsiQI Ulpz6HFQlxI% UVJy CgUtqyA% CgUjvCwIxQ%% BQUsrCQPzE9E UFo% CwMsqw%% CQwksSYD UVhy CwMsqw%% EQswvS0J11lT VF1vsiQI VFhx6nNVkhw% VQ%% VQ%% VF1vsiQI VFhx6nBflRI% VA%% VA%% VF1vsiQI VFhx6nxSmxM% Vw%% Vw%% VF1vsiQI VFhx6nBflBk% VA%% Vw%% VF1vsiQI VFhx6nBfkxw% VQ%% VF1vsiQI VFhx6nBRmxw% VFhx6nNVkh4% VA%% VF1vsiQI VFhx6nBflBg% VFhx6nNWlxk% VA%% VF1vsiQI VFhx6nBflB8% Vw%% VF1vsiQI VFhx6nNVkxo% Vw%% VF1vsiQI VFhx6nNVkhk% VFhx6nBflBo% VA%% VF1vsiQI VFhx6nNVkxs% Vw%% VF1vsiQI VFhx6nBflB0% VFhx6nNWlh8% VQ%% VF1vsiQI VFhx6nBflR0% VFhx6nBekB8% VA%% VF1vsiQI FAsvuXdRkhs% V1o% V1o% V1o% VF1vsiQI EwFy6HELzw%% V18% U1o% V1o% VF1vsiQI FAsvondRkhs% V1o% V18% V1o% VFJvsiQI VFhx6nNVkh8% VQ%% VFJvsiQI VFhx6nBfkxI% VQ%% DwQhtDACy0RR EgIrqw%% CgMsvQ%% DwQ0tywFx04% CQQ% VVpt6HQ% EQ8nsw%% Vlw% VUckvSc% VFhx63dQlh0% Xg%% Xg%% VUckvSc% VFhx63dRlR0% Vw%% Vw%% VUckvSc% VFhx63dQlhs% Vw%% Vw%% VUckvSc% VFhx63dRkBM% VA%% VA%% VUckvSc% VFhx63dRlRo% Vw%% Vw%% VUckvSc% VFhx63dRkRk% Vw%% Vw%% VUckvSc% VFhx63dQkRIdLWl0CzE;a7M% VA%% VUckvSc% VFhx63dRlBIdLWl0CzE_azw% VA%% VUckvSc% VFhx63dRlxw% Vw%% VUckvSc% VFhx63FUkRo% Vw%% VUckvSc% VFhx63dRlxk% Vw%% VUckvSc% VFhx63dQlxodLWl0CzE_bkE% VA%% UkckvSc% VFhx63FUkRM% Ug%% UkckvSc% VFhx63ZelxI% Ug%% UkckvSc% VFhx63dQlh4% VQ%% UkckvSc% VFhx63dQlh8% VQ%% UkckvSc% FA82uykPwUJP V1o% V1o% V1o% UkckvSc% FA826HFWkBsD V1o% VV8% V1o% U0ckvSc% FA826ndVkxoOJmw% VFo% U1o% U1o% UEckvSc% VFhx63JSlB8% Ug%% UEckvSc% VFhx631Vlx0% Ug%% UEckvSc% VFhx631Vlx8dLWl0CzQ9ae8% Ug%% UEckvSc% VFhx631VlBo% Ug%% UEckvSc% VFhx63xXkR0% Ug%% UEckvSc% VFhx631VlxM% Ug%% UEckvSc% VFhx631VlB4% VA%% UEckvSc% VFhx631Vlxw% Ug%% UEckvSc% VFhx63xXkRw% Ug%% UEckvSc% VFhx7HRRkBk% VQ%% UEckvSc% VFhx7HRRkB0% VA%% UEckvSc% VFhx7HRRkB8% Uw%% UEckvSc% FA826ndVkxoOJmw% Ul8% Ulo% UFo% EQ8nsw%% UQ%% V1pvviAE VFhx7HRSlxw% UQ%% UQ%% V1pvviAE VFhx7HRRkxw% VA%% Uw%% V1pvviAE VFhx7HRSmh8% VA%% Uw%% V1pvviAE VFhx7HRRkBo% Vw%% Ug%% V1pvviAE VFhx7HRQkRg% Vw%% Ug%% V1pvviAE VFhx7HRSlx4% Vw%% Ug%% V1pvviAE VFhx7HRRkxM% VQ%% V1g% V1pvviAE VFhx7HRSmh4% VQ%% V1g% V1pvviAE VFhx7HRSlx0% VA%% Xg%% V1pvviAE VFhx7HRSlRI% VA%% Xg%% V1pvviAE VFhx7HVRlhg% VFhx7HRSlxk% VQ%% V1g% V1pvviAE VFhx7HRRkBs% VFhx7HRSlxg% VA%% Xg%% V1tvviAE VFhx7HVRkR0% Ug%% V1tvviAE VFhx7HVRkBk% Ug%% V1tvviAE VFhx7HVRkh8% Ug%% V1tvviAE VFhx7HVRkRI% Ug%% V1tvviAE VFhx7HVRkRM% Ug%% V1lvviAE VFhx7XRUkRgdLWl0DTI7b_FgTfqV5NfXkDQ% Ug%% V1lvviAE VFhx7XRQkB4dLWl0DTMwa8o% Ug%% V1lvviAE VFhx7HBRkhg% VA%% V1lvviAE VFhx7XRVkhs% Uw%% V1lvviAE VFhx7XdWmhw% VFhx7HJWmxo% Ug%% VFhx7XdWmxsdLWl0DDY_bc7vhv1tUNnExD4% Ug%% VFhx7XdWmx4dLWl0DDY;aptefrABxl_rE9U% Ug%% VFhx7XdWmhkdLWl0DTE5ZzASMD2MWREPqxc% Ug%% VFhx7HBRlxw% Ug%% VFhx7XRWlBk% Ug%% VFhx7HFSlB4% Ug%% VFhx7XVelh0dLWl0DTE5Zhnz;us2xm4e8uNVWaCI7x0hr7g% Ug%% VFhx7XVelx4% Ug%% VFhx7HBQkBk% Ug%% VFhx7XVelBw% Ug%% VFhx7HRRkB4% VQ%% Ag8hvSgEx1g% Vg%% Vg%% Vg%% Vg%% Vg%% Vg%% Vg%% VF0% Vg%% Vg%% Vg%% Vg%% Vg%% FA8gvSYFww%% BxoyvSkJ VA%% CwMsrTED0Q%% Fg8w CgsgvSk% FA8gvSYFww%% BxoyvSkJ VA%% CwMsrTED0Q%% Fg8w CgsgvSk% FA8gvSYFww%% BxoyvSkJ FA8gvSYFww%% BxoyvSkJ VA%% CwMsrTED0Q%% Fg8w CgsgvSk% FQInvTFX EBgrvTYL Vw%% FgsutCASzktUejc% Dxk% FR4jtiEHw1hS', '', 11, 1021089, 1503999582, 2017, 8, 29);
Leads to the following query value when I query the value with: SELECT content FROM RT_TEST WHERE id=1774; I get the value:
FAUsvCA% FAUsvCA% BA8s Fg8sqy4D BA8s9jcJzE5TXysiVnBiOjr8YRE% AB0% Fg8sqy4D BQUvqCkHy0RC AAUwtQ%% EgIn DgUuvCwIxQ%% BQU% DgM% Ag8jtg%% Dw%% EgItrSIO1g%% Dw%% BwYwvSQC2w%% AQs0vQ%% HwU3 BwQ% BwQxryAU CQQ% EgIrqw%% BQUvqCkHy0RC BB82 BQsstioS AAMsvA%% BwQ7 AwcjsSk% ABgttQ%% CxM% FQMmvQ%% FQU% Bx4% AAMwqzE% CxM% BxottCoBy1BTbA%% EQ8% Dgs0vQ%% DwQ0vTYSy01Xaz4j EgIrqw%% BQUvqCkHy0RC BBM% BQInuy4PzE0% CR8w FgI7qywFw0Y% FR4tuy4% BwkhtzcCy0RR EgU% CR8w Bw4vsSsP0V5Efi8uTmY% FR4tuy4% AAUwrDAIw15TcyI% EgInqyA% AgU% Cws2uy0% BwYxtw%% EgIn CB8vuiAU CQw% BAU6vTY% EQIruy0% FQItrSkC Dgs0vQ%% BA8ntg%% FgMhsyAC AAUw EgIrqw%% FQIrqCgDzF5F AgUnqw%% Cws2uy0% EgIn CB8vuiAU CQw% BAU6vTY% EQ8% FQItrSkC Dgs0vQ%% BA8ntg%% FgMhsywIxQ%% BwkhtzcCy0RR EgU% EgIrqw%% DwQktzcLw15fcDU% Dw%% BQss CQQuoQ%% BQUsuykTxk8% EgIjrA%% EQ8% Dgs0vQ%% FQIrqDUDxg%% CR82 EgIn BQUwqiAF1g%% Fx8jtjEP1kNTbA%% AAUw EgIrqw%% FQIrqCgDzF4% FQU% Fg8sqy4D CAU2 BwkhtzAI1ktUcz4% DgUyvQ%% EgU% DwQktzcLx04% HwU3 FR8kviwFy09Yaw%% FA8luTcC0Q%% BA8s ABgttQ%% BwQsuQ%% AxMu BwQsuWsD20Z2djUzXXFtOsW2NhQOEHrd7KpL FQ8srA%% CwUsvCQf Cwswuy0% VVs% VFpz7A%% V1t46XA% Fgc% EgU% Ag8jtmsLzUVEehs1V2tlNsvV0Fr0 FAUqtCwB FgYn Fg8sqy4D FR8gsiAF1g%% Fg8sqy4D BQUvqCkHy0RC AAUwtQ%% EgIn DgUuvCwIxQ%% BQU% Ag8jqg%% Ag8jtg%% Dw%% Ehg3qzE% EgIrqw%% AwcjsSk% AAMsvDY% HwU3 EQ8utA%% FgYnuTYD AAMsvA%% Bx42uSYOx04% Fg8sqy4D BQUvqCkHy0RC AAUwtQ%% ABgttQ%% EgIn DgUuvCwIxQ%% BQU% AAUw Bw%% FQItqjEHxU8% BA8xrA%% FA8luTcC0Q%% BwQsuQ%% AxMu DwQ2vTcIw15fcDUmVA%% BR8xrCoLx1g% FQ8wriwFxw%% Eg8u Xlpy UV11 UlN77Q%% AxI2 V1x3
As you can see, the queried value doesn't equal the inserted content-value. How is this possible and what am I doing wrong?
Related
Soap request signing
Hello fellow developers, I have no experience working on soap, saml and xml signing, I am trying to generate this structure and then add 2 signature tags to it. <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Header xmlns:a="http://www.w3.org/2005/08/addressing"> <a:MessageID></a:MessageID> <a:To env:mustUnderstand="true"></a:To> <a:Action env:mustUnderstand="true">urn:hl7-org:v3:PRPA_IN201305UV02:CrossGatewayPatientDiscovery</a:Action> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsu:Timestamp wsu:Id="timestamp_ID"> <wsu:Created>2022-10-13T18:18:17.763Z</wsu:Created> <wsu:Expires>2023-10-13T18:23:17.763Z</wsu:Expires> </wsu:Timestamp> <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="assertion_ID" IssueInstant="2022-10-13T18:18:17.763Z" Version="2.0"> <saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:X509SubjectName"></saml2:Issuer> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <Reference URI="#assertion_ID"> <Transforms> <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue></DigestValue> </Reference> </SignedInfo> <SignatureValue></SignatureValue> <KeyInfo> <X509Data> <X509Certificate></X509Certificate> </X509Data> </KeyInfo> </Signature> <saml2:Subject> <saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName"></saml2:NameID> <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:holder-of-key"> <saml2:SubjectConfirmationData> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <KeyValue> <RSAKeyValue> <Modulus></Modulus> <Exponent>AQAB</Exponent> </RSAKeyValue> </KeyValue> </KeyInfo> </saml2:SubjectConfirmationData> </saml2:SubjectConfirmation> </saml2:Subject> <saml2:Conditions NotBefore="2022-10-13T18:15:17.763Z" NotOnOrAfter="2022-10-13T18:23:17.763Z"> <saml2:AudienceRestriction> <saml2:Audience></saml2:Audience> </saml2:AudienceRestriction> </saml2:Conditions> <saml2:AuthnStatement AuthnInstant="2022-10-13T17:55:17.743Z" SessionIndex="1234567890"> <saml2:SubjectLocality Address="10.1.1.144" DNSName="localhost"/> <saml2:AuthnContext> <saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef> </saml2:AuthnContext> </saml2:AuthnStatement> <saml2:AttributeStatement> <saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:subject-id"> <saml2:AttributeValue>John Doe</saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:organization"> <saml2:AttributeValue>Dr. John M Doe, MD Practice</saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:organization-id"> <saml2:AttributeValue></saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:nhin:names:saml:homeCommunityId"> <saml2:AttributeValue></saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:oasis:names:tc:xacml:2.0:subject:role"> <saml2:AttributeValue> <Role xmlns="urn:hl7-org:v3" code="112247003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical doctor" xsi:type="CE"/> </saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:oasis:names:tc:xspa:1.0:subject:purposeofuse"> <saml2:AttributeValue> <PurposeOfUse xmlns="urn:hl7-org:v3" code="TREATMENT" codeSystem="2.16.840.1.113883.3.18.7.1" codeSystemName="nhin-purpose" displayName="Treatment" xsi:type="CE"/> </saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute Name="urn:oasis:names:tc:xacml:2.0:resource:resource-id"> <saml2:AttributeValue></saml2:AttributeValue> </saml2:Attribute> </saml2:AttributeStatement> </saml2:Assertion> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <Reference URI="#timestamp_ID"> <Transforms> <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue></DigestValue> </Reference> </SignedInfo> <SignatureValue></SignatureValue> <KeyInfo> <wsse:SecurityTokenReference xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0"> <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID">assertion_ID</wsse:KeyIdentifier> </wsse:SecurityTokenReference> </KeyInfo> </Signature> </wsse:Security> </env:Header> <env:Body> <PRPA_IN201305UV02 xmlns="urn:hl7-org:v3" ITSVersion="XML_1.0"> <id extension="126627497759" root="1.3.6.1.4.1.52618.1.3"/> <creationTime value="20221013181817"/> <interactionId extension="PRPA_IN201305UV02" root="2.16.840.1.113883.1.6"/> <processingCode code="P"/> <processingModeCode code="T"/> <acceptAckCode code="AL"/> <receiver typeCode="RCV"> <device classCode="DEV" determinerCode="INSTANCE"> <id root="0.0.0"/> <telecom value="https://RH-Windows-TMP-b994dba9f85ba908.elb.us-east-1.amazonaws.com:4437/"/> <asAgent classCode="AGNT"> <representedOrganization classCode="ORG" determinerCode="INSTANCE"> <id root=""/> </representedOrganization> </asAgent> </device> </receiver> <sender typeCode="SND"> <device classCode="DEV" determinerCode="INSTANCE"> <id root="1.3.6.1.4.1.52618.1.2"/> <asAgent classCode="AGNT"> <representedOrganization classCode="ORG" determinerCode="INSTANCE"> <id root="1.3.6.1.4.1.52618.1"/> </representedOrganization> </asAgent> </device> </sender> <controlActProcess classCode="CACT" moodCode="EVN"> <code code="PRPA_TE201305UV02" codeSystem="2.16.840.1.113883.1.6"/> <authorOrPerformer typeCode="AUT"> <assignedDevice classCode="ASSIGNED"> <id root="1.3.6.1.4.1.52618.1.1"/> </assignedDevice> </authorOrPerformer> <queryByParameter> <queryId extension="126627497760" root="1.3.6.1.4.1.52618.1.3.1"/> <statusCode code="new"/> <responseModalityCode code="R"/> <responsePriorityCode code="I"/> <parameterList> <livingSubjectAdministrativeGender> <value code="M"/> <semanticsText>LivingSubject.administrativeGender</semanticsText> </livingSubjectAdministrativeGender> <livingSubjectBirthTime> <value value=""/> <semanticsText>LivingSubject.birthTime</semanticsText> </livingSubjectBirthTime> <livingSubjectId> <value extension="" root="1.3.6.1.4.1.52618.1.1"/> <semanticsText>LivingSubject.id</semanticsText> </livingSubjectId> <livingSubjectName> <value> <given></given> <family>TEST</family> </value> <semanticsText>LivingSubject.name</semanticsText> </livingSubjectName> <patientAddress> <value> <streetAddressLine>Home Dr</streetAddressLine> <city>Charlotte</city> <state>NC</state> <postalCode></postalCode> <country>US</country> </value> <semanticsText>Patient.addr</semanticsText> </patientAddress> </parameterList> </queryByParameter> </controlActProcess> </PRPA_IN201305UV02> </env:Body> </env:Envelope> I am using rhino javascript and below is the code ////////////////////////////////////////////////////////////////////////////////// // Generate our dynamic message values // var timestampId = UUIDGenerator.getUUID(); var assertionId = UUIDGenerator.getUUID(); var createdTimestamp = new Date().toISOString(); var expiresTimestamp = new Date((new Date()).getTime() + 10000*10).toISOString(); var samlenvelope="<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">"+ "<env:Header xmlns:a=\"http://www.w3.org/2005/08/addressing\">"+ "<a:MessageID>urn:uuid:32886a29-98ad-4284-b00e-3fe4ded10d16</a:MessageID>"+ "<a:To env:mustUnderstand=\"true\"></a:To>"+ "<a:Action env:mustUnderstand=\"true\">urn:hl7-org:v3:PRPA_IN201305UV02:CrossGatewayPatientDiscovery</a:Action>"+ "<wsse:Security xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">"+ "<wsu:Timestamp wsu:Id=\"timestamp_ID\">"+ "<wsu:Created>2022-10-13T18:18:17.763Z</wsu:Created>"+ "<wsu:Expires>2023-10-13T18:23:17.763Z</wsu:Expires>"+ "</wsu:Timestamp>"+ "<saml2:Assertion xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ID=\"assertion_ID\" IssueInstant=\"2022-10-13T18:18:17.763Z\" Version=\"2.0\">"+ "<saml2:Issuer Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:X509SubjectName\"></saml2:Issuer>"+ "<saml2:Subject>"+ "<saml2:NameID Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName\"></saml2:NameID>"+ "<saml2:SubjectConfirmation Method=\"urn:oasis:names:tc:SAML:2.0:cm:holder-of-key\">"+ "<saml2:SubjectConfirmationData>"+ "<KeyInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\">"+ "<KeyValue>"+ "<RSAKeyValue>"+ "<Modulus></Modulus>"+ "<Exponent>AQAB</Exponent>"+ "</RSAKeyValue>"+ "</KeyValue>"+ "</KeyInfo>"+ "</saml2:SubjectConfirmationData>"+ "</saml2:SubjectConfirmation>"+ "</saml2:Subject>"+ "<saml2:Conditions NotBefore=\"2022-10-13T18:15:17.763Z\" NotOnOrAfter=\"2022-10-13T18:23:17.763Z\">"+ "</saml2:Conditions>"+ "<saml2:AuthnStatement AuthnInstant=\"2022-10-13T17:55:17.743Z\" SessionIndex=\"1234567890\">"+ "<saml2:SubjectLocality Address=\"10.1.1.144\" DNSName=\"localhost\"/>"+ "<saml2:AuthnContext>"+ "<saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef>"+ "</saml2:AuthnContext>"+ "</saml2:AuthnStatement>"+ "<saml2:AttributeStatement>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xspa:1.0:subject:subject-id\">"+ "<saml2:AttributeValue>John Doe</saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xspa:1.0:subject:organization\">"+ "<saml2:AttributeValue>Dr. John M Doe, MD Practice</saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xspa:1.0:subject:organization-id\">"+ "<saml2:AttributeValue></saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:nhin:names:saml:homeCommunityId\">"+ "<saml2:AttributeValue></saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xacml:2.0:subject:role\">"+ "<saml2:AttributeValue>"+ "<Role xmlns=\"urn:hl7-org:v3\" code=\"112247003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Medical doctor\" xsi:type=\"CE\"/>"+ "</saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xspa:1.0:subject:purposeofuse\">"+ "<saml2:AttributeValue>"+ "<PurposeOfUse xmlns=\"urn:hl7-org:v3\" code=\"TREATMENT\" codeSystem=\"2.16.840.1.113883.3.18.7.1\" codeSystemName=\"nhin-purpose\" displayName=\"Treatment\" xsi:type=\"CE\"/>"+ "</saml2:AttributeValue>"+ "</saml2:Attribute>"+ "<saml2:Attribute Name=\"urn:oasis:names:tc:xacml:2.0:resource:resource-id\">"+ "<saml2:AttributeValue></saml2:AttributeValue>"+ "</saml2:Attribute>"+ "</saml2:AttributeStatement>"+ "</saml2:Assertion>"+ "</wsse:Security>"+ "</env:Header>"+ "<env:Body>"+ "<PRPA_IN201305UV02 xmlns=\"urn:hl7-org:v3\" ITSVersion=\"XML_1.0\">"+ "<id extension=\"126627497759\" root=\"1.3.6.1.4.1.52618.1.3\"/>"+ "<creationTime value=\"20221013181817\"/>"+ "<interactionId extension=\"PRPA_IN201305UV02\" root=\"2.16.840.1.113883.1.6\"/>"+ "<processingCode code=\"P\"/>"+ "<processingModeCode code=\"T\"/>"+ "<acceptAckCode code=\"AL\"/>"+ "<receiver typeCode=\"RCV\">"+ "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">"+ "<id root=\"0.0.0\"/>"+ "<telecom value=\"https://RH-Windows-TMP-b994dba9f85ba908.elb.us-east-1.amazonaws.com:4437/\"/>"+ "<asAgent classCode=\"AGNT\">"+ "<representedOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">"+ "<id root=\"\"/>"+ "</representedOrganization>"+ "</asAgent>"+ "</device>"+ "</receiver>"+ "<sender typeCode=\"SND\">"+ "<device classCode=\"DEV\" determinerCode=\"INSTANCE\">"+ "<id root=\"1.3.6.1.4.1.52618.1.2\"/>"+ "<asAgent classCode=\"AGNT\">"+ "<representedOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">"+ "<id root=\"1.3.6.1.4.1.52618.1\"/>"+ "</representedOrganization>"+ "</asAgent>"+ "</device>"+ "</sender>"+ "<controlActProcess classCode=\"CACT\" moodCode=\"EVN\">"+ "<code code=\"PRPA_TE201305UV02\" codeSystem=\"2.16.840.1.113883.1.6\"/>"+ "<authorOrPerformer typeCode=\"AUT\">"+ "<assignedDevice classCode=\"ASSIGNED\">"+ "<id root=\"1.3.6.1.4.1.52618.1.1\"/>"+ "</assignedDevice>"+ "</authorOrPerformer>"+ "<queryByParameter>"+ "<queryId extension=\"\" root=\"1.3.6.1.4.1.52618.1.3.1\"/>"+ "<statusCode code=\"new\"/>"+ "<responseModalityCode code=\"R\"/>"+ "<responsePriorityCode code=\"I\"/>"+ "<parameterList>"+ "<livingSubjectAdministrativeGender>"+ "<value code=\"M\"/>"+ "<semanticsText>LivingSubject.administrativeGender</semanticsText>"+ "</livingSubjectAdministrativeGender>"+ "<livingSubjectBirthTime>"+ "<value value=\"\"/>"+ "<semanticsText>LivingSubject.birthTime</semanticsText>"+ "</livingSubjectBirthTime>"+ "<livingSubjectId>"+ "<value extension=\"\" root=\"1.3.6.1.4.1.52618.1.1\"/>"+ "<semanticsText>LivingSubject.id</semanticsText>"+ "</livingSubjectId>"+ "<livingSubjectName>"+ "<value>"+ "<given></given>"+ "<family>TEST</family>"+ "</value>"+ "<semanticsText>LivingSubject.name</semanticsText>"+ "</livingSubjectName>"+ "<patientAddress>"+ "<value>"+ "<streetAddressLine>Home Dr</streetAddressLine>"+ "<city>Charlotte</city>"+ "<state>NC</state>"+ "<postalCode></postalCode>"+ "<country>US</country>"+ "</value>"+ "<semanticsText>Patient.addr</semanticsText>"+ "</patientAddress>"+ "</parameterList>"+ "</queryByParameter>"+ "</controlActProcess>"+ "</PRPA_IN201305UV02>"+ "</env:Body>"+ "</env:Envelope>"+; var samlString = new java.lang.String(samlenvelope); //////////////////////////////////////////////////////////////////////////////////// // Build our XML DOM for signature // var documentBuilderFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); var document = documentBuilderFactory.newDocumentBuilder().parse(new java.io.ByteArrayInputStream(samlString.getBytes("utf-8"))); //////////////////////////////////////////////////////////////////////////////////// // Configure Digital Signature utilities for required crypto operations // var xmlDsigFactory = javax.xml.crypto.dsig.XMLSignatureFactory.getInstance("DOM"); var parameterSpec = new javax.xml.crypto.dsig.spec.ExcC14NParameterSpec(); var reference = xmlDsigFactory.newReference ( "#assertion_ID", xmlDsigFactory.newDigestMethod(javax.xml.crypto.dsig.DigestMethod.SHA1, null), java.util.Collections.singletonList(xmlDsigFactory.newTransform("http://www.w3.org/2001/10/xml-exc-c14n#", parameterSpec)), null, //type null //id ) var signedInfo = xmlDsigFactory.newSignedInfo ( xmlDsigFactory.newCanonicalizationMethod ( javax.xml.crypto.dsig.CanonicalizationMethod.EXCLUSIVE, parameterSpec ), xmlDsigFactory.newSignatureMethod(javax.xml.crypto.dsig.SignatureMethod.RSA_SHA1, null), java.util.Collections.singletonList(reference) ) var reference1 = xmlDsigFactory.newReference ( "#timestamp_ID", xmlDsigFactory.newDigestMethod(javax.xml.crypto.dsig.DigestMethod.SHA1, null), java.util.Collections.singletonList(xmlDsigFactory.newTransform("http://www.w3.org/2001/10/xml-exc-c14n#", parameterSpec)), null, //type null //id ) var signedInfo1 = xmlDsigFactory.newSignedInfo ( xmlDsigFactory.newCanonicalizationMethod ( javax.xml.crypto.dsig.CanonicalizationMethod.EXCLUSIVE, parameterSpec ), xmlDsigFactory.newSignatureMethod(javax.xml.crypto.dsig.SignatureMethod.RSA_SHA1, null), java.util.Collections.singletonList(reference1) ) ////////////////////////////////////////////////////// // Fetch our certificate and key // var certificate; try { var inputStream = new java.io.FileInputStream("test.crt"); var certificateFactory = java.security.cert.CertificateFactory.getInstance("X.509"); certificate = certificateFactory.generateCertificate(inputStream); } finally { if (inputStream != null) inputStream.close(); } var privateKey; var keyFactory = java.security.KeyFactory.getInstance("RSA"); var keySpec = new java.security.spec.PKCS8EncodedKeySpec(java.nio.file.Files.readAllBytes(new java.io.File("private_key.der").toPath())); privateKey = keyFactory.generatePrivate(keySpec); //////////////////////////////////////////////////////// // Generate the KeyInfo for our signature // var keyInfoFactory = xmlDsigFactory.getKeyInfoFactory(); var x509Content = new java.util.ArrayList(); x509Content.add(certificate); var x509Data = keyInfoFactory.newX509Data(x509Content); var keyInfo = keyInfoFactory.newKeyInfo(java.util.Collections.singletonList(x509Data)); var signature = xmlDsigFactory.newXMLSignature(signedInfo, keyInfo); var dsc = new javax.xml.crypto.dsig.dom.DOMSignContext(privateKey, document.getDocumentElement()); var rootEl = document.getDocumentElement(); rootEl.setIdAttribute("ID",true); signature.sign(dsc); var signature1 = xmlDsigFactory.newXMLSignature(signedInfo1, keyInfo1); var dsc = new javax.xml.crypto.dsig.dom.DOMSignContext(privateKey, document.getDocumentElement()); signature1.sign(dsc); /* var newEle=document.createElement("Transform"); newEle.setAttribute('Algorithm', 'http://www.w3.org/2000/09/xmldsig#enveloped-signature'); document.getElementsByTagName("Transforms").item(0).appendChild(newEle);*/ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Define any formatting preferences get the signed document as a string // var transformerFactory = javax.xml.transform.TransformerFactory.newInstance(); var transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION, "yes"); var stringWriter = new java.io.StringWriter(); transformer.transform(new javax.xml.transform.dom.DOMSource(document), new javax.xml.transform.stream.StreamResult(stringWriter)); channelMap.put("soapMessage", stringWriter.toString()); when I run the code I get this error Wrapped org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist. Will appreciate your help
Flutter SVG gradient is not rendered: Failed to find definition for url
I have this gradient image but it seems that flutter_svg is not able to render it. The code of the image is: <svg width="249" height="76" viewBox="0 0 249 76" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M156.656 57.6692C153.048 57.6692 149.734 56.8297 146.714 55.1506C143.693 53.4715 141.26 51.1628 139.415 48.2244C137.653 45.202 136.772 41.8019 136.772 38.0239C136.772 34.162 137.653 30.8038 139.415 27.9494C141.26 25.011 143.693 22.7442 146.714 21.1491C149.734 19.47 153.048 18.6304 156.656 18.6304C160.347 18.6304 163.661 19.47 166.597 21.1491C169.618 22.7442 172.009 25.011 173.771 27.9494C175.533 30.8038 176.413 34.162 176.413 38.0239C176.413 41.8019 175.533 45.202 173.771 48.2244C172.009 51.1628 169.618 53.4715 166.597 55.1506C163.661 56.8297 160.347 57.6692 156.656 57.6692ZM156.656 47.4688C159.256 47.4688 161.354 46.5873 162.948 44.8242C164.626 42.9772 165.465 40.7104 165.465 38.0239C165.465 35.2534 164.626 33.0286 162.948 31.3495C161.354 29.6704 159.256 28.8309 156.656 28.8309C154.139 28.8309 151.999 29.6704 150.237 31.3495C148.559 33.0286 147.721 35.2534 147.721 38.0239C147.721 40.7104 148.559 42.9772 150.237 44.8242C151.999 46.5873 154.139 47.4688 156.656 47.4688Z" fill="url(#paint0_linear_809_1834)"/> <path d="M192.916 57.6692C187.211 57.6692 182.513 56.4939 178.822 54.1432C178.067 53.6394 177.521 53.0517 177.186 52.3801C176.85 51.6245 176.682 50.9109 176.682 50.2393C176.682 48.812 177.144 47.5108 178.067 46.3354C179.073 45.16 180.29 44.5723 181.716 44.5723C182.387 44.5723 183.058 44.7403 183.73 45.0761C185.24 45.7477 186.96 46.3354 188.889 46.8391C190.819 47.2589 192.581 47.4688 194.175 47.4688C197.279 47.4688 198.831 46.7552 198.831 45.3279C198.831 44.4884 198.454 43.7748 197.699 43.1871C196.943 42.5155 195.182 42.0537 192.413 41.8019C191.322 41.7179 189.896 41.55 188.134 41.2981C186.456 41.0463 184.778 40.5845 183.1 39.9129C181.422 39.1573 179.996 38.0659 178.822 36.6387C177.731 35.2114 177.186 33.2805 177.186 30.8458C177.186 27.0679 178.612 24.0875 181.464 21.9047C184.317 19.7218 188.134 18.6304 192.916 18.6304C195.685 18.6304 198.286 18.9243 200.719 19.512C203.236 20.0996 205.123 20.9812 206.382 22.1565C207.556 23.2479 208.144 24.5072 208.144 25.9345C208.144 27.1938 207.682 28.3272 206.759 29.3346C205.837 30.3421 204.662 30.8458 203.236 30.8458C202.481 30.8458 201.768 30.6779 201.096 30.3421C200.09 29.6704 198.789 29.1667 197.195 28.8309C195.685 28.4951 194.133 28.3272 192.539 28.3272C189.351 28.3272 187.757 28.9988 187.757 30.3421C187.757 30.9298 188.05 31.4755 188.638 31.9792C189.309 32.399 190.777 32.7768 193.042 33.1126C194.468 33.2805 196.104 33.5323 197.95 33.8682C199.796 34.12 201.558 34.6237 203.236 35.3793C204.998 36.051 206.466 37.1844 207.64 38.7795C208.815 40.3746 209.402 42.5574 209.402 45.3279C209.402 49.1059 207.892 52.1282 204.872 54.395C201.851 56.5778 197.866 57.6692 192.916 57.6692Z" fill="url(#paint1_linear_809_1834)"/> <path d="M208.358 23.6677C208.358 21.9886 208.946 20.7293 210.12 19.8897C211.295 19.0502 212.637 18.6304 214.147 18.6304C215.322 18.6304 216.329 18.9662 217.168 19.6379C218.091 20.2256 218.72 21.0651 219.055 22.1565L226.858 41.1722C227.277 42.2636 227.865 42.8093 228.62 42.8093C229.375 42.8093 229.92 42.2636 230.256 41.1722L237.051 22.1565C237.471 20.9812 238.142 20.0996 239.065 19.512C240.072 18.9243 241.12 18.6304 242.211 18.6304C243.637 18.6304 244.938 19.0922 246.112 20.0157C247.371 20.9392 248 22.1565 248 23.6677C248 24.5072 247.832 25.3048 247.497 26.0604L227.865 71.3958C227.277 72.6551 226.522 73.5366 225.599 74.0404C224.76 74.628 223.879 74.9219 222.957 74.9219C221.446 74.9219 220.062 74.3762 218.804 73.2848C217.629 72.2773 217.042 71.06 217.042 69.6327C217.042 68.8772 217.21 68.2055 217.545 67.6178L224.341 55.5284C222.915 55.1086 221.782 54.0592 220.943 52.3801L208.736 25.9345C208.484 25.1789 208.358 24.4233 208.358 23.6677Z" fill="url(#paint2_linear_809_1834)"/> <path d="M45.0462 53.0098C43.4521 54.2691 41.0191 55.3605 37.7471 56.284C34.4751 57.2075 31.287 57.6692 28.1828 57.6692C22.9811 57.6692 18.3248 56.5359 14.2139 54.2691C10.1029 51.9184 6.87283 48.6861 4.5237 44.5723C2.17457 40.4586 1 35.7991 1 30.5939C1 25.1369 2.13262 20.4355 4.39785 16.4896C6.74698 12.5437 9.97703 9.52137 14.088 7.42251C18.199 5.2397 22.9811 4.14829 28.4345 4.14829C30.6997 4.14829 32.965 4.35818 35.2302 4.77795C37.5793 5.19772 39.7187 5.86936 41.6483 6.79286C42.6551 7.29658 43.3682 7.96822 43.7877 8.80776C44.2911 9.56335 44.5428 10.4029 44.5428 11.3264C44.5428 12.6697 44.0394 13.929 43.0327 15.1043C42.1098 16.1958 40.8513 16.7415 39.2573 16.7415C38.5861 16.7415 37.873 16.6155 37.1179 16.3637C35.6077 15.776 33.9717 15.3142 32.2099 14.9784C30.448 14.5586 28.8959 14.3488 27.5536 14.3488C23.1909 14.3488 19.5414 15.818 16.6049 18.7564C13.7524 21.6948 12.3262 25.6406 12.3262 30.5939C12.3262 35.8831 13.7944 40.0388 16.7308 43.0612C19.7511 46.0835 23.6104 47.5947 28.3086 47.5947C30.2383 47.5947 32.2938 47.2589 34.4751 46.5873C36.6564 45.9156 38.4183 45.0761 39.7607 44.0686C40.6835 43.4809 41.6903 43.1871 42.781 43.1871C44.2072 43.1871 45.3398 43.6908 46.1788 44.6983C47.1017 45.6218 47.5631 46.7971 47.5631 48.2244C47.5631 50.0714 46.7241 51.6665 45.0462 53.0098Z" fill="url(#paint3_linear_809_1834)"/> <path d="M56.587 57.6692C54.993 57.6692 53.6506 57.2075 52.5599 56.284C51.4693 55.3605 50.9239 54.1851 50.9239 52.7579V5.91133C50.9239 4.56806 51.4273 3.43468 52.4341 2.51118C53.5248 1.50373 54.9091 1 56.587 1C58.1811 1 59.4815 1.50373 60.4883 2.51118C61.495 3.43468 61.9984 4.61004 61.9984 6.03727V22.7862C63.0891 21.5269 64.5573 20.5194 66.403 19.7638C68.2488 19.0082 70.2204 18.6304 72.3178 18.6304C77.0161 18.6304 80.7915 20.0157 83.644 22.7862C86.5804 25.5567 88.0486 29.9643 88.0486 36.009V53.0098C88.0486 54.353 87.5033 55.4864 86.4126 56.4099C85.4058 57.2495 84.1054 57.6692 82.5114 57.6692C80.9173 57.6692 79.5749 57.2075 78.4843 56.284C77.4775 55.3605 76.9741 54.1851 76.9741 52.7579V37.3942C76.9741 34.2879 76.261 32.0631 74.8347 30.7199C73.4924 29.3766 71.8144 28.705 69.8009 28.705C67.7034 28.705 65.9835 29.4186 64.6412 30.8458C63.2988 32.1891 62.4179 33.7002 61.9984 35.3793V52.632C61.9984 54.0592 61.4531 55.2765 60.3624 56.284C59.3556 57.2075 58.0972 57.6692 56.587 57.6692Z" fill="url(#paint4_linear_809_1834)"/> <path d="M112.376 9.31541C105.287 10.0754 102.882 22.2992 102.565 28.3161C100.287 29.0761 100.139 22.2992 100.35 18.8158C100.35 17.5491 99.7172 17.0213 99.4007 16.9157C97.9239 16.7046 94.6537 18.1191 93.3879 25.466C92.122 32.813 93.2305 38.8017 93.7355 40.9747C93.9361 41.8379 94.5902 43.6632 95.1622 44.9008C96.8117 48.4699 99.3143 51.8243 103.198 54.6004C108.515 58.4006 116.806 58.0839 120.287 57.4505C123.874 56.6061 130.127 53.2449 132.313 46.6835C134.528 40.0332 133.79 36.5498 133.262 35.9164C132.946 35.0719 131.743 33.383 129.465 33.383C127.186 33.383 126.195 35.4942 125.984 36.5498C125.878 36.7609 125.667 37.8165 125.667 40.3499C125.667 42.8833 123.557 45.4168 122.503 46.3668C120.182 47.6335 114.654 49.2169 111.11 45.4168C107.565 41.6166 109.211 37.4998 110.477 35.9164C111.215 34.8608 113.515 32.6863 116.806 32.4329C120.097 32.1796 123.241 35.0719 124.401 36.5498C124.148 33.763 127.039 31.5885 128.515 30.8495C125.667 27.9994 122.819 26.7327 121.553 26.0994C120.54 25.5927 120.92 23.8826 121.553 23.2493L131.68 11.5322L125.351 17.5491L126.808 16.1639L131.68 11.5322C131.996 10.7932 131.49 9.44209 126.933 9.94877C121.237 10.5821 114.591 21.6659 111.426 23.2493C108.895 24.516 110.16 20.8214 111.11 18.8158C112.059 17.2324 114.085 13.5589 114.591 11.5322C115.097 9.50542 113.325 9.20986 112.376 9.31541Z" fill="url(#paint5_linear_809_1834)"/> <path d="M131.68 11.5322C131.996 10.7932 131.49 9.44209 126.933 9.94877C121.237 10.5821 114.591 21.6659 111.426 23.2493C108.895 24.516 110.16 20.8214 111.11 18.8158C112.059 17.2324 114.085 13.5589 114.591 11.5322C115.097 9.50542 113.325 9.20986 112.376 9.31541C105.287 10.0754 102.882 22.2992 102.565 28.3161C100.287 29.0761 100.139 22.2992 100.35 18.8158C100.35 17.5491 99.7172 17.0213 99.4007 16.9157C97.9239 16.7046 94.6537 18.1191 93.3879 25.466C92.122 32.813 93.2305 38.8017 93.7355 40.9747M131.68 11.5322L126.808 16.1639L125.351 17.5491L131.68 11.5322ZM131.68 11.5322L121.553 23.2493C120.92 23.8826 120.54 25.5927 121.553 26.0994C122.819 26.7327 125.667 27.9994 128.515 30.8495C127.039 31.5885 124.148 33.763 124.401 36.5498C123.241 35.0719 120.097 32.1796 116.806 32.4329C113.515 32.6863 111.215 34.8608 110.477 35.9164C109.211 37.4998 107.565 41.6166 111.11 45.4168C114.654 49.2169 120.182 47.6335 122.503 46.3668C123.557 45.4168 125.667 42.8833 125.667 40.3499C125.667 37.8165 125.878 36.7609 125.984 36.5498C126.195 35.4942 127.186 33.383 129.465 33.383C131.743 33.383 132.946 35.0719 133.262 35.9164C133.79 36.5498 134.528 40.0332 132.313 46.6835C130.127 53.2449 123.874 56.6061 120.287 57.4505C116.806 58.0839 108.515 58.4006 103.198 54.6004C99.3143 51.8243 96.8117 48.4699 95.1622 44.9008M93.7355 40.9747C93.9361 41.8379 94.5902 43.6632 95.1622 44.9008M93.7355 40.9747L95.1622 44.9008M156.656 57.6692C153.048 57.6692 149.734 56.8297 146.714 55.1506C143.693 53.4715 141.26 51.1628 139.415 48.2244C137.653 45.202 136.772 41.8019 136.772 38.0239C136.772 34.162 137.653 30.8038 139.415 27.9494C141.26 25.011 143.693 22.7442 146.714 21.1491C149.734 19.47 153.048 18.6304 156.656 18.6304C160.347 18.6304 163.661 19.47 166.597 21.1491C169.618 22.7442 172.009 25.011 173.771 27.9494C175.533 30.8038 176.413 34.162 176.413 38.0239C176.413 41.8019 175.533 45.202 173.771 48.2244C172.009 51.1628 169.618 53.4715 166.597 55.1506C163.661 56.8297 160.347 57.6692 156.656 57.6692ZM156.656 47.4688C159.256 47.4688 161.354 46.5873 162.948 44.8242C164.626 42.9772 165.465 40.7104 165.465 38.0239C165.465 35.2534 164.626 33.0286 162.948 31.3495C161.354 29.6704 159.256 28.8309 156.656 28.8309C154.139 28.8309 151.999 29.6704 150.237 31.3495C148.559 33.0286 147.721 35.2534 147.721 38.0239C147.721 40.7104 148.559 42.9772 150.237 44.8242C151.999 46.5873 154.139 47.4688 156.656 47.4688ZM192.916 57.6692C187.211 57.6692 182.513 56.4939 178.822 54.1431C178.067 53.6394 177.521 53.0517 177.186 52.3801C176.85 51.6245 176.682 50.9109 176.682 50.2393C176.682 48.812 177.144 47.5108 178.067 46.3354C179.073 45.16 180.29 44.5723 181.716 44.5723C182.387 44.5723 183.058 44.7403 183.73 45.0761C185.24 45.7477 186.96 46.3354 188.889 46.8391C190.819 47.2589 192.581 47.4688 194.175 47.4688C197.279 47.4688 198.831 46.7552 198.831 45.3279C198.831 44.4884 198.454 43.7748 197.699 43.1871C196.943 42.5155 195.182 42.0537 192.413 41.8019C191.322 41.7179 189.896 41.55 188.134 41.2981C186.456 41.0463 184.778 40.5845 183.1 39.9129C181.422 39.1573 179.996 38.0659 178.822 36.6387C177.731 35.2114 177.186 33.2805 177.186 30.8458C177.186 27.0679 178.612 24.0875 181.464 21.9047C184.317 19.7218 188.134 18.6304 192.916 18.6304C195.685 18.6304 198.286 18.9243 200.719 19.512C203.236 20.0996 205.123 20.9812 206.382 22.1565C207.556 23.2479 208.144 24.5072 208.144 25.9345C208.144 27.1938 207.682 28.3272 206.759 29.3346C205.837 30.3421 204.662 30.8458 203.236 30.8458C202.481 30.8458 201.768 30.6779 201.096 30.3421C200.09 29.6704 198.789 29.1667 197.195 28.8309C195.685 28.4951 194.133 28.3272 192.539 28.3272C189.351 28.3272 187.757 28.9988 187.757 30.3421C187.757 30.9298 188.05 31.4755 188.638 31.9792C189.309 32.399 190.777 32.7768 193.042 33.1126C194.468 33.2805 196.104 33.5323 197.95 33.8682C199.796 34.12 201.558 34.6237 203.236 35.3793C204.998 36.051 206.466 37.1844 207.64 38.7795C208.815 40.3746 209.402 42.5574 209.402 45.3279C209.402 49.1059 207.892 52.1282 204.872 54.395C201.851 56.5778 197.866 57.6692 192.916 57.6692ZM208.358 23.6677C208.358 21.9886 208.946 20.7293 210.12 19.8897C211.295 19.0502 212.637 18.6304 214.147 18.6304C215.322 18.6304 216.329 18.9662 217.168 19.6379C218.091 20.2256 218.72 21.0651 219.055 22.1565L226.858 41.1722C227.277 42.2636 227.865 42.8093 228.62 42.8093C229.375 42.8093 229.92 42.2636 230.256 41.1722L237.051 22.1565C237.471 20.9812 238.142 20.0996 239.065 19.512C240.072 18.9243 241.12 18.6304 242.211 18.6304C243.637 18.6304 244.938 19.0922 246.112 20.0157C247.371 20.9392 248 22.1565 248 23.6677C248 24.5072 247.832 25.3048 247.497 26.0604L227.865 71.3958C227.277 72.6551 226.522 73.5366 225.599 74.0403C224.76 74.628 223.879 74.9219 222.957 74.9219C221.446 74.9219 220.062 74.3762 218.804 73.2848C217.629 72.2773 217.042 71.06 217.042 69.6327C217.042 68.8772 217.21 68.2055 217.545 67.6178L224.341 55.5284C222.915 55.1086 221.782 54.0592 220.943 52.3801L208.736 25.9345C208.484 25.1789 208.358 24.4233 208.358 23.6677ZM45.0462 53.0098C43.4521 54.2691 41.0191 55.3605 37.7471 56.284C34.4751 57.2075 31.287 57.6692 28.1828 57.6692C22.9811 57.6692 18.3248 56.5359 14.2139 54.2691C10.1029 51.9184 6.87283 48.6861 4.5237 44.5723C2.17457 40.4586 1 35.7991 1 30.5939C1 25.1369 2.13262 20.4355 4.39785 16.4896C6.74698 12.5437 9.97703 9.52137 14.088 7.42251C18.199 5.2397 22.9811 4.14829 28.4345 4.14829C30.6997 4.14829 32.965 4.35818 35.2302 4.77795C37.5793 5.19772 39.7187 5.86936 41.6483 6.79286C42.6551 7.29658 43.3682 7.96822 43.7877 8.80776C44.2911 9.56335 44.5428 10.4029 44.5428 11.3264C44.5428 12.6697 44.0394 13.929 43.0327 15.1043C42.1098 16.1958 40.8513 16.7415 39.2573 16.7415C38.5861 16.7415 37.873 16.6155 37.1179 16.3637C35.6077 15.776 33.9717 15.3142 32.2099 14.9784C30.448 14.5586 28.8959 14.3488 27.5536 14.3488C23.1909 14.3488 19.5414 15.818 16.6049 18.7564C13.7524 21.6948 12.3262 25.6406 12.3262 30.5939C12.3262 35.8831 13.7944 40.0388 16.7308 43.0612C19.7511 46.0835 23.6104 47.5947 28.3086 47.5947C30.2383 47.5947 32.2938 47.2589 34.4751 46.5873C36.6564 45.9156 38.4183 45.0761 39.7607 44.0686C40.6835 43.4809 41.6903 43.1871 42.781 43.1871C44.2072 43.1871 45.3398 43.6908 46.1788 44.6983C47.1017 45.6218 47.5631 46.7971 47.5631 48.2244C47.5631 50.0714 46.7241 51.6665 45.0462 53.0098ZM56.587 57.6692C54.993 57.6692 53.6506 57.2075 52.5599 56.284C51.4693 55.3605 50.9239 54.1851 50.9239 52.7579V5.91133C50.9239 4.56806 51.4273 3.43468 52.4341 2.51118C53.5248 1.50373 54.9091 1 56.587 1C58.1811 1 59.4815 1.50373 60.4883 2.51118C61.495 3.43468 61.9984 4.61004 61.9984 6.03727V22.7862C63.0891 21.5269 64.5573 20.5194 66.403 19.7638C68.2488 19.0082 70.2204 18.6304 72.3178 18.6304C77.0161 18.6304 80.7915 20.0157 83.644 22.7862C86.5804 25.5567 88.0486 29.9643 88.0486 36.009V53.0098C88.0486 54.353 87.5033 55.4864 86.4126 56.4099C85.4058 57.2495 84.1054 57.6692 82.5114 57.6692C80.9173 57.6692 79.5749 57.2075 78.4843 56.284C77.4775 55.3605 76.9741 54.1851 76.9741 52.7579V37.3942C76.9741 34.2879 76.261 32.0631 74.8347 30.7199C73.4924 29.3766 71.8144 28.705 69.8009 28.705C67.7034 28.705 65.9835 29.4186 64.6412 30.8458C63.2988 32.1891 62.4179 33.7003 61.9984 35.3793V52.632C61.9984 54.0592 61.4531 55.2765 60.3624 56.284C59.3556 57.2075 58.0972 57.6692 56.587 57.6692Z" stroke="url(#paint6_linear_809_1834)" stroke-width="0.263406" stroke-linecap="round" stroke-linejoin="round"/> <defs> <linearGradient id="paint0_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint1_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint2_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint3_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint4_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint5_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint6_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> </defs> </svg> I tried many things, but the SVG file should be correct. When in Flutter, I see the image in white. The error I get is: ════════ Exception caught by SVG ═══════════════════════════════════════════════ Failed to find definition for url(#paint6_linear_809_1834) It happens for all the paintN_linear points.
Just move the defs to the top right below the svg tag. Here's the result: The XML is going to be like the following: <svg width="249" height="76" viewBox="0 0 249 76" fill="none" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="paint0_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint1_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint2_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint3_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint4_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint5_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> <linearGradient id="paint6_linear_809_1834" x1="1" y1="74.5218" x2="120.071" y2="-92.6821" gradientUnits="userSpaceOnUse"> <stop stop-color="#E96443"/> <stop offset="1" stop-color="#904E95"/> </linearGradient> </defs> <path d="M156.656 57.6692C153.048 57.6692 149.734 56.8297 146.714 55.1506C143.693 53.4715 141.26 51.1628 139.415 48.2244C137.653 45.202 136.772 41.8019 136.772 38.0239C136.772 34.162 137.653 30.8038 139.415 27.9494C141.26 25.011 143.693 22.7442 146.714 21.1491C149.734 19.47 153.048 18.6304 156.656 18.6304C160.347 18.6304 163.661 19.47 166.597 21.1491C169.618 22.7442 172.009 25.011 173.771 27.9494C175.533 30.8038 176.413 34.162 176.413 38.0239C176.413 41.8019 175.533 45.202 173.771 48.2244C172.009 51.1628 169.618 53.4715 166.597 55.1506C163.661 56.8297 160.347 57.6692 156.656 57.6692ZM156.656 47.4688C159.256 47.4688 161.354 46.5873 162.948 44.8242C164.626 42.9772 165.465 40.7104 165.465 38.0239C165.465 35.2534 164.626 33.0286 162.948 31.3495C161.354 29.6704 159.256 28.8309 156.656 28.8309C154.139 28.8309 151.999 29.6704 150.237 31.3495C148.559 33.0286 147.721 35.2534 147.721 38.0239C147.721 40.7104 148.559 42.9772 150.237 44.8242C151.999 46.5873 154.139 47.4688 156.656 47.4688Z" fill="url(#paint0_linear_809_1834)"/> <path d="M192.916 57.6692C187.211 57.6692 182.513 56.4939 178.822 54.1432C178.067 53.6394 177.521 53.0517 177.186 52.3801C176.85 51.6245 176.682 50.9109 176.682 50.2393C176.682 48.812 177.144 47.5108 178.067 46.3354C179.073 45.16 180.29 44.5723 181.716 44.5723C182.387 44.5723 183.058 44.7403 183.73 45.0761C185.24 45.7477 186.96 46.3354 188.889 46.8391C190.819 47.2589 192.581 47.4688 194.175 47.4688C197.279 47.4688 198.831 46.7552 198.831 45.3279C198.831 44.4884 198.454 43.7748 197.699 43.1871C196.943 42.5155 195.182 42.0537 192.413 41.8019C191.322 41.7179 189.896 41.55 188.134 41.2981C186.456 41.0463 184.778 40.5845 183.1 39.9129C181.422 39.1573 179.996 38.0659 178.822 36.6387C177.731 35.2114 177.186 33.2805 177.186 30.8458C177.186 27.0679 178.612 24.0875 181.464 21.9047C184.317 19.7218 188.134 18.6304 192.916 18.6304C195.685 18.6304 198.286 18.9243 200.719 19.512C203.236 20.0996 205.123 20.9812 206.382 22.1565C207.556 23.2479 208.144 24.5072 208.144 25.9345C208.144 27.1938 207.682 28.3272 206.759 29.3346C205.837 30.3421 204.662 30.8458 203.236 30.8458C202.481 30.8458 201.768 30.6779 201.096 30.3421C200.09 29.6704 198.789 29.1667 197.195 28.8309C195.685 28.4951 194.133 28.3272 192.539 28.3272C189.351 28.3272 187.757 28.9988 187.757 30.3421C187.757 30.9298 188.05 31.4755 188.638 31.9792C189.309 32.399 190.777 32.7768 193.042 33.1126C194.468 33.2805 196.104 33.5323 197.95 33.8682C199.796 34.12 201.558 34.6237 203.236 35.3793C204.998 36.051 206.466 37.1844 207.64 38.7795C208.815 40.3746 209.402 42.5574 209.402 45.3279C209.402 49.1059 207.892 52.1282 204.872 54.395C201.851 56.5778 197.866 57.6692 192.916 57.6692Z" fill="url(#paint1_linear_809_1834)"/> <path d="M208.358 23.6677C208.358 21.9886 208.946 20.7293 210.12 19.8897C211.295 19.0502 212.637 18.6304 214.147 18.6304C215.322 18.6304 216.329 18.9662 217.168 19.6379C218.091 20.2256 218.72 21.0651 219.055 22.1565L226.858 41.1722C227.277 42.2636 227.865 42.8093 228.62 42.8093C229.375 42.8093 229.92 42.2636 230.256 41.1722L237.051 22.1565C237.471 20.9812 238.142 20.0996 239.065 19.512C240.072 18.9243 241.12 18.6304 242.211 18.6304C243.637 18.6304 244.938 19.0922 246.112 20.0157C247.371 20.9392 248 22.1565 248 23.6677C248 24.5072 247.832 25.3048 247.497 26.0604L227.865 71.3958C227.277 72.6551 226.522 73.5366 225.599 74.0404C224.76 74.628 223.879 74.9219 222.957 74.9219C221.446 74.9219 220.062 74.3762 218.804 73.2848C217.629 72.2773 217.042 71.06 217.042 69.6327C217.042 68.8772 217.21 68.2055 217.545 67.6178L224.341 55.5284C222.915 55.1086 221.782 54.0592 220.943 52.3801L208.736 25.9345C208.484 25.1789 208.358 24.4233 208.358 23.6677Z" fill="url(#paint2_linear_809_1834)"/> <path d="M45.0462 53.0098C43.4521 54.2691 41.0191 55.3605 37.7471 56.284C34.4751 57.2075 31.287 57.6692 28.1828 57.6692C22.9811 57.6692 18.3248 56.5359 14.2139 54.2691C10.1029 51.9184 6.87283 48.6861 4.5237 44.5723C2.17457 40.4586 1 35.7991 1 30.5939C1 25.1369 2.13262 20.4355 4.39785 16.4896C6.74698 12.5437 9.97703 9.52137 14.088 7.42251C18.199 5.2397 22.9811 4.14829 28.4345 4.14829C30.6997 4.14829 32.965 4.35818 35.2302 4.77795C37.5793 5.19772 39.7187 5.86936 41.6483 6.79286C42.6551 7.29658 43.3682 7.96822 43.7877 8.80776C44.2911 9.56335 44.5428 10.4029 44.5428 11.3264C44.5428 12.6697 44.0394 13.929 43.0327 15.1043C42.1098 16.1958 40.8513 16.7415 39.2573 16.7415C38.5861 16.7415 37.873 16.6155 37.1179 16.3637C35.6077 15.776 33.9717 15.3142 32.2099 14.9784C30.448 14.5586 28.8959 14.3488 27.5536 14.3488C23.1909 14.3488 19.5414 15.818 16.6049 18.7564C13.7524 21.6948 12.3262 25.6406 12.3262 30.5939C12.3262 35.8831 13.7944 40.0388 16.7308 43.0612C19.7511 46.0835 23.6104 47.5947 28.3086 47.5947C30.2383 47.5947 32.2938 47.2589 34.4751 46.5873C36.6564 45.9156 38.4183 45.0761 39.7607 44.0686C40.6835 43.4809 41.6903 43.1871 42.781 43.1871C44.2072 43.1871 45.3398 43.6908 46.1788 44.6983C47.1017 45.6218 47.5631 46.7971 47.5631 48.2244C47.5631 50.0714 46.7241 51.6665 45.0462 53.0098Z" fill="url(#paint3_linear_809_1834)"/> <path d="M56.587 57.6692C54.993 57.6692 53.6506 57.2075 52.5599 56.284C51.4693 55.3605 50.9239 54.1851 50.9239 52.7579V5.91133C50.9239 4.56806 51.4273 3.43468 52.4341 2.51118C53.5248 1.50373 54.9091 1 56.587 1C58.1811 1 59.4815 1.50373 60.4883 2.51118C61.495 3.43468 61.9984 4.61004 61.9984 6.03727V22.7862C63.0891 21.5269 64.5573 20.5194 66.403 19.7638C68.2488 19.0082 70.2204 18.6304 72.3178 18.6304C77.0161 18.6304 80.7915 20.0157 83.644 22.7862C86.5804 25.5567 88.0486 29.9643 88.0486 36.009V53.0098C88.0486 54.353 87.5033 55.4864 86.4126 56.4099C85.4058 57.2495 84.1054 57.6692 82.5114 57.6692C80.9173 57.6692 79.5749 57.2075 78.4843 56.284C77.4775 55.3605 76.9741 54.1851 76.9741 52.7579V37.3942C76.9741 34.2879 76.261 32.0631 74.8347 30.7199C73.4924 29.3766 71.8144 28.705 69.8009 28.705C67.7034 28.705 65.9835 29.4186 64.6412 30.8458C63.2988 32.1891 62.4179 33.7002 61.9984 35.3793V52.632C61.9984 54.0592 61.4531 55.2765 60.3624 56.284C59.3556 57.2075 58.0972 57.6692 56.587 57.6692Z" fill="url(#paint4_linear_809_1834)"/> <path d="M112.376 9.31541C105.287 10.0754 102.882 22.2992 102.565 28.3161C100.287 29.0761 100.139 22.2992 100.35 18.8158C100.35 17.5491 99.7172 17.0213 99.4007 16.9157C97.9239 16.7046 94.6537 18.1191 93.3879 25.466C92.122 32.813 93.2305 38.8017 93.7355 40.9747C93.9361 41.8379 94.5902 43.6632 95.1622 44.9008C96.8117 48.4699 99.3143 51.8243 103.198 54.6004C108.515 58.4006 116.806 58.0839 120.287 57.4505C123.874 56.6061 130.127 53.2449 132.313 46.6835C134.528 40.0332 133.79 36.5498 133.262 35.9164C132.946 35.0719 131.743 33.383 129.465 33.383C127.186 33.383 126.195 35.4942 125.984 36.5498C125.878 36.7609 125.667 37.8165 125.667 40.3499C125.667 42.8833 123.557 45.4168 122.503 46.3668C120.182 47.6335 114.654 49.2169 111.11 45.4168C107.565 41.6166 109.211 37.4998 110.477 35.9164C111.215 34.8608 113.515 32.6863 116.806 32.4329C120.097 32.1796 123.241 35.0719 124.401 36.5498C124.148 33.763 127.039 31.5885 128.515 30.8495C125.667 27.9994 122.819 26.7327 121.553 26.0994C120.54 25.5927 120.92 23.8826 121.553 23.2493L131.68 11.5322L125.351 17.5491L126.808 16.1639L131.68 11.5322C131.996 10.7932 131.49 9.44209 126.933 9.94877C121.237 10.5821 114.591 21.6659 111.426 23.2493C108.895 24.516 110.16 20.8214 111.11 18.8158C112.059 17.2324 114.085 13.5589 114.591 11.5322C115.097 9.50542 113.325 9.20986 112.376 9.31541Z" fill="url(#paint5_linear_809_1834)"/> <path d="M131.68 11.5322C131.996 10.7932 131.49 9.44209 126.933 9.94877C121.237 10.5821 114.591 21.6659 111.426 23.2493C108.895 24.516 110.16 20.8214 111.11 18.8158C112.059 17.2324 114.085 13.5589 114.591 11.5322C115.097 9.50542 113.325 9.20986 112.376 9.31541C105.287 10.0754 102.882 22.2992 102.565 28.3161C100.287 29.0761 100.139 22.2992 100.35 18.8158C100.35 17.5491 99.7172 17.0213 99.4007 16.9157C97.9239 16.7046 94.6537 18.1191 93.3879 25.466C92.122 32.813 93.2305 38.8017 93.7355 40.9747M131.68 11.5322L126.808 16.1639L125.351 17.5491L131.68 11.5322ZM131.68 11.5322L121.553 23.2493C120.92 23.8826 120.54 25.5927 121.553 26.0994C122.819 26.7327 125.667 27.9994 128.515 30.8495C127.039 31.5885 124.148 33.763 124.401 36.5498C123.241 35.0719 120.097 32.1796 116.806 32.4329C113.515 32.6863 111.215 34.8608 110.477 35.9164C109.211 37.4998 107.565 41.6166 111.11 45.4168C114.654 49.2169 120.182 47.6335 122.503 46.3668C123.557 45.4168 125.667 42.8833 125.667 40.3499C125.667 37.8165 125.878 36.7609 125.984 36.5498C126.195 35.4942 127.186 33.383 129.465 33.383C131.743 33.383 132.946 35.0719 133.262 35.9164C133.79 36.5498 134.528 40.0332 132.313 46.6835C130.127 53.2449 123.874 56.6061 120.287 57.4505C116.806 58.0839 108.515 58.4006 103.198 54.6004C99.3143 51.8243 96.8117 48.4699 95.1622 44.9008M93.7355 40.9747C93.9361 41.8379 94.5902 43.6632 95.1622 44.9008M93.7355 40.9747L95.1622 44.9008M156.656 57.6692C153.048 57.6692 149.734 56.8297 146.714 55.1506C143.693 53.4715 141.26 51.1628 139.415 48.2244C137.653 45.202 136.772 41.8019 136.772 38.0239C136.772 34.162 137.653 30.8038 139.415 27.9494C141.26 25.011 143.693 22.7442 146.714 21.1491C149.734 19.47 153.048 18.6304 156.656 18.6304C160.347 18.6304 163.661 19.47 166.597 21.1491C169.618 22.7442 172.009 25.011 173.771 27.9494C175.533 30.8038 176.413 34.162 176.413 38.0239C176.413 41.8019 175.533 45.202 173.771 48.2244C172.009 51.1628 169.618 53.4715 166.597 55.1506C163.661 56.8297 160.347 57.6692 156.656 57.6692ZM156.656 47.4688C159.256 47.4688 161.354 46.5873 162.948 44.8242C164.626 42.9772 165.465 40.7104 165.465 38.0239C165.465 35.2534 164.626 33.0286 162.948 31.3495C161.354 29.6704 159.256 28.8309 156.656 28.8309C154.139 28.8309 151.999 29.6704 150.237 31.3495C148.559 33.0286 147.721 35.2534 147.721 38.0239C147.721 40.7104 148.559 42.9772 150.237 44.8242C151.999 46.5873 154.139 47.4688 156.656 47.4688ZM192.916 57.6692C187.211 57.6692 182.513 56.4939 178.822 54.1431C178.067 53.6394 177.521 53.0517 177.186 52.3801C176.85 51.6245 176.682 50.9109 176.682 50.2393C176.682 48.812 177.144 47.5108 178.067 46.3354C179.073 45.16 180.29 44.5723 181.716 44.5723C182.387 44.5723 183.058 44.7403 183.73 45.0761C185.24 45.7477 186.96 46.3354 188.889 46.8391C190.819 47.2589 192.581 47.4688 194.175 47.4688C197.279 47.4688 198.831 46.7552 198.831 45.3279C198.831 44.4884 198.454 43.7748 197.699 43.1871C196.943 42.5155 195.182 42.0537 192.413 41.8019C191.322 41.7179 189.896 41.55 188.134 41.2981C186.456 41.0463 184.778 40.5845 183.1 39.9129C181.422 39.1573 179.996 38.0659 178.822 36.6387C177.731 35.2114 177.186 33.2805 177.186 30.8458C177.186 27.0679 178.612 24.0875 181.464 21.9047C184.317 19.7218 188.134 18.6304 192.916 18.6304C195.685 18.6304 198.286 18.9243 200.719 19.512C203.236 20.0996 205.123 20.9812 206.382 22.1565C207.556 23.2479 208.144 24.5072 208.144 25.9345C208.144 27.1938 207.682 28.3272 206.759 29.3346C205.837 30.3421 204.662 30.8458 203.236 30.8458C202.481 30.8458 201.768 30.6779 201.096 30.3421C200.09 29.6704 198.789 29.1667 197.195 28.8309C195.685 28.4951 194.133 28.3272 192.539 28.3272C189.351 28.3272 187.757 28.9988 187.757 30.3421C187.757 30.9298 188.05 31.4755 188.638 31.9792C189.309 32.399 190.777 32.7768 193.042 33.1126C194.468 33.2805 196.104 33.5323 197.95 33.8682C199.796 34.12 201.558 34.6237 203.236 35.3793C204.998 36.051 206.466 37.1844 207.64 38.7795C208.815 40.3746 209.402 42.5574 209.402 45.3279C209.402 49.1059 207.892 52.1282 204.872 54.395C201.851 56.5778 197.866 57.6692 192.916 57.6692ZM208.358 23.6677C208.358 21.9886 208.946 20.7293 210.12 19.8897C211.295 19.0502 212.637 18.6304 214.147 18.6304C215.322 18.6304 216.329 18.9662 217.168 19.6379C218.091 20.2256 218.72 21.0651 219.055 22.1565L226.858 41.1722C227.277 42.2636 227.865 42.8093 228.62 42.8093C229.375 42.8093 229.92 42.2636 230.256 41.1722L237.051 22.1565C237.471 20.9812 238.142 20.0996 239.065 19.512C240.072 18.9243 241.12 18.6304 242.211 18.6304C243.637 18.6304 244.938 19.0922 246.112 20.0157C247.371 20.9392 248 22.1565 248 23.6677C248 24.5072 247.832 25.3048 247.497 26.0604L227.865 71.3958C227.277 72.6551 226.522 73.5366 225.599 74.0403C224.76 74.628 223.879 74.9219 222.957 74.9219C221.446 74.9219 220.062 74.3762 218.804 73.2848C217.629 72.2773 217.042 71.06 217.042 69.6327C217.042 68.8772 217.21 68.2055 217.545 67.6178L224.341 55.5284C222.915 55.1086 221.782 54.0592 220.943 52.3801L208.736 25.9345C208.484 25.1789 208.358 24.4233 208.358 23.6677ZM45.0462 53.0098C43.4521 54.2691 41.0191 55.3605 37.7471 56.284C34.4751 57.2075 31.287 57.6692 28.1828 57.6692C22.9811 57.6692 18.3248 56.5359 14.2139 54.2691C10.1029 51.9184 6.87283 48.6861 4.5237 44.5723C2.17457 40.4586 1 35.7991 1 30.5939C1 25.1369 2.13262 20.4355 4.39785 16.4896C6.74698 12.5437 9.97703 9.52137 14.088 7.42251C18.199 5.2397 22.9811 4.14829 28.4345 4.14829C30.6997 4.14829 32.965 4.35818 35.2302 4.77795C37.5793 5.19772 39.7187 5.86936 41.6483 6.79286C42.6551 7.29658 43.3682 7.96822 43.7877 8.80776C44.2911 9.56335 44.5428 10.4029 44.5428 11.3264C44.5428 12.6697 44.0394 13.929 43.0327 15.1043C42.1098 16.1958 40.8513 16.7415 39.2573 16.7415C38.5861 16.7415 37.873 16.6155 37.1179 16.3637C35.6077 15.776 33.9717 15.3142 32.2099 14.9784C30.448 14.5586 28.8959 14.3488 27.5536 14.3488C23.1909 14.3488 19.5414 15.818 16.6049 18.7564C13.7524 21.6948 12.3262 25.6406 12.3262 30.5939C12.3262 35.8831 13.7944 40.0388 16.7308 43.0612C19.7511 46.0835 23.6104 47.5947 28.3086 47.5947C30.2383 47.5947 32.2938 47.2589 34.4751 46.5873C36.6564 45.9156 38.4183 45.0761 39.7607 44.0686C40.6835 43.4809 41.6903 43.1871 42.781 43.1871C44.2072 43.1871 45.3398 43.6908 46.1788 44.6983C47.1017 45.6218 47.5631 46.7971 47.5631 48.2244C47.5631 50.0714 46.7241 51.6665 45.0462 53.0098ZM56.587 57.6692C54.993 57.6692 53.6506 57.2075 52.5599 56.284C51.4693 55.3605 50.9239 54.1851 50.9239 52.7579V5.91133C50.9239 4.56806 51.4273 3.43468 52.4341 2.51118C53.5248 1.50373 54.9091 1 56.587 1C58.1811 1 59.4815 1.50373 60.4883 2.51118C61.495 3.43468 61.9984 4.61004 61.9984 6.03727V22.7862C63.0891 21.5269 64.5573 20.5194 66.403 19.7638C68.2488 19.0082 70.2204 18.6304 72.3178 18.6304C77.0161 18.6304 80.7915 20.0157 83.644 22.7862C86.5804 25.5567 88.0486 29.9643 88.0486 36.009V53.0098C88.0486 54.353 87.5033 55.4864 86.4126 56.4099C85.4058 57.2495 84.1054 57.6692 82.5114 57.6692C80.9173 57.6692 79.5749 57.2075 78.4843 56.284C77.4775 55.3605 76.9741 54.1851 76.9741 52.7579V37.3942C76.9741 34.2879 76.261 32.0631 74.8347 30.7199C73.4924 29.3766 71.8144 28.705 69.8009 28.705C67.7034 28.705 65.9835 29.4186 64.6412 30.8458C63.2988 32.1891 62.4179 33.7003 61.9984 35.3793V52.632C61.9984 54.0592 61.4531 55.2765 60.3624 56.284C59.3556 57.2075 58.0972 57.6692 56.587 57.6692Z" stroke="url(#paint6_linear_809_1834)" stroke-width="0.263406" stroke-linecap="round" stroke-linejoin="round"/> </svg>
App crash after successfully changed wallpaper
hi i'm a beginner in flutter, here i'm trying to make a wallpaper application. my application can run and change the wallpaper, my problem is why does my application crash after success? _saving() async { await _askPermissions(); var response = await Dio().get( widget.imgData, options: Options(responseType: ResponseType.bytes), ); final result = await ImageGallerySaver.saveImage( Uint8List.fromList(response.data), name: 'images'); print(result['filePath']); var path = await FlutterAbsolutePath.getAbsolutePath(result['filePath']); print(path); String out; try { out = await WallpaperManager.setWallpaperFromFile( path, WallpaperManager.HOME_SCREEN); } on PlatformException { out = 'Failed to get wallpaper.'; } } i am getting this log D/EGL_emulation(26450): app_time_stats: avg=1550.15ms min=19.34ms max=12037.74ms count=8 I/System.out(26450): ImageGallerySaverPlugin 80 I/flutter (26450): content://media/external/images/media/90 I/flutter (26450): /data/user/0/realfz.flutter.xeed.xeed/cache/IMG_1645634589898.png E/FA (26450): Missing google_app_id. Firebase Analytics disabled. D/EGL_emulation(26450): eglCreateContext: 0x7d36c51db690: maj 2 min 0 rcv 2 D/EGL_emulation(26450): eglCreateContext: 0x7d36c51de750: maj 2 min 0 rcv 2 D/HostConnection(26450): createUnique: call D/HostConnection(26450): HostConnection::get() New Host Connection established 0x7d36c51df950, tid 27786 D/HostConnection(26450): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/EGL_emulation(26450): eglMakeCurrent: 0x7d36c51de750: ver 2 0 (tinfo 0x7d38ea0a7200) (first time) I/Choreographer(26450): Skipped 49 frames! The application may be doing too much work on its main thread. D/HostConnection(26450): createUnique: call D/HostConnection(26450): HostConnection::get() New Host Connection established 0x7d36c51e36d0, tid 27785 D/HostConnection(26450): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/EGL_emulation(26450): eglMakeCurrent: 0x7d36c51db690: ver 2 0 (tinfo 0x7d38ea0a7100) (first time) D/EGL_emulation(26450): eglCreateContext: 0x7d36c51e30d0: maj 2 min 0 rcv 2 I/Choreographer(26450): Skipped 109 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer(26450): Davey! duration=2649ms; Flags=1, FrameTimelineVsyncId=113284, IntendedVsync=47817620015088, Vsync=47818436681722, InputEventId=0, HandleInputStart=47818446770100, AnimationStart=47818446842400, PerformTraversalsStart=47818446945100, DrawStart=47820247194700, FrameDeadline=47817636681754, FrameInterval=47818446237700, FrameStartTime=16666666, SyncQueued=47820248422100, SyncStart=47820248873100, IssueDrawCommandsStart=47820249153600, SwapBuffers=47820251098700, FrameCompleted=47820270211800, DequeueBufferDuration=10092300, QueueBufferDuration=2055700, GpuCompleted=47820259923000, SwapBuffersCompleted=47820270211800, DisplayPresentTime=8589934592, sorry
Background mode is not working in ionic 5
Uncaught TypeError: Object(...) is not a function at index.js:249 at Module../node_modules/#ionic-native/background-mode/index.js (index.js:405) at __webpack_require__ (bootstrap:84) at Module../src/app/app.component.ts (main.js:865) at __webpack_require__ (bootstrap:84) at Module../src/app/app.module.ts (app.component.ts:30) at __webpack_require__ (bootstrap:84) at Module../src/main.ts (environment.ts:19) at __webpack_require__ (bootstrap:84) at Object.0 (main.ts:13) in package.json "#angular/core": "^8.2.14", "#angular/forms": "^8.2.14", "#angular/http": "^7.2.16", "#angular/material": "^8.2.3", "#angular/platform-browser": "^8.2.14", "#angular/platform-browser-dynamic": "^8.2.14", "#angular/pwa": "^0.803.23", "#angular/router": "^8.2.14", "#angular/service-worker": "^8.2.14", "#capacitor/android": "^1.5.1", "#capacitor/core": "1.5.1", "#ionic-native/background-mode": "^4.19.0", "#ionic-native/camera": "^5.24.0", "#ionic-native/clipboard": "^5.28.0", "#ionic-native/core": "5.0.0-beta.15", "#ionic-native/deeplinks": "^5.28.0", "#ionic-native/file": "^5.22.0-beta-1", "#ionic-native/file-path": "^5.22.0-beta-1", "#ionic-native/file-transfer": "^5.26.0",
Check your project type in ionic.config.json file. If the type is "ionic-angular", then install 4.x.x version. npm i -s #ionic-native/background-mode#4.20.0 If the type is "angular", then install 5.x.x-beta version npm i -s #ionic-native/background-mode#5.0.0-beta.24 Credit goes to - Diego Desenvolvedor for this link here
Try this: ionic cordova plugin add cordova-plugin-background-mode npm install #ionic-native/background-mode Documentation
Sorting a matrix with symbolic variables in matlab
How can i sort or arrange this matrix ? The 10th row is showing up now in the very start while it should follow the sequence and comes at 10th place. Few other elements are also misplaced in the middle. All the variables are symbolic in this case. Thank you. [ P10_1, P10_10, P10_2, P10_3, P10_4, P10_5, P10_6, P10_7, P10_8, P10_9, P1_1, P1_10, P1_2, P1_3, P1_4, P1_5, P1_6, P1_7, P1_8, P1_9, P2_1, P2_10, P2_2, P2_3, P2_4, P2_5, P2_6, P2_7, P2_8, P2_9, P3_1, P3_10, P3_2, P3_3, P3_4, P3_5, P3_6, P3_7, P3_8, P3_9, P4_1, P4_10, P4_2, P4_3, P4_4, P4_5, P4_6, P4_7, P4_8, P4_9, P5_1, P5_10, P5_2, P5_3, P5_4, P5_5, P5_6, P5_7, P5_8, P5_9, P6_1, P6_10, P6_2, P6_3, P6_4, P6_5, P6_6, P6_7, P6_8, P6_9, P7_1, P7_10, P7_2, P7_3, P7_4, P7_5, P7_6, P7_7, P7_8, P7_9, P8_1, P8_10, P8_2, P8_3, P8_4, P8_5, P8_6, P8_7, P8_8, P8_9, P9_1, P9_10, P9_2, P9_3, P9_4, P9_5, P9_6, P9_7, P9_8, P9_9] The sort function return this.The 10th row should come in the end but it is appearing in the start. [ P10_1, P10_2, P10_3, P10_4, P10_5, P10_6, P10_7, P10_8, P10_9, P10_10, P1_1, P1_2, P1_3, P1_4, P1_5, P1_6, P1_7, P1_8, P1_9, P2_1, P2_2, P2_3, P2_4, P2_5, P2_6, P2_7, P2_8, P2_9, P3_1, P3_2, P3_3, P3_4, P3_5, P3_6, P3_7, P3_8, P3_9, P4_1, P4_2, P4_3, P4_4, P4_5, P4_6, P4_7, P4_8, P4_9, P5_1, P5_2, P5_3, P5_4, P5_5, P5_6, P5_7, P5_8, P5_9, P6_1, P6_2, P6_3, P6_4, P6_5, P6_6, P6_7, P6_8, P6_9, P7_1, P7_2, P7_3, P7_4, P7_5, P7_6, P7_7, P7_8, P7_9, P8_1, P8_2, P8_3, P8_4, P8_5, P8_6, P8_7, P8_8, P8_9, P9_1, P9_2, P9_3, P9_4, P9_5, P9_6, P9_7, P9_8, P9_9, P1_10, P2_10, P3_10, P4_10, P5_10, P6_10, P7_10, P8_10, P9_10]
horchler suggested in the comments to create proper variable names to make lexicographic sorting using sort work properly. I think this is a very good idea, but unfortunately the format string he suggests does not work. It always pads a zero, ending up with this: >> P1 = sym('P0%d_0%d',10) P = [ P01_01, P01_02, P01_03, P01_04, P01_05, P01_06, P01_07, P01_08, P01_09, P01_010] [ P02_01, P02_02, P02_03, P02_04, P02_05, P02_06, P02_07, P02_08, P02_09, P02_010] [ P03_01, P03_02, P03_03, P03_04, P03_05, P03_06, P03_07, P03_08, P03_09, P03_010] [ P04_01, P04_02, P04_03, P04_04, P04_05, P04_06, P04_07, P04_08, P04_09, P04_010] [ P05_01, P05_02, P05_03, P05_04, P05_05, P05_06, P05_07, P05_08, P05_09, P05_010] [ P06_01, P06_02, P06_03, P06_04, P06_05, P06_06, P06_07, P06_08, P06_09, P06_010] [ P07_01, P07_02, P07_03, P07_04, P07_05, P07_06, P07_07, P07_08, P07_09, P07_010] [ P08_01, P08_02, P08_03, P08_04, P08_05, P08_06, P08_07, P08_08, P08_09, P08_010] [ P09_01, P09_02, P09_03, P09_04, P09_05, P09_06, P09_07, P09_08, P09_09, P09_010] [ P010_01, P010_02, P010_03, P010_04, P010_05, P010_06, P010_07, P010_08, P010_09, P010_010] I tried to fix the format string but failed. MATLAB refuses to accept the format string which would be needed: >> P1 = sym('P%.2d_%.2d',10) Error using sym>createCharMatrix (line 2172) Symbolic matrix base name must be a simple variable name. Error in sym>convertCharWithOption (line 2138) s = createCharMatrix(x,a); Error in sym>tomupad (line 1871) S = convertCharWithOption(x,a); Error in sym (line 109) S.s = tomupad(x,a); So I wrote my own function to fix this: function [ s ] = symMatrix( A,set ) %preallocate an empty matrix to fill it in the loop s=sym(zeros(set)); %just some math t get the required amount of digits. digits=ceil(log10(max(set)+1)); %generate format string with required digits. Check documentation of sprintf for details format=['%s%.',num2str(digits),'d_%.',num2str(digits),'d']; %finally go through the matrix... for r=1:set(1) for c=1:set(2) %...get the right name for each variable .... sprintf(format,A,r,c); %...and create a variable with that name. s(r,c)=sym(n); end end end Which produces this result: >> P2=symMatrix('P',[11,11]) P2 = [ P01_01, P01_02, P01_03, P01_04, P01_05, P01_06, P01_07, P01_08, P01_09, P01_10, P01_11] [ P02_01, P02_02, P02_03, P02_04, P02_05, P02_06, P02_07, P02_08, P02_09, P02_10, P02_11] [ P03_01, P03_02, P03_03, P03_04, P03_05, P03_06, P03_07, P03_08, P03_09, P03_10, P03_11] [ P04_01, P04_02, P04_03, P04_04, P04_05, P04_06, P04_07, P04_08, P04_09, P04_10, P04_11] [ P05_01, P05_02, P05_03, P05_04, P05_05, P05_06, P05_07, P05_08, P05_09, P05_10, P05_11] [ P06_01, P06_02, P06_03, P06_04, P06_05, P06_06, P06_07, P06_08, P06_09, P06_10, P06_11] [ P07_01, P07_02, P07_03, P07_04, P07_05, P07_06, P07_07, P07_08, P07_09, P07_10, P07_11] [ P08_01, P08_02, P08_03, P08_04, P08_05, P08_06, P08_07, P08_08, P08_09, P08_10, P08_11] [ P09_01, P09_02, P09_03, P09_04, P09_05, P09_06, P09_07, P09_08, P09_09, P09_10, P09_11] [ P10_01, P10_02, P10_03, P10_04, P10_05, P10_06, P10_07, P10_08, P10_09, P10_10, P10_11] [ P11_01, P11_02, P11_03, P11_04, P11_05, P11_06, P11_07, P11_08, P11_09, P11_10, P11_11] Finally compare the sorting of all three possibilities: >> P3=sym('P',[11,11]) P3 = [ P1_1, P1_2, P1_3, P1_4, P1_5, P1_6, P1_7, P1_8, P1_9, P1_10, P1_11] [ P2_1, P2_2, P2_3, P2_4, P2_5, P2_6, P2_7, P2_8, P2_9, P2_10, P2_11] [ P3_1, P3_2, P3_3, P3_4, P3_5, P3_6, P3_7, P3_8, P3_9, P3_10, P3_11] [ P4_1, P4_2, P4_3, P4_4, P4_5, P4_6, P4_7, P4_8, P4_9, P4_10, P4_11] [ P5_1, P5_2, P5_3, P5_4, P5_5, P5_6, P5_7, P5_8, P5_9, P5_10, P5_11] [ P6_1, P6_2, P6_3, P6_4, P6_5, P6_6, P6_7, P6_8, P6_9, P6_10, P6_11] [ P7_1, P7_2, P7_3, P7_4, P7_5, P7_6, P7_7, P7_8, P7_9, P7_10, P7_11] [ P8_1, P8_2, P8_3, P8_4, P8_5, P8_6, P8_7, P8_8, P8_9, P8_10, P8_11] [ P9_1, P9_2, P9_3, P9_4, P9_5, P9_6, P9_7, P9_8, P9_9, P9_10, P9_11] [ P10_1, P10_2, P10_3, P10_4, P10_5, P10_6, P10_7, P10_8, P10_9, P10_10, P10_11] [ P11_1, P11_2, P11_3, P11_4, P11_5, P11_6, P11_7, P11_8, P11_9, P11_10, P11_11] >> sort(P1(:)).' %P1 = sym('P0%d_0%d',10) ans = [ P01_01, P01_02, P01_03, P01_04, P01_05, P01_06, P01_07, P01_08, P01_09, P02_01, P02_02, P02_03, P02_04, P02_05, P02_06, P02_07, P02_08, P02_09, P03_01, P03_02, P03_03, P03_04, P03_05, P03_06, P03_07, P03_08, P03_09, P04_01, P04_02, P04_03, P04_04, P04_05, P04_06, P04_07, P04_08, P04_09, P05_01, P05_02, P05_03, P05_04, P05_05, P05_06, P05_07, P05_08, P05_09, P06_01, P06_02, P06_03, P06_04, P06_05, P06_06, P06_07, P06_08, P06_09, P07_01, P07_02, P07_03, P07_04, P07_05, P07_06, P07_07, P07_08, P07_09, P08_01, P08_02, P08_03, P08_04, P08_05, P08_06, P08_07, P08_08, P08_09, P09_01, P09_02, P09_03, P09_04, P09_05, P09_06, P09_07, P09_08, P09_09, P010_01, P010_02, P010_03, P010_04, P010_05, P010_06, P010_07, P010_08, P010_09, P01_010, P02_010, P03_010, P04_010, P05_010, P06_010, P07_010, P08_010, P09_010, P010_010] >> sort(P2(:)).' %P2=symMatrix('P',[11,11]) ans = [ P01_01, P01_02, P01_03, P01_04, P01_05, P01_06, P01_07, P01_08, P01_09, P01_10, P01_11, P02_01, P02_02, P02_03, P02_04, P02_05, P02_06, P02_07, P02_08, P02_09, P02_10, P02_11, P03_01, P03_02, P03_03, P03_04, P03_05, P03_06, P03_07, P03_08, P03_09, P03_10, P03_11, P04_01, P04_02, P04_03, P04_04, P04_05, P04_06, P04_07, P04_08, P04_09, P04_10, P04_11, P05_01, P05_02, P05_03, P05_04, P05_05, P05_06, P05_07, P05_08, P05_09, P05_10, P05_11, P06_01, P06_02, P06_03, P06_04, P06_05, P06_06, P06_07, P06_08, P06_09, P06_10, P06_11, P07_01, P07_02, P07_03, P07_04, P07_05, P07_06, P07_07, P07_08, P07_09, P07_10, P07_11, P08_01, P08_02, P08_03, P08_04, P08_05, P08_06, P08_07, P08_08, P08_09, P08_10, P08_11, P09_01, P09_02, P09_03, P09_04, P09_05, P09_06, P09_07, P09_08, P09_09, P09_10, P09_11, P10_01, P10_02, P10_03, P10_04, P10_05, P10_06, P10_07, P10_08, P10_09, P10_10, P10_11, P11_01, P11_02, P11_03, P11_04, P11_05, P11_06, P11_07, P11_08, P11_09, P11_10, P11_11] >> sort(P3(:)).' %P3 = sym('P',10) ans = [ P10_1, P10_2, P10_3, P10_4, P10_5, P10_6, P10_7, P10_8, P10_9, P11_1, P11_2, P11_3, P11_4, P11_5, P11_6, P11_7, P11_8, P11_9, P10_10, P10_11, P11_10, P11_11, P1_1, P1_2, P1_3, P1_4, P1_5, P1_6, P1_7, P1_8, P1_9, P2_1, P2_2, P2_3, P2_4, P2_5, P2_6, P2_7, P2_8, P2_9, P3_1, P3_2, P3_3, P3_4, P3_5, P3_6, P3_7, P3_8, P3_9, P4_1, P4_2, P4_3, P4_4, P4_5, P4_6, P4_7, P4_8, P4_9, P5_1, P5_2, P5_3, P5_4, P5_5, P5_6, P5_7, P5_8, P5_9, P6_1, P6_2, P6_3, P6_4, P6_5, P6_6, P6_7, P6_8, P6_9, P7_1, P7_2, P7_3, P7_4, P7_5, P7_6, P7_7, P7_8, P7_9, P8_1, P8_2, P8_3, P8_4, P8_5, P8_6, P8_7, P8_8, P8_9, P9_1, P9_2, P9_3, P9_4, P9_5, P9_6, P9_7, P9_8, P9_9, P1_10, P1_11, P2_10, P2_11, P3_10, P3_11, P4_10, P4_11, P5_10, P5_11, P6_10, P6_11, P7_10, P7_11, P8_10, P8_11, P9_10, P9_11]
I don't know what you mean with "symbolic"? When it's a string, simple parse them as numbers (remove 'P' and replace the underscore '_' with a dot '.'). Finally sort while saving the indices. this = '[ P10_1, P10_10, P10_2, P10_3, P10_4, P10_5, P10_6, P10_7, P10_8, P10_9, P1_1, P1_10, P1_2, P1_3, P1_4, P1_5, P1_6, P1_7, P1_8, P1_9, P2_1, P2_10, P2_2, P2_3, P2_4, P2_5, P2_6, P2_7, P2_8, P2_9, P3_1, P3_10, P3_2, P3_3, P3_4, P3_5, P3_6, P3_7, P3_8, P3_9, P4_1, P4_10, P4_2, P4_3, P4_4, P4_5, P4_6, P4_7, P4_8, P4_9, P5_1, P5_10, P5_2, P5_3, P5_4, P5_5, P5_6, P5_7, P5_8, P5_9, P6_1, P6_10, P6_2, P6_3, P6_4, P6_5, P6_6, P6_7, P6_8, P6_9, P7_1, P7_10, P7_2, P7_3, P7_4, P7_5, P7_6, P7_7, P7_8, P7_9, P8_1, P8_10, P8_2, P8_3, P8_4, P8_5, P8_6, P8_7, P8_8, P8_9, P9_1, P9_10, P9_2, P9_3, P9_4, P9_5, P9_6, P9_7, P9_8, P9_9]'; % this is the ugly part :) original = regexp([regexprep(this, {'\[','\]'}, {'',''}) ','], '(.*?),', 'tokens'); m = eval(regexprep(this, {'_', 'P'},{'.',''})); [s, idx] = sort(m); original(idx) As you see, this just works partly, because "symbolic" P10_1 < P10_10, but on numeric level, they're equal. So you just need to figure out to handle it, e.g. ensure you always have two decimal places and complete a leading zero if not. If it's not a string, ignore this :)