Skip to content

Notifications: Get notification with valid id followed by a period plus one letter #47

@OvidioMiranda

Description

@OvidioMiranda

Description


You can get an existing notification with a valid ID followed by a point plus one letter in some cases.

Note: The cases tested were with all letters of the alphabet these are in which they return a response of 200 are with the following letters a, b, d, e, g, i, j, k, l, m, n, or q, r, u, v, w, x and y.

These are exceptions c, f, h, p, s, t and z
GET: http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.c
Returns the following response

{
    "timestamp": 1507679507207,
    "status": 406,
    "error": "Not Acceptable",
    "exception": "org.springframework.web.HttpMediaTypeNotAcceptableException",
    "message": "Not Acceptable",
    "path": "/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.c"
}

I also tried with words and for this case also returns the notification
GET: http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.FAIL

Environment


  • An Notifier Server installed with version 1.0
  • Operating System and version: Windows Server 2012 R2

Requirements


  • Rest Client: E.g. Postman.
  • Send a Notification and retrieve id of the notification: E.g. cf7399e4-411f-4df4-ba92-b53044d089c7

API

  • Method: GET
  • Endpoint: /api/notifications

Steps to Reproduce


  1. Open Postman.
  2. In Postman select 'GET' method for URL.
  3. In Postman Enter the endpoint to get a notification.
    E.g. http://128.0.0.1/api/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.a
  4. Click on Send button. Receive a response from json of the requested notification more status history.
  5. Verify that a status code 200 is returned

Actual Result


Receive the requested notification information.

Expected Result


You should return the following response.

{
    "timestamp": 1507680494967,
    "status": 406,
    "error": "Not Acceptable",
    "exception": "org.springframework.web.HttpMediaTypeNotAcceptableException",
    "message": "Not Acceptable",
    "path": "/notifications/cf7399e4-411f-4df4-ba92-b53044d089c7.a"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions