We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The URL used to Add an owner do not include the FQN + port number but is suffixed with the REST endpoint only /owners/11
URL
Add
/owners/11
Example
http://petclinic.tap-install.95.217.159.244.nip.io:31080/owners/new Click on add button --> http://petclinic.tap-install.95.217.159.244.nip.io/owners/11
See: https://github.com/snowdrop/quarkus-tap-petclinic/blob/main/src/main/resources/templates/editOwner.html
<form class="form-horizontal" id="add-owner-form" method="post" action="{#if owner.id is null}/addOwner{#else}/editOwner?ownerId={owner.id}{/if}" enctype="multipart/form-data">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" type="image/x-icon" href="/resources/images/favicon.png"> <title>PetClinic :: a Spring Framework demonstration</title> <link rel="stylesheet" href="/resources/css/petclinic.css" /> </head> <body> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="/"><span></span></a> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar"> <span class="sr-only"> <os-p>Toggle navigation</os-p> </span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse" id="main-navbar"> <ul class="nav navbar-nav navbar-right"> <li> <a href="/" title="home page"> <span class="glyphicon glyphicon-home" aria-hidden="true"></span> <span>Home</span> </a> </li> <li class="active"> <a href="/owners/find" title="find owners"> <span class="glyphicon glyphicon-search" aria-hidden="true"></span> <span>Find owners</span> </a> </li> <li> <a href="/vets.html" title="veterinarians"> <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> <span>Veterinarians</span> </a> </li> <li> <a href="/oups" title="trigger a RuntimeException to see how it is handled"> <span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span> <span>Error</span> </a> </li> </ul> </div> </div> </nav> <div class="container-fluid"> <div class="container xd-container"> <h2>Owner</h2> <form class="form-horizontal" id="add-owner-form" method="post"> <div class="form-group has-feedback"> <div class="form-group"> <label class="col-sm-2 control-label">First Name</label> <div class="col-sm-10"> <div> <input class="form-control" type="text" id="firstName" name="firstName" value="Betty" /> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Last Name</label> <div class="col-sm-10"> <div> <input class="form-control" type="text" id="lastName" name="lastName" value="Davis" /> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Address</label> <div class="col-sm-10"> <div> <input class="form-control" type="text" id="address" name="address" value="638 Cardinal Ave." /> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">City</label> <div class="col-sm-10"> <div> <input class="form-control" type="text" id="city" name="city" value="Sun Prairie" /> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Telephone</label> <div class="col-sm-10"> <div> <input class="form-control" type="text" id="telephone" name="telephone" value="6085551749" /> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button class="btn btn-default" type="submit">Update Owner</button> </div> </div> </form> <br /> <br /> <div class="container"> <div class="row"> <div class="col-12 text-center"> <img src="/resources/images/spring-pivotal-logo.png" alt="Sponsored by Pivotal" /></div> </div> </div> </div> </div> <script src="/webjars/jquery/2.2.4/jquery.min.js"></script> <script src="/webjars/jquery-ui/1.11.4/jquery-ui.min.js"></script> <script src="/webjars/bootstrap/3.3.6/js/bootstrap.min.js"></script> </body> </html>
See hereafter including the URL and showing the error
-->
The text was updated successfully, but these errors were encountered:
Add the missing / within the form action to fix the issue. #2
33853af
62cae9e
No branches or pull requests
Issue
The
URL
used toAdd
an owner do not include the FQN + port number but is suffixed with the REST endpoint only/owners/11
Example
code of the template
See: https://github.com/snowdrop/quarkus-tap-petclinic/blob/main/src/main/resources/templates/editOwner.html
HTML generated
Screenshots
See hereafter including the URL and showing the error
-->
The text was updated successfully, but these errors were encountered: