streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steveblackmon <>
Subject [GitHub] incubator-streams pull request: resolves STREAMS-239
Date Fri, 05 Dec 2014 23:26:02 GMT
Github user steveblackmon commented on a diff in the pull request:
    --- Diff: streams-contrib/streams-processor-urls/src/test/java/org/apache/streams/urls/
    @@ -39,12 +40,28 @@
         private static String activityString;
    +    public void testLinkUnwinderBadDomain() {
    +        LinkResolver resolver = new LinkResolver("http://nope@#$%");
    +        LinkDetails details = resolver.getLinkDetails();
    +        assertEquals("Should be 404", LinkDetails.LinkStatus.MALFORMED_URL, details.getLinkStatus());
    --- End diff --
    Well it's not really a server error, because the url isn't actionable, but I'm not sure
404 Not Found is not really appropriate either.
    Asking myself WWGD...
    I'll change this condition to return 400 - Bad Request.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message