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.

URI conflict validation is too constraining

See original GitHub issue

Minimised repro

namespace foo

service Foo {
  operations: [Hello1, Hello2]
}

structure Hello1Input {
  @httpLabel
  @required
  name: String,
}

@http(method: "GET", uri: "/hello")
@readonly
operation Hello2 {
}

@http(method: "GET", uri: "/{name}/greet")
operation Hello1 {
  input: Hello1Input,
}

Gives the following errors :

Screenshot 2021-12-27 at 12 06 39

Expected behaviour :

These two URI paths should not be presenting a conflict, as there is always a possibility to distinguish between one and the other without additional informations.

I believe the cause of the problem is this condition which rakes too widely.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mtdowlingcommented, Dec 29, 2021

Yes, it is too constraining in several ways. We have a few proposals to make URI conflict resolution more flexible. I’m hoping we can finish those up and publish an RFC soon.

2reactions
david-perezcommented, Jun 22, 2022

Is that RFC ready?

Read more comments on GitHub >

github_iconTop Results From Across the Web

URI Pattern Validation and Conflict Resolution design doc ...
Design proposal to change the way we validate URI patterns to allow conflicting ones ... URI conflict validation is too constraining #1029.
Read more >
RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
If data for a URI component would conflict with a reserved character's purpose as a delimiter, then the conflicting data must be percent-encoded...
Read more >
IETF RFC-2396 on URI Syntax
The structure of a registry-based naming authority is specific to the URI scheme, but constrained to the allowed characters for an authority component....
Read more >
Centralized exception handling and request validation in ASP ...
/// A URI reference that identifies the specific occurrence of the problem.It may or may not yield further information if dereferenced. /// </ ......
Read more >
HV000030: No validator could be found for constraint 'javax ...
I got a similiar error but ...Constraints.NotEmpty' validating type 'java.lang.Long'. It happened because I was using @NotEmpty in a ...
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