Rename app id from occweb to extended_occweb, prep for App Store
Nextcloud's app id "occweb" is effectively unavailable for a new store listing: the original Adphi/occweb still owns that App Store slot (stale, v0.2.3), and el-choco/occweb_v2 has since published a same-lineage rewrite under its own id. Rather than fight over the "occweb" name, publish this fork under its own id, matching the <name> this app has always had: "Extended OCC Web". Renames every place the literal app id is used: info.xml <id> and the auto-generated navigation <route>, script()/style() registrations in templates/index.php, the TemplateResponse app name in OccController::index(), the /apps/... base URL in js/index.js, and the 'app' log context tag in DbController.php. The GitHub repo name and its <website>/<bugs>/<repository>/<screenshot> links are unaffected - those identify the repo, not the Nextcloud app. Docs (README, INSTALL-AIO.md, install.sh) updated to clone into and reference an "extended_occweb" directory, since Nextcloud requires the app folder name to match its id - a plain `git clone` of this repo no longer produces a correctly-named install directory on its own. Version bump to 0.4.0 given the scope (breaking change for anyone who already deployed under the old "occweb" id - requires disable+remove of the old app and a fresh enable under the new id, not an in-place upgrade).
This commit is contained in:
@@ -189,8 +189,8 @@ class DbController extends Controller
|
||||
// Audit: log the fact that execution was attempted BEFORE any checks,
|
||||
// so blocked/rejected queries are recorded in the log too, not just
|
||||
// the ones that succeeded.
|
||||
$this->logger->warning('[occweb] SQL submitted by {user}: {sql}', [
|
||||
'app' => 'occweb',
|
||||
$this->logger->warning('[extended_occweb] SQL submitted by {user}: {sql}', [
|
||||
'app' => 'extended_occweb',
|
||||
'user' => $user->getUID(),
|
||||
'sql' => $sql,
|
||||
]);
|
||||
@@ -207,8 +207,8 @@ class DbController extends Controller
|
||||
foreach ($queries as $query) {
|
||||
$forbidden = $this->findForbiddenConstruct($query);
|
||||
if ($forbidden !== null) {
|
||||
$this->logger->error('[occweb] Blocked forbidden construct ({construct}) from {user}: {sql}', [
|
||||
'app' => 'occweb',
|
||||
$this->logger->error('[extended_occweb] Blocked forbidden construct ({construct}) from {user}: {sql}', [
|
||||
'app' => 'extended_occweb',
|
||||
'construct' => $forbidden,
|
||||
'user' => $user->getUID(),
|
||||
'sql' => $sql,
|
||||
@@ -277,8 +277,8 @@ class DbController extends Controller
|
||||
$this->db->beginTransaction();
|
||||
$transactionStarted = true;
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->warning('[occweb] beginTransaction() failed, proceeding without an explicit transaction: {error}', [
|
||||
'app' => 'occweb',
|
||||
$this->logger->warning('[extended_occweb] beginTransaction() failed, proceeding without an explicit transaction: {error}', [
|
||||
'app' => 'extended_occweb',
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
}
|
||||
@@ -353,8 +353,8 @@ class DbController extends Controller
|
||||
// permanently applied — we deliberately do NOT set
|
||||
// rolledBack to true, since that would be untrue.
|
||||
$rollbackFailed = true;
|
||||
$this->logger->warning('[occweb] rollBack() failed after an error — earlier statements in this batch may already be permanently applied: {error}', [
|
||||
'app' => 'occweb',
|
||||
$this->logger->warning('[extended_occweb] rollBack() failed after an error — earlier statements in this batch may already be permanently applied: {error}', [
|
||||
'app' => 'extended_occweb',
|
||||
'error' => $rollbackError->getMessage(),
|
||||
]);
|
||||
}
|
||||
@@ -371,8 +371,8 @@ class DbController extends Controller
|
||||
// a DDL statement on MySQL/MariaDB) — the effects are
|
||||
// already saved, this isn't an error in executing the batch
|
||||
// itself.
|
||||
$this->logger->info('[occweb] commit() had nothing to commit (likely auto-committed by a DDL statement): {error}', [
|
||||
'app' => 'occweb',
|
||||
$this->logger->info('[extended_occweb] commit() had nothing to commit (likely auto-committed by a DDL statement): {error}', [
|
||||
'app' => 'extended_occweb',
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ class OccController extends Controller
|
||||
public function index()
|
||||
{
|
||||
if ($err = $this->requireAdmin()) return $err;
|
||||
return new TemplateResponse('occweb', 'index');
|
||||
return new TemplateResponse('extended_occweb', 'index');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user