google-nomulus/javatests/google/registry/util
guyben 6987d4e55c Add newline after closing boundary in multipart upload of LORDN
According to RFC 2046, the body of the multipart contains:

multipart-body := [preamble CRLF]
                  dash-boundary transport-padding CRLF
                  body-part *encapsulation
                  close-delimiter transport-padding
                  [CRLF epilogue]

The preemble and epilogue are optional, and ignored. However, it's not 100%
explicit whether the CRLFs after the preamble and before the epilogue are
required. The one after the preemble is often not given if there's no preemble,
so it's conceivable that you don't *have* to give the CRLF before the epilogue
if there's no epilogue (it's also enclosed in the [], making it part of the
"optional")

However, it seems that when the TMDB "migrated to the cloud" (as they
describe it) on Aug. 13 2018, they started requiring that CRLF.

TESTED=connected to a TMDB-whitelisted server, used CURL to manually create the
message as we currently send it (without the final CRLF) with junk data and got
the error from the bug. Then sent the exact same message with the additional
CRLF, and got a different error that directly relates to the content of the
junk data.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=212637246
2018-09-14 11:49:12 -04:00
..
AppEngineServiceUtilsImplTest.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
BUILD Clean up internal imports in BUILD files 2018-07-14 01:37:03 -04:00
CidrAddressBlockTest.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
CollectionUtilsTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ComparingInvocationHandlerTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
ConcurrentTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DateTimeUtilsTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
DiffUtilsTest.java Remove unnecessary explicit generic type declarations 2017-11-07 17:11:29 -05:00
DomainNameUtilsTest.java Add sharded DNS publishing capability 2018-03-06 19:14:26 -05:00
HexDumperTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
PosixTarHeaderSystemTest.java Remove implicit uses of platform default charset 2017-11-07 16:59:51 -05:00
PosixTarHeaderTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RequestStatusCheckerImplTest.java Migrate to Flogger (yellow) 2018-05-30 12:18:54 -04:00
RetrierTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
SerializeUtilsTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
SqlTemplateTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
TaskQueueUtilsTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
TeeOutputStreamTest.java Automated g4 rollback of changelist 199643208. 2018-06-18 18:12:18 -04:00
TypeUtilsTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
UrlFetchUtilsTest.java Add newline after closing boundary in multipart upload of LORDN 2018-09-14 11:49:12 -04:00