question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query string is duplicated in generated snippets

See original GitHub issue

After upgrading to 1.1.1.RELEASE query string is duplicated in generated snippets:

1.1.0.RELEASE exams?count=10&page=1

1.1.1.RELEASE exams?count=10&page=1?count=10&page=1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jkubrynskicommented, Jul 29, 2016

Thanks @wilkinsona !

I confirm - it works correctly now 😃

1reaction
3gcodescommented, Aug 1, 2016

For now, here’s URL:

URL = "/api/notifications";

And here’s the controller method:

@RequestMapping(method = RequestMethod.GET)
public ResponseEntity<Map<String, List>> fetch(HttpServletRequest request,
                                                   @RequestParam(value = "type", defaultValue = "E", required = false) String type) {
    String companyId = request.getHeader("X-Auth-Company");
    String authId = request.getHeader("X-Auth-User");
    List<Notification> notifications = notificationService.findAllByRecipient(companyId, authId, type);
    Map<String, List> result = new HashMap<>();
    result.put(Notification.class.getAnnotation(JsonPluralRoot.class).value(), notifications);
    return new ResponseEntity<>(result, HttpStatus.OK);
}

I’ll see if I can provide a basic example via an empty project soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate Request Parameters being recorded in the snippet
When it goes to generate the code the parameter is duplicated. Controller @RequestMapping("/bitbucket/project") public Project findProject(@ ...
Read more >
Google, duplicate content caused by URL parameters, and you
When user and/or tracking information is stored through URL parameters, duplicate content can arise because the same page is accessible through numerous ...
Read more >
Azure API Management transformation policies | Microsoft Learn
Reference for the transformation policies available for use in Azure API Management. Provides policy usage, settings, and examples.
Read more >
Duplicated Fields for Faster Querying - Marten DB
When you issue a Linq query using this duplicated property or field, ... "text")] public string Category; // Defining a duplicate column with...
Read more >
4. Write Code Once - Building Maintainable Software, Java ...
Write Code Once Number one in the stink parade is duplicated code. ... represents this account is retrieved, and a Transfer object is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found