Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bspastoriza19-esi-solutions
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Breixo Senra Pastoriza
bspastoriza19-esi-solutions
Commits
f14438b1
You need to sign in or sign up before continuing.
Commit
f14438b1
authored
Oct 26, 2025
by
Breixo Senra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Versión final del proyecto ESI
parent
2ff87020
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
README-IMPORTANT.md
README-IMPORTANT.md
+41
-0
No files found.
README-IMPORTANT.md
0 → 100644
View file @
f14438b1
# Incidencia sobre acceso de usuarios OWNER a vacunas
Actualmente, los usuarios de tipo
`OWNER`
deberían poder acceder a las vacunas de una mascota que poseen mediante la siguiente URL:
```
[http://localhost:8080/xcs-sample/rest/api/owner/pet/{petIdentifierType}/{petIdentifierValue}/vaccination](http://localhost:8080/xcs-sample/rest/api/owner/pet/{petIdentifierType}/{petIdentifierValue}/vaccination)
```
He intentado permitir este acceso modificando el archivo
`web.xml`
en:
```
/rest/target/rest-0.0.1-SNAPSHOT/WEB-INF/web.xml
```
`
con el siguiente bloque:
```xml
<security-constraint>
<web-resource-collection>
<web-resource-name>admin</web-resource-name>
<url-pattern>/api/owner/*</url-pattern>
<http-method-omission>OPTIONS</http-method-omission>
</web-resource-collection>
<auth-constraint>
<role-name>ADMIN</role-name>
<role-name>OWNER</role-name> <!-- añadido -->
</auth-constraint>
</security-constraint>
````
No obstante, al ejecutar:
```
mvn clean install
```
el archivo `
web.xml
` se sobrescribe automáticamente, eliminando los cambios realizados. Esto impide que los usuarios de tipo `
OWNER
`
accedan a la funcionalidad mencionada.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment