google-nomulus/java/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
..
AppEngineServiceUtils.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
AppEngineServiceUtilsImpl.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
AppEngineTimeLimiter.java Fix mismatch in types of Predicates being used 2017-10-04 16:16:45 -04:00
BUILD Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
CapturingLogHandler.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CidrAddressBlock.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
Clock.java Make our Clock util Serializable 2018-06-27 15:28:52 -04:00
CollectionUtils.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
ComparingInvocationHandler.java Fix two warnings thrown by Eclipse 2017-04-26 10:36:51 -04:00
Concurrent.java Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
DatastoreServiceUtils.java Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
DateTimeUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DiffUtils.java Migrate Guava Predicates.notNull to Objects.nonNull 2017-12-27 11:19:53 -05:00
DomainNameUtils.java Enforce canonicalization of premium/reserved list labels 2018-04-23 14:53:10 -04:00
FixedClock.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
HexDumper.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Idn.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ImprovedInputStream.java Clean up Improved(Input|Output)Stream 2018-06-27 15:28:53 -04:00
ImprovedOutputStream.java Clean up Improved(Input|Output)Stream 2018-06-27 15:28:53 -04:00
ListNamingUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NetworkUtils.java Replace uses of X.to(Upper|Lower)Case() with Ascii.to(Upper|Lower)Case(X) 2018-04-23 15:02:31 -04:00
NonFinalForTesting.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PipelineUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
PosixTarHeader.java Move the RDE TAR file encoding to a dedicated file 2018-08-10 13:46:48 -04:00
PreconditionsUtils.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
PredicateUtils.java Replace com.google.common.base.Predicate with java.util.function.Predicate 2017-12-27 11:21:28 -05:00
RandomStringGenerator.java Create GenerateAllocationTokens nomulus tool command 2018-01-19 14:26:56 -05:00
RegistrarUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RequestStatusChecker.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
RequestStatusCheckerImpl.java Migrate to Flogger (yellow) 2018-05-30 12:18:54 -04:00
ResourceUtils.java Add golden files for request component routing maps 2017-06-05 18:17:09 -04:00
Retrier.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
SendEmailService.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
SerializeUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Sleeper.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
SqlTemplate.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
StringGenerator.java Delete all Limited Release Program (LRP) code 2018-08-20 14:28:16 -04:00
SystemClock.java Make our Clock util Serializable 2018-06-27 15:28:52 -04:00
SystemSleeper.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
TaskQueueUtils.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
TeeOutputStream.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
TypeUtils.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
UrlFetchException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UrlFetchUtils.java Add newline after closing boundary in multipart upload of LORDN 2018-09-14 11:49:12 -04:00
VoidCallable.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
X509Utils.java Update signed marks files and add an expiration test 2018-06-27 15:28:53 -04:00
XmlEnumUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
XmlToEnumMapper.java Remove unnecessary explicit generic type declarations 2017-11-07 17:11:29 -05:00