- Add
orbeon.warandorbeon-embedding.war. - Run
docker compose up.
The embedding demo JSP reads:
| curl \ | |
| -X POST \ | |
| -H "Content-Type: application/xml" \ | |
| -d '<?xml version="1.0" encoding="UTF-8"?> | |
| <search> | |
| <query path="details/title" summary-field="true"/> | |
| <query path="details/author" summary-field="true"/> | |
| </search>' \ | |
| 'http://localhost:8080/orbeon/fr/service/persistence/search/orbeon/bookshelf' |
| # Based on https://tedspence.com/a-sql-server-docker-container-with-full-text-search-a1b7c5fc308c | |
| FROM mcr.microsoft.com/mssql/server:2022-latest | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -yq gnupg gnupg2 gnupg1 curl apt-transport-https && \ | |
| curl https://packages.microsoft.com/keys/microsoft.asc -o /var/opt/mssql/ms-key.cer && \ | |
| apt-key add /var/opt/mssql/ms-key.cer && \ | |
| curl https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list -o /etc/apt/sources.list.d/mssql-server-2022.list && \ | |
| apt-get update && \ |
| from mitmproxy import http | |
| class AddHeader: | |
| def __init__(self): | |
| self.counter = 0 | |
| def request(self, flow: http.HTTPFlow) -> None: | |
| self.counter += 1 | |
| flow.request.headers["My-Counter"] = str(self.counter) |
| <xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:ev="http://www.w3.org/2001/xml-events" | |
| xmlns:xi="http://www.w3.org/2001/XInclude" | |
| xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
| xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
| xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
| xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
| xmlns:math="http://www.w3.org/2005/xpath-functions/math" |
| (function() { | |
| const originalFetch = window.fetch; | |
| window.fetch = function(...args) { | |
| debugger; | |
| return originalFetch.apply(this, args); | |
| }; | |
| })(); |
| WITH RECURSIVE random_chars AS ( | |
| SELECT | |
| 1 AS id, | |
| 1 AS group_id, | |
| substr( | |
| 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', | |
| floor(random() * 62)::int + 1, | |
| 1 | |
| ) AS char |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Login Page</title> | |
| </head> | |
| <body> | |
| <form action="/orbeon/j_security_check" method="post"> | |
| <label for="username">Username:</label> | |
| <input type="text" name="j_username"> |
| <xh:html xmlns:sql="http://orbeon.org/oxf/xml/sql" | |
| xmlns:fr="http://orbeon.org/oxf/xml/form-runner" | |
| xmlns:ev="http://www.w3.org/2001/xml-events" | |
| xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
| xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:xh="http://www.w3.org/1999/xhtml" | |
| xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
| xmlns:math="http://www.w3.org/2005/xpath-functions/math" | |
| xmlns:exf="http://www.exforms.org/exf/1-0" |
| <xh:html xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:ev="http://www.w3.org/2001/xml-events" | |
| xmlns:xi="http://www.w3.org/2001/XInclude" | |
| xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" | |
| xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
| xmlns:map="http://www.w3.org/2005/xpath-functions/map" | |
| xmlns:array="http://www.w3.org/2005/xpath-functions/array" | |
| xmlns:exf="http://www.exforms.org/exf/1-0" |