Re: [Firebird-devel] Invalid SPB
Interesting: "An example buffer adheres to the following format: isc_spb_version isc_spb_current_version This will allow the addition of spb versions without the need to renumber or add additional flags for buffer versioning." :D -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
> > BTW, anybody remembers the reason why version 2 has two values - > > isc_spb_version, isc_spb_current_version - at the beginning? > > > > Sooner of all this should be asked in Borland / Inprise - that was so in > IB6.0. No obvious explanation but its the best you will get https://www.ibphoenix.com/resources/documents/search/doc_186 Regards Paul Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
On 7/20/21 5:17 PM, Jiří Činčura wrote: BTW, anybody remembers the reason why version 2 has two values - isc_spb_version, isc_spb_current_version - at the beginning? Sooner of all this should be asked in Borland / Inprise - that was so in IB6.0. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
BTW, anybody remembers the reason why version 2 has two values - isc_spb_version, isc_spb_current_version - at the beginning? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
> >> Aha! I suppose in version 2 I can't send data with 2-byte length, right? > > Aka, I need to jump to version 3 and use 4-byte length. > > > > Exactly. > V.3 for SPB is like v.2 for DPB. Thanks. Now I see the 2-byte length is only used for i.e. isc_info_svc_line. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
On 7/20/21 4:52 PM, Jiří Činčura wrote: Aha! I suppose in version 2 I can't send data with 2-byte length, right? Aka, I need to jump to version 3 and use 4-byte length. Exactly. V.3 for SPB is like v.2 for DPB. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
> Aha! I suppose in version 2 I can't send data with 2-byte length, right? Aka, I need to jump to version 3 and use 4-byte length. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
> Jiri, in order to use wide format you should use > isc_spb_version3 > not > isc_spb_version, isc_spb_current_version > in the beginning (as a tag) Aha! I suppose in version 2 I can't send data with 2-byte length, right? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Invalid SPB
On 7/20/21 4:29 PM, Jiří Činčura wrote: Looks OK to me, but obviously it is not. Both the isc_spb_auth_plugin_name and isc_spb_specific_auth_data should be wide (https://github.com/FirebirdSQL/firebird/blob/B3_0_Release/src/common/classes/ClumpletReader.cpp#L324), right? What am I missing? Jiri, in order to use wide format you should use isc_spb_version3 not isc_spb_version, isc_spb_current_version in the beginning (as a tag) Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
[Firebird-devel] Invalid SPB
Hi *, I'm missing something obvious, probably because I was looking at these bytes for too long. I constructed this SPB: 2, 2, 116, 3, 0, 0, 0, 83, 114, 112, 111, 0, 1, 0, 0, 68, 55, 57, 67, 56, 51, 52, 70, 66, 65, 49, 54, 67, 50, 54, 69, 50, 56, 53, 65, 67, 57, 69, 57, 50, 48, 57, 68, 65, 57, 68, 69, 55, 53, 57, 65, 51, 66, 57, 56, 55, 57, 48, 48, 70, 54, 54, 65, 57, 50, 69, 65, 54, 57, 70, 69, 55, 55, 68, 54, 54, 65, 55, 70, 52, 69, 51, 57, 49, 48, 48, 53, 69, 67, 67, 49, 69, 48, 54, 48, 65, 67, 48, 51, 49, 68, 48, 55, 57, 51, 48, 66, 48, 50, 69, 70, 48, 68, 67, 70, 48, 51, 70, 57, 52, 66, 57, 65, 65, 66, 66, 53, 53, 65, 49, 68, 54, 69, 54, 55, 69, 67, 70, 65, 53, 68, 51, 51, 55, 65, 70, 65, 65, 56, 51, 67, 54, 67, 48, 49, 53, 70, 55, 52, 57, 54, 49, 65, 70, 51, 67, 56, 66, 66, 67, 53, 53, 66, 57, 68, 51, 67, 54, 52, 70, 51, 66, 49, 69, 51, 52, 66, 65, 65, 51, 51, 55, 66, 67, 69, 66, 48, 65, 56, 55, 68, 54, 68, 50, 53, 53, 70, 68, 48, 69, 56, 48, 56, 57, 54, 50, 56, 54, 55, 68, 57, 54, 56, 55, 54, 54, 49, 67, 68, 57, 52, 66, 48, 57, 65, 56, 54, 53, 55, 69, 49, 51, 67, 51, 53, 53, 54, 68, 49, 51, 48, 65, 69, 52, 65, 70, 56, 50, 50, 49, 65, 49, 67, 56, 65, 51, 57, 57, 55, 51, 49 But I'm getting famous "Invalid clumplet buffer structure: buffer end before end of clumplet - clumplet too long". Trying to read this back manually: 2, 2 isc_spb_version, isc_spb_current_version 116, 3, 0, 0, 0, 83, 114, 112 isc_spb_auth_plugin_name, 3, "Srp" 111, 0, 1, 0, 0, 68, 55, 57, 67, 56, 51, 52, 70, 66, 65, 49, 54, 67, 50, 54, 69, 50, 56, 53, 65, 67, 57, 69, 57, 50, 48, 57, 68, 65, 57, 68, 69, 55, 53, 57, 65, 51, 66, 57, 56, 55, 57, 48, 48, 70, 54, 54, 65, 57, 50, 69, 65, 54, 57, 70, 69, 55, 55, 68, 54, 54, 65, 55, 70, 52, 69, 51, 57, 49, 48, 48, 53, 69, 67, 67, 49, 69, 48, 54, 48, 65, 67, 48, 51, 49, 68, 48, 55, 57, 51, 48, 66, 48, 50, 69, 70, 48, 68, 67, 70, 48, 51, 70, 57, 52, 66, 57, 65, 65, 66, 66, 53, 53, 65, 49, 68, 54, 69, 54, 55, 69, 67, 70, 65, 53, 68, 51, 51, 55, 65, 70, 65, 65, 56, 51, 67, 54, 67, 48, 49, 53, 70, 55, 52, 57, 54, 49, 65, 70, 51, 67, 56, 66, 66, 67, 53, 53, 66, 57, 68, 51, 67, 54, 52, 70, 51, 66, 49, 69, 51, 52, 66, 65, 65, 51, 51, 55, 66, 67, 69, 66, 48, 65, 56, 55, 68, 54, 68, 50, 53, 53, 70, 68, 48, 69, 56, 48, 56, 57, 54, 50, 56, 54, 55, 68, 57, 54, 56, 55, 54, 54, 49, 67, 68, 57, 52, 66, 48, 57, 65, 56, 54, 53, 55, 69, 49, 51, 67, 51, 53, 53, 54, 68, 49, 51, 48, 65, 69, 52, 65, 70, 56, 50, 50, 49, 65, 49, 67, 56, 65, 51, 57, 57, 55, 51, 49 isc_spb_specific_auth_data, 256, Looks OK to me, but obviously it is not. Both the isc_spb_auth_plugin_name and isc_spb_specific_auth_data should be wide (https://github.com/FirebirdSQL/firebird/blob/B3_0_Release/src/common/classes/ClumpletReader.cpp#L324), right? What am I missing? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel