Repository navigation
invalid interpolation syntax in '2*%m^NJ6yn&sKPRTemkP' at position 2. Please try again. #67
Copy link
Copy link
Open
mapilio/mapilio-kit
#213Description
Short Information
- Used Toolkit version:
2.0.26 - Operating System:
Linux
Problem Definition Briefly (might be explained in steps)
- Specific password causes error in Mapilio authentication: 2*%m^NJ6yn&sKPRTemkP
- Of course, I have already changed my password to something else so that I could open this bug report.
- After changing my password, I was able to login successfully.
Expected Output
- Successful Mapilio authentication.
Actual Output
- error message: invalid interpolation syntax in '2*%m^NJ6yn&sKPRTemkP' at position 2. Please try again.
Extra information (can contain screen shots)
This is the complete response from mapilio-login:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<style>
* {
font-family: 'Montserrat', sans-serif;
}
</style>
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary mt-4 rounded-4">
<a class="navbar-brand mx-4" href="#">MapSyncer</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggleExternalContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 mx-4">
<li class="nav-item">
<a class="nav-link" href="/display-sequence">Display Sequence</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/details">Detailed</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/sequence-edit">Sequence Edit</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item mx-4">
<a class="nav-link" href="" onclick="logout(event)">Logout</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="text-center">Mapilio Account Login</h3>
</div>
<div class="card-body">
<form action="/mapilio-login" method="POST">
<div class="mb-3">
<label for="email" class="form-label">E-mail</label>
<input type="email" class="form-control" id="email" name="email" placeholder="E-mail" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
</div>
<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary">Login</button>
</div>
<div class="alert alert-danger alert-dismissible fade show mt-4" role="alert">
invalid interpolation syntax in '2*%m^NJ6yn&sKPRTemkP' at position 2. Please try again.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="/static/global.js"></script>
</body>
</html>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
yusufesatt commentedon Apr 25, 2024
Hello @Coehill,
We will resolve with the related problem as soon as possible.
Thank you for letting us know about the error.
Best Regards.
chrisdebian commentedon May 18, 2026
Hi,
This is a Python
configparserbehaviour — by default it treats%in values as interpolation syntax (e.g.%mis a variable reference), so a password like the one in your report triggers a parse error when the credentials file is read back.The fix is to use
RawConfigParser(which disables interpolation) when reading and writing the credentials file, or to percent-escape%characters to%%before writing. This is a v2.0.26 report — it would be worth checking whether it is still reproducible on the latest version.Thanks, Chris
chrisdebian commentedon May 18, 2026
Hi, the root cause is in mapilio-kit's — uses by default, which treats in passwords as variable syntax. A fix (passing ) has been submitted as mapilio/mapilio-kit#213. Thanks, Chris